Converts a name/value collection to a single string.
A string containing the name/value collection seperated by the seperator characters.
If the collection is null, blank is returned.
ArrayList list = new ArrayList(new string[] {"Name1", "Value1", "Name2", "Value2"});
NameValueCollection collection = MainUtil.ConvertToNamevalues(list);
string s = MainUtil.ConvertToString(collection, ", ", " and "); // "Name1, Value1 and Name2, Value2"
MainUtil Class | Sitecore Namespace | MainUtil.ConvertToString Overload List