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

            if (Protocol != global::PKIo.PassProtocol.DoNotUse)
            {
                hash ^= Protocol.GetHashCode();
            }
            if (ClassId.Length != 0)
            {
                hash ^= ClassId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ShortCode.Length != 0)
            {
                hash ^= ShortCode.GetHashCode();
            }
            if (created_ != null)
            {
                hash ^= Created.GetHashCode();
            }
            if (Secret.Length != 0)
            {
                hash ^= Secret.GetHashCode();
            }
            if (Key.Length != 0)
            {
                hash ^= Key.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.E164Number)
            {
                hash ^= E164Number.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.ShortCode)
            {
                hash ^= ShortCode.GetHashCode();
            }
            if (Extension.Length != 0)
            {
                hash ^= Extension.GetHashCode();
            }
            hash ^= (int)kindCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(ShortCode.GetHashCode());
 }