예제 #1
0
        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);
        }
예제 #2
0
 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);
 }
예제 #3
0
 public ICollection <string> CreateCollection(params string[] values)
 {
     return(SolrHelper.CreateCollection(values));
 }