internal JSonMutableDictionary(JSonDictionary dictionary)
            : base(true)
        {
            if (dictionary == null)
                throw new ArgumentNullException("dictionary");

            foreach (KeyValuePair<string, IJSonObject> item in dictionary.Data)
                Data.Add(item.Key, item.Value.CreateMutableClone());
        }
Exemple #2
0
        internal JSonMutableDictionary(JSonDictionary dictionary)
            : base(true)
        {
            if (dictionary == null)
            {
                throw new ArgumentNullException("dictionary");
            }

            foreach (KeyValuePair <string, IJSonObject> item in dictionary.Data)
            {
                Data.Add(item.Key, item.Value.CreateMutableClone());
            }
        }
Exemple #3
0
 /// <summary>
 /// Creates new instance of mutable JSON dictionary object filled with cloned data from source dictionary.
 /// </summary>
 internal static IJSonMutableObject CreateDictionary(JSonDictionary dict)
 {
     return(new JSonMutableDictionary(dict));
 }
 /// <summary>
 /// Creates new instance of mutable JSON dictionary object filled with cloned data from source dictionary.
 /// </summary>
 internal static IJSonMutableObject CreateDictionary(JSonDictionary dict)
 {
     return new JSonMutableDictionary(dict);
 }