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()); }
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()); } }
/// <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); }