Example #1
0
            public CStream Push <TKey>(CMultiSet <TKey> Data_)
            {
                Push(Data_.Count);
                foreach (var i in Data_)
                {
                    Push(i);
                }

                return(this);
            }
Example #2
0
            public JsonDataArray Pop <TKey>(int Index_, CMultiSet <TKey> Data_) where TKey : new() // Pop<TKey> 에서 where TValue : new() 조건이 필요하고, string 은 new 불가하므로 overloading 필요
            {
                var Collection = (JsonDataArray)_Array[Index_];

                for (int i = 0; i < Collection.Count; ++i)
                {
                    var Key = new TKey();
                    Collection.Pop(i, ref Key);
                    Data_.Add(Key);
                }

                return(this);
            }
Example #3
0
            public JsonDataArray Pop(int Index_, CMultiSet <string> Data_) // Pop<TValue> 에서 where TValue : new() 조건이 필요하고, string 은 new 불가하므로 overloading 필요
            {
                var Collection = (JsonDataArray)_Array[Index_];

                for (int i = 0; i < Collection.Count; ++i)
                {
                    string Value = "";
                    Collection.Pop(i, ref Value);
                    Data_.Add(Value);
                }

                return(this);
            }
Example #4
0
            protected JsonDataArray Push <TKey>(CMultiSet <TKey> Data_)
            {
                var Collection = new JsonDataArray();

                foreach (var i in Data_)
                {
                    Collection.Push(i);
                }

                _Array.Add(Collection);

                return(this);
            }
Example #5
0
            public CStream Pop <TKey>(CMultiSet <TKey> Data_) where TKey : new() // Pop<TKey> 에서 where TValue : new() 조건이 필요하고, string 은 new 불가하므로 overloading 필요
            {
                int Cnt = 0;

                Pop(ref Cnt);
                for (int i = 0; i < Cnt; ++i)
                {
                    var Key = new TKey();
                    Pop(ref Key);
                    Data_.Add(Key);
                }

                return(this);
            }
Example #6
0
            public CStream Pop(CMultiSet <string> Data_) // Pop<TValue> 에서 where TValue : new() 조건이 필요하고, string 은 new 불가하므로 overloading 필요
            {
                int Cnt = 0;

                Pop(ref Cnt);
                for (int i = 0; i < Cnt; ++i)
                {
                    string Key = "";
                    Pop(ref Key);
                    Data_.Add(Key);
                }

                return(this);
            }
Example #7
0
 public JsonDataObject Push <TKey>(string Name_, CMultiSet <TKey> Data_)
 {
     Add(Name_);
     Push(Data_);
     return(this);
 }