Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PermType != 0)
            {
                hash ^= PermType.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (RangeEnd.Length != 0)
            {
                hash ^= RangeEnd.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PermType != global::Authpb.Permission.Types.Type.Read)
            {
                hash ^= PermType.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (RangeEnd.Length != 0)
            {
                hash ^= RangeEnd.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }