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

            if (CmdName.Length != 0)
            {
                hash ^= CmdName.GetHashCode();
            }
            hash ^= args_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked {
         return(((CmdName != null ? CmdName.GetHashCode() : 0) * 397) ^ (Icon != null ? Icon.GetHashCode() : 0));
     }
 }