コード例 #1
0
ファイル: CList!1.cs プロジェクト: windygu/Everything
 public static CList <V> Synchronized <V>(CList <V> list)
 {
     if (list == null)
     {
         throw new ArgumentNullException("list");
     }
     return(new SyncList <V>(list));
 }
コード例 #2
0
ファイル: CList!1.cs プロジェクト: windygu/Everything
        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);
        }
コード例 #3
0
 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;
     }
 }
コード例 #4
0
 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> >();
 }