internal ScalableDictionaryEnumerator(ScalableDictionary <TKey, TValue> dictionary)
 {
     m_dictionary        = dictionary;
     m_version           = dictionary.m_version;
     m_currentValueIndex = -1;
     m_currentPair       = default(KeyValuePair <TKey, TValue>);
     m_context           = null;
     Reset();
 }
示例#2
0
 private static List <Declaration> BuildDeclarations()
 {
     return(new List <Declaration>(8)
     {
         BaseReference.GetDeclaration(),
         ScalableList <StorageItem> .GetDeclaration(),
         ScalableDictionary <int, StorageItem> .GetDeclaration(),
         ScalableDictionaryNode.GetDeclaration(),
         ScalableDictionaryValues.GetDeclaration(),
         StorageItem.GetDeclaration(),
         StorableArray.GetDeclaration(),
         ScalableHybridListEntry.GetDeclaration()
     });
 }
 public void Dispose()
 {
     m_context    = null;
     m_dictionary = null;
 }
 internal ScalableDictionaryValuesCollection(ScalableDictionary <TKey, TValue> dictionary)
 {
     m_dictionary = dictionary;
 }
 internal ScalableDictionaryValuesEnumerator(ScalableDictionary <TKey, TValue> dictionary)
 {
     m_dictionary = dictionary;
     m_enumerator = dictionary.GetEnumerator();
 }