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