Esempio n. 1
0
 internal Enumerator(UnorderedList <T> list)
 {
     this.list = list;
     index     = 0;
     version   = list._version;
     current   = default(T);
 }
Esempio n. 2
0
            public bool MoveNext()
            {
                UnorderedList <T> localList = list;

                if (version == localList._version && ((uint)index < (uint)localList._size))
                {
                    current = localList._items[index];
                    index++;
                    return(true);
                }
                return(MoveNextRare());
            }
Esempio n. 3
0
 internal SynchronizedList(UnorderedList <T> list)
 {
     _list = list;
     _root = ((System.Collections.ICollection)list).SyncRoot;
 }
Esempio n. 4
0
 internal static IList <T> Synchronized(UnorderedList <T> list)
 {
     return(new SynchronizedList(list));
 }