Esempio n. 1
0
 /// <summary>Removes an <seealso cref="IKeyedObject{TKey}"/> from the dictionary.</summary>
 /// <param name="o">The <seealso cref="IKeyedObject{TKey}"/> to remove from the dictionary.</param>
 public void Remove(IKeyedObject <TKey[]> o)
 {
     if (o == null || o.Key == null)
     {
         return;
     }
     foreach (var k in o.Key)
     {
         Remove(k);
     }
 }
Esempio n. 2
0
 /// <summary>Adds an <seealso cref="IKeyedObject{TKey}"/> to the dictionary.</summary>
 /// <param name="o">The <seealso cref="IKeyedObject{TKey}"/> to add to the dictionary.</param>
 public void Add(IKeyedObject <TKey[]> o)
 {
     if (o == null || o.Key == null)
     {
         return;
     }
     foreach (var k in o.Key)
     {
         Dictionary.Add(k, (TObject)o);
     }
 }