Пример #1
0
        public static SCObject Create(IEnumerable <KeyValuePair <string, string> > values)
        {
            SCObject res = new SCObject();

            res.contents.AddRange(values.Select(kvp => SCKeyValObject.Create(kvp.Key, kvp.Value)));
            return(res);
        }
Пример #2
0
        public static SCObject Create(IEnumerable <SCKeyValObject> values)
        {
            SCObject res = new SCObject();

            res.contents.AddRange(values.Select(kvp => new SCKeyValObject(kvp.Key, new SCToken(Tokens.Eq), kvp.Value)));
            return(res);
        }
Пример #3
0
        public static SCObject Create(List <string> tags)
        {
            SCObject res = new SCObject();

            tags.ForEach(t => res.Add(SCKeyValObject.Create(t)));
            return(res);
        }