public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } hash ^= methods_.GetHashCode(); hash ^= options_.GetHashCode(); if (Version.Length != 0) { hash ^= Version.GetHashCode(); } if (sourceContext_ != null) { hash ^= SourceContext.GetHashCode(); } hash ^= mixins_.GetHashCode(); if (Syntax != 0) { hash ^= Syntax.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hash = 1; if (Name.Length != 0) { hash ^= Name.GetHashCode(); } hash ^= methods_.GetHashCode(); hash ^= options_.GetHashCode(); if (Version.Length != 0) { hash ^= Version.GetHashCode(); } if (sourceContext_ != null) { hash ^= SourceContext.GetHashCode(); } hash ^= mixins_.GetHashCode(); if (Syntax != global::Google.Protobuf.WellKnownTypes.Syntax.SYNTAX_PROTO2) { hash ^= Syntax.GetHashCode(); } return(hash); }