예제 #1
0
        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);
        }
예제 #2
0
        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);
        }