Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Pid != 0)
            {
                hash ^= Pid.GetHashCode();
            }
            if (Tp != 0)
            {
                hash ^= Tp.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.Content)
            {
                hash ^= Content.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.P)
            {
                hash ^= P.GetHashCode();
            }
            if (dataCase_ == DataOneofCase.ActionData)
            {
                hash ^= ActionData.GetHashCode();
            }
            hash ^= (int)dataCase_;
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (DX != 0)
            {
                hash ^= DX.GetHashCode();
            }
            if (DY != 0)
            {
                hash ^= DY.GetHashCode();
            }
            if (ActionFlags != 0)
            {
                hash ^= ActionFlags.GetHashCode();
            }
            if (ActionData != 0)
            {
                hash ^= ActionData.GetHashCode();
            }
            if (ExtraInfo != 0)
            {
                hash ^= ExtraInfo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     // TODO: write your implementation of GetHashCode() here
     return(ActionData.GetHashCode());
 }