public override int GetHashCode() { int hashCode = Value.GetHashCode() + 31 * ChildCount; foreach (LabelAndValue labelValue in LabelValues) { hashCode = labelValue.GetHashCode() + 31 * hashCode; } return hashCode; } }