public GroupedProperties(string initialGroup) { PropertyGroups = new NestedDictionary <string, string, string> { { initialGroup, new Dictionary <string, string>() } }; }
public bool Equals(NestedDictionary <TOuter, TInner, TValue> other) { bool bRet = true; if (other == null) { bRet = false; } else if (this.Count != other.Count) { bRet = false; } else if (this.Count == 0) { bRet = true; } else if (!ReferenceEquals(this, other)) { var thisEnumerator = GetEnumerator(); var otherEnumerator = other.GetEnumerator(); while (thisEnumerator.MoveNext() && otherEnumerator.MoveNext()) { if (thisEnumerator.Current.Key.Equals(otherEnumerator.Current.Key)) { if (!InnerEquals(thisEnumerator.Current.Value, otherEnumerator.Current.Value)) { bRet = false; break; } } else { bRet = false; break; } } } return(bRet); }
public GroupNamedIdentifiers(string name) { this.Name = name; GroupIdentifiers = new NestedDictionary <string, string, string>(); }
public GroupedProperties() { PropertyGroups = new NestedDictionary <string, string, string>(); }