Small things about .NET
Small things about .NET
Sometimes I need to build string from strings array spparated by any simbol, so I found this sample:string[] strArr = {"1","2","3"};
string output = "";
for(int i = 0; i < strArr.Leght;)
output += strArr[i] + ((strArr.Leght > ++i) ? "," : "");
Result: 1,2,3
No comments:
Post a Comment