public DictionarySerializable(DictionarySerializable source) { dict = new string[source.dict.Length]; for (int i = 0; i < dict.Length; i++) { dict[i] = source.dict[i]; } d = new Dictionary <string, object>(source.d); }
public void Set(DictionarySerializable other) { foreach (KeyValuePair <string, object> kv in other.d) { if (ContainsKey(kv.Key)) { this[kv.Key] = kv.Value; } else { Add(kv.Key, kv.Value); } } }