Пример #1
0
        public static string[] ParseRequestParamCsv(NameValueCollection @params, string paramName)
        {
            if (@params != null && !string.IsNullOrEmpty(paramName))
            {
                var array = StringUtility.ConvertCsvToStringArray(@params[paramName]);

                return(array);
            }

            return(null);
        }
Пример #2
0
 public static string[] ConvertCsvToStringArray(this string str, char separator = ',', StringSplitOptions options = StringSplitOptions.RemoveEmptyEntries)
 {
     return(StringUtility.ConvertCsvToStringArray(str, separator, options));
 }