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); }
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); }
public static SCObject Create(List <string> tags) { SCObject res = new SCObject(); tags.ForEach(t => res.Add(SCKeyValObject.Create(t))); return(res); }