示例#1
0
 public static CDictionary <TKey, TValue> Synchronized(CDictionary <TKey, TValue> dictionary)
 {
     if (dictionary == null)
     {
         throw new ArgumentNullException("dictionary");
     }
     return(new SyncDictionary <TKey, TValue>(dictionary));
 }
示例#2
0
 internal SyncDictionary(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>();
     this.cdictionary_0 = (CDictionary <TKey, TValue>)info.GetValue("ParentTable", typeof(CDictionary <TKey, TValue>));
     if (this.cdictionary_0 == null)
     {
         throw new SerializationException("Insufficient state to return the real object.");
     }
 }
示例#3
0
 public SyncDictionary(CDictionary <TKey, TValue> dictionary)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>();
     this.cdictionary_0 = dictionary;
 }
示例#4
0
 public SyncDictionary()
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>();
 }
示例#5
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> >();
 }
示例#6
0
 public OrderedDictionary(int capacity)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>(capacity);
     this.clist_0       = new CList <KeyValuePair <TKey, TValue> >();
 }
示例#7
0
 public OrderedDictionary(IDictionary <TKey, TValue> dictionary)
 {
     this.cdictionary_0 = new CDictionary <TKey, TValue>(dictionary);
     this.clist_0       = new CList <KeyValuePair <TKey, TValue> >();
 }