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