Ejemplo n.º 1
0
 /// <summary>
 /// Creates a new <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/>
 /// with the <paramref name="master"/> provided.
 /// </summary>
 /// <param name="master">The <see cref="MasterDictionaryBase{TKey, TMValue}"/>
 /// in which the <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/> resides.</param>
 protected SubordinateDictionary(MasterDictionaryBase <TMKey, TMValue> master)
     : base()
 {
     if (master == null)
     {
         return;
     }
     this.master = master;
     this.master.AddSubordinate(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Creates a new <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/>
 /// with the <paramref name="master"/> provided.
 /// </summary>
 /// <param name="master">The <see cref="MasterDictionaryBase{TKey, TMValue}"/>
 /// in which the <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/> resides.</param>
 /// <param name="sibling">The <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/>
 /// which is the sibling of the new <see cref="SubordinateDictionary{TSKey, TMKey, TSValue, TMValue}"/>
 /// and therefore contains the same dictionary of elements.</param>
 protected SubordinateDictionary(MasterDictionaryBase <TMKey, TMValue> master, SubordinateDictionary <TSKey, TMKey, TSValue, TMValue> sibling)
     : base(sibling)
 {
     this.master = master;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new <see cref="MasterDictionaryBase{TKey, TValue}"/>
 /// with the <paramref name="sibling"/> provided.
 /// </summary>
 /// <param name="sibling">The <see cref="MasterDictionaryBase{TKey, TValue}"/>
 /// to encapsulate.</param>
 protected MasterDictionaryBase(MasterDictionaryBase <TKey, TValue> sibling)
     : base(sibling)
 {
     Initialize();
 }
Ejemplo n.º 4
0
 public _RemoveHelperCache(MasterDictionaryBase <TKey, TValue> master)
 {
     this.master = master;
     this.__Subordinate_Cleared__removeHelper_cache = new Action <ISubordinateDictionary <TSKey, TKey, TSValue, TValue>, TSKey>(__Subordinate_Cleared__removeHelper);
 }