Monday 2 June 2014

How to split string in array and Rejoin in string format

string strSplited = string.Empty;
string[] arrSource = strA.Split(' ');
 string[] arrDest= new string[arrSource .Length - 3];
 Array.Copy(arrSource , arrDest, arrSource .Length - 3);
 strSplited = string.Join("", arrDest);

No comments:

Post a Comment