if you are going to concat more than 2 strings, consider using a StringBuilder object...or just use the code below to obtain a nicely formatted string:
public static string BuildStrings(params string[] stringsToBuild)
{
string delimiter = " ";
// this will be the return string
string builtString;
// use a StringBuilder as the internal mechanism to build the string
StringBuilder localBuilder = new StringBuilder();
// loop through each string passed in and add it to the string to build
foreach(string stringToBuild in stringsToBuild)
{
localBuilder.Append(delimiter);
localBuilder.Append(stringToBuild);
}
builtString = localBuilder.ToString();
return builtString;
}


No comments yet