Exemplo n.º 1
0
 public void OnAfterDeserialize()
 {
     for (int i = 0; i < Entries.Length; i++)
     {
         var entry = Entries[i];
         STable.Add(this, entry.Key, entry.Value, true);
     }
     Capacity = Entries.Length;
 }
Exemplo n.º 2
0
 public IEnumerator <Pair <TKey, TValue> > GetEnumerator()
 {
     return(STable.GetEnumerator(this));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Shorthand for STable.Find(this, key) and STable.Add(this, key, value, true).
 /// </summary>
 public TValue this[TKey key]
 {
     get { return(STable.Find(this, key)); }
     set { STable.Add(this, key, value, true); }
 }