示例#1
0
文件: JDom.cs 项目: noear/Weed3
        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];
            }
        }
示例#2
0
文件: JConvert.cs 项目: noear/Weed3
        public static JItem ToJson(IEnumerable valList)
        {
            JItem dom = new JItem();

            foreach (object obj in valList)
            {
                dom.Add(obj);
            }

            return dom;
        }