コード例 #1
0
 public void CopyTo(SerializableKeyValuePair <TKey, TValue>[] array, int arrayIndex)
 {
     foreach (KeyValuePair <TKey, TValue> CurPair in mInternalDictionary)
     {
         array[arrayIndex] = new SerializableKeyValuePair <TKey, TValue>(CurPair);
         ++arrayIndex;
     }
 }
コード例 #2
0
        public bool Remove(SerializableKeyValuePair <TKey, TValue> item)
        {
            IDictionary <TKey, TValue> iDic = mInternalDictionary;

            return(iDic.Remove(new KeyValuePair <TKey, TValue>(item.Key, item.Value)));
        }
コード例 #3
0
        public void Add(SerializableKeyValuePair <TKey, TValue> item)
        {
            IDictionary <TKey, TValue> iDic = mInternalDictionary;

            iDic.Add(new KeyValuePair <TKey, TValue>(item.Key, item.Value));
        }