Example #1
0
        public AppConditions addCondition(string key, List <string> values, AppConditions.OptType optType)
        {
            Dictionary <string, object> dictionary = new Dictionary <string, object>();

            dictionary.Add("key", key);
            dictionary.Add("values", values);
            dictionary.Add("optType", optType);
            this.condition.Add(dictionary);
            return(this);
        }
Example #2
0
 public AppConditions addCondition(
     string key,
     List <string> values,
     AppConditions.OptType optType)
 {
     this.condition.Add(new Dictionary <string, object>()
     {
         {
             nameof(key),
             (object)key
         },
         {
             nameof(values),
             (object)values
         },
         {
             nameof(optType),
             (object)optType
         }
     });
     return(this);
 }