public IEnumerator <StringPair> GetEnumerator() { foreach (string key in parent) { StringPair stringPair = new StringPair(); stringPair.Key = key; stringPair.Value = parent[key]; yield return(stringPair); } }
public void Add(StringPair item) { parent.Add(item.Key, item.Value); }