Ejemplo n.º 1
0
 public ControlledStateDictionary(ControlledStateDictionary <TKey, TValue> sibling)
 {
     if (sibling == null)
     {
         throw new ArgumentNullException("sibling");
     }
     this.locals = sibling.locals;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 3
0
 private ValuesCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Ejemplo n.º 4
0
 public ControlledStateDictionary()
 {
     this.locals = new SharedLocals(InitializeKeysCollection, InitializeValuesCollection);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 protected ValuesCollection(ControlledStateDictionary <TKey, TValue> localOwner)
 {
     this.locals = localOwner.locals;
 }
Ejemplo n.º 7
0
 public ValuesCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Ejemplo n.º 8
0
 public KeysCollection(SharedLocals locals)
 {
     this.locals = locals;
 }
Ejemplo n.º 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;
 }