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

            if (header_ != null)
            {
                hash ^= Header.GetHashCode();
            }
            if (Model != 0)
            {
                hash ^= Model.GetHashCode();
            }
            if (Mode != 0)
            {
                hash ^= Mode.GetHashCode();
            }
            hash ^= firingPkts_.GetHashCode();
            hash ^= positioningPkts_.GetHashCode();
            if (Sn.Length != 0)
            {
                hash ^= Sn.GetHashCode();
            }
            if (Basetime != 0UL)
            {
                hash ^= Basetime.GetHashCode();
            }
            return(hash);
        }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Sn != 0UL)
            {
                hash ^= Sn.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (base_ != null)
            {
                hash ^= Base.GetHashCode();
            }
            if (misc_ != null)
            {
                hash ^= Misc.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }