public JItem this[string name] { get { if (_Items.ContainsKey(name) == false) { JItem temp = new JItem(); _Items.Add(name, temp); return temp; } else return _Items[name]; } }
public static JItem ToJson(IEnumerable valList) { JItem dom = new JItem(); foreach (object obj in valList) { dom.Add(obj); } return dom; }