I moved this blog to other domain: https://tech.panshin.me , please update your bookmarks

Monday, May 4, 2009

Small things about .NET

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: