Esempio 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;
 }
Esempio n. 2
0
 public IEnumerator <Pair <TKey, TValue> > GetEnumerator()
 {
     return(STable.GetEnumerator(this));
 }
Esempio 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); }
 }