Ejemplo n.º 1
0
 public Enumerator(NameScopeDictionary nameScopeDictionary)
 {
     this._nameMap             = nameScopeDictionary._nameMap;
     this._underlyingNameScope = nameScopeDictionary._underlyingNameScope;
     this._names = nameScopeDictionary._names;
     if (this._underlyingNameScope != null)
     {
         this.index = -1;
     }
     else if (this._nameMap != null)
     {
         this.dictionaryEnumerator = this._nameMap.GetEnumerator();
     }
 }
Ejemplo n.º 2
0
            public Enumerator(NameScopeDictionary nameScopeDictionary)
            {
                _nameMap             = nameScopeDictionary._nameMap;
                _underlyingNameScope = nameScopeDictionary._underlyingNameScope;
                _names = nameScopeDictionary._names;

                if (_underlyingNameScope != null)
                {
                    index = -1;
                }
                else
                {
                    if (_nameMap != null)
                    {
                        dictionaryEnumerator = _nameMap.GetEnumerator();
                    }
                }
            }