Join objects of any type to comma separated string

object[] ObjectArray = {
 0,
 "One",
 2.7,
 Math.PI
};
string[] StringArray = Array.ConvertAll(ObjectArray, ThisValue => ThisValue.ToString);
string JoinedText = Strings.Join(StringArray, ", ");

No comments:

Post a Comment