public static ICollection <string> CreateCollection(this string value) { ICollection <string> result; if (string.IsNullOrWhiteSpace(value)) { result = new List <string>(); } else { result = SolrHelper.CreateCollection(new string[] { value }); } return(result); }
public static IDictionary <string, ICollection <string> > AddOptions(this IDictionary <string, ICollection <string> > options, string key, params string[] values) { options.AddOptions(key, SolrHelper.CreateCollection(values)); return(options); }
public ICollection <string> CreateCollection(params string[] values) { return(SolrHelper.CreateCollection(values)); }