コード例 #1
0
 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);
 }
コード例 #2
0
 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);
         }
     }
 }