예제 #1
0
 public static CList <V> Synchronized <V>(CList <V> list)
 {
     if (list == null)
     {
         throw new ArgumentNullException("list");
     }
     return(new SyncList <V>(list));
 }
예제 #2
0
        public static CList <V> Repeat <V>(V value, int count)
        {
            if (count < 0)
            {
                throw new ArgumentException("count", "Non-negative number required.");
            }
            CList <V> list = new CList <V>(count);

            for (int i = 0; i < count; i++)
            {
                list.Add(value);
            }
            return(list);
        }
 private void method_0(bool bool_1)
 {
     if (!this.bool_0)
     {
         if (bool_1)
         {
             if (this.clist_0 != null)
             {
                 this.clist_0 = null;
             }
             GC.SuppressFinalize(this);
         }
         this.bool_0 = true;
     }
 }
 internal OrderedDictionaryEnumerator(CList <KeyValuePair <TKey, TValue> > list)
 {
     this.bool_0  = false;
     this.int_0   = -1;
     this.clist_0 = list;
 }
예제 #5
0
 public SyncList(CList <T> list)
 {
     this.list = new CList <T>();
     this.list = list;
 }
예제 #6
0
 public SyncList()
 {
     this.list = new CList <T>();
 }
예제 #7
0
 public OrderedDictionary(int capacity, IEqualityComparer <TKey> comparer)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>(capacity, comparer);
     this.clist_0       = new CList <KeyValuePair <TKey, TValue> >();
 }
예제 #8
0
 public OrderedDictionary(int capacity)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>(capacity);
     this.clist_0       = new CList <KeyValuePair <TKey, TValue> >();
 }
예제 #9
0
 public OrderedDictionary(IDictionary <TKey, TValue> dictionary)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>(dictionary);
     this.clist_0       = new CList <KeyValuePair <TKey, TValue> >();
 }