/ Published in: C#

This can be useful for string preparations.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
string str = ""; // loop though an array and create a string // delimited with commas foreach (string s in fieldNames) { str += s; // if this not the last item in the array // append a comma to end of the string. if (s != fieldNames[fieldNames.Length - 1]) { str += ", "; } }
Comments
