public void AssignFrom(SemicolonSeparatedMap other) { values.Clear(); foreach (KeyValuePair <string, string> i in other.values) { values[i.Key] = i.Value; } }
public bool AreEqual(SemicolonSeparatedMap other) { if (values.Count != other.values.Count) { return(false); } foreach (KeyValuePair <string, string> i in values) { string v; if (!other.values.TryGetValue(i.Key, out v)) { return(false); } if (v != i.Value) { return(false); } } return(true); }