public ScalableDictionaryEnumerator(ScalableDictionary <TKey, TValue> dictionary)
 {
     this.m_dictionary        = dictionary;
     this.m_version           = dictionary.m_version;
     this.m_currentValueIndex = -1;
     this.m_currentPair       = default(KeyValuePair <TKey, TValue>);
     this.m_context           = null;
     this.Reset();
 }
Exemple #2
0
        private static List <Declaration> BuildDeclarations()
        {
            List <Declaration> list = new List <Declaration>(8);

            list.Add(BaseReference.GetDeclaration());
            list.Add(ScalableList <StorageItem> .GetDeclaration());
            list.Add(ScalableDictionary <int, StorageItem> .GetDeclaration());
            list.Add(ScalableDictionaryNode.GetDeclaration());
            list.Add(ScalableDictionaryValues.GetDeclaration());
            list.Add(StorageItem.GetDeclaration());
            list.Add(StorableArray.GetDeclaration());
            list.Add(ScalableHybridListEntry.GetDeclaration());
            return(list);
        }
 public void Dispose()
 {
     this.m_context    = null;
     this.m_dictionary = null;
 }
 public ScalableDictionaryValuesCollection(ScalableDictionary <TKey, TValue> dictionary)
 {
     this.m_dictionary = dictionary;
 }
 public ScalableDictionaryValuesEnumerator(ScalableDictionary <TKey, TValue> dictionary)
 {
     this.m_dictionary = dictionary;
     this.m_enumerator = dictionary.GetEnumerator();
 }