Example #1
0
 public ControlledStateDictionary(ControlledStateDictionary <TKey, TValue> sibling)
 {
     if (sibling == null)
     {
         throw new ArgumentNullException("sibling");
     }
     this.locals = sibling.locals;
 }
Example #2
0
 public ControlledStateDictionary(IEnumerable <KeyValuePair <TKey, TValue> > entries)
 {
     if (entries == null)
     {
         throw new ArgumentNullException("entries");
     }
     this.locals = new SharedLocals(InitializeKeysCollection, InitializeValuesCollection);
     this.locals._AddRange(entries);
 }
Example #3
0
 private ValuesCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Example #4
0
 public ControlledStateDictionary()
 {
     this.locals = new SharedLocals(InitializeKeysCollection, InitializeValuesCollection);
 }
Example #5
0
 /// <summary>
 /// Creates a new <see cref="ControlledDictionary{TKey, TValue}"/> initialized
 /// to a default state.
 /// </summary>
 protected internal ControlledDictionary()
 {
     this.locals = new SharedLocals(InitializeKeysCollection, InitializeValuesCollection);
 }
Example #6
0
 protected ValuesCollection(ControlledStateDictionary <TKey, TValue> localOwner)
 {
     this.locals = localOwner.locals;
 }
Example #7
0
 public ValuesCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Example #8
0
 public KeysCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Example #9
0
 /// <summary>
 /// Creates a new <see cref="KeysCollection"/> with the
 /// <paramref name="locals"/> provided.
 /// </summary>
 /// <param name="locals">The <see cref="SharedLocals"/> which
 /// denote the data source to use.</param>
 private KeysCollection(SharedLocals locals)
 {
     this.locals = locals;
 }