Gets a name/value collection from a string array.
A name/value collection.
The name/value collection is built by using values from the string array in pairs. A string array consisting of { "Name1, "Value1", "Name2", "Value2" } are converted to ("Name1", "Value1"), ("Name2", "Value2").
NameValueCollection collection = StringUtil.GetNameValues(new string[] {"Name1", "Value1", "Name2", "Value2" });
StringUtil Class | Sitecore Namespace | StringUtil.GetNameValues Overload List