/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>The hash code for the current object.</returns> public override int GetHashCode() { int hashCode = RelationName.GetHashCode(); foreach (ArffAttribute attribute in Attributes) { hashCode = unchecked (hashCode * 31 + attribute.GetHashCode()); } return(hashCode); }
/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>The hash code for the current object.</returns> public override int GetHashCode() { int hashCode = RelationName.GetHashCode(); foreach (Feature feature in Features) { hashCode = unchecked (hashCode * 31 + feature.GetHashCode()); } return(hashCode); }