Exemplo n.º 1
0
 internal Enumerator(UnorderedList <T> list)
 {
     this.list = list;
     index     = 0;
     version   = list._version;
     current   = default(T);
 }
Exemplo 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());
            }
Exemplo n.º 3
0
 internal SynchronizedList(UnorderedList <T> list)
 {
     _list = list;
     _root = ((System.Collections.ICollection)list).SyncRoot;
 }
Exemplo n.º 4
0
 internal static IList <T> Synchronized(UnorderedList <T> list)
 {
     return(new SynchronizedList(list));
 }