コード例 #1
0
ファイル: AddLight.cs プロジェクト: xiaobaxiang/SocketCore
        public override int GetHashCode()
        {
            int hash = 1;

            if (CmdCode.Length != 0)
            {
                hash ^= CmdCode.GetHashCode();
            }
            if (Identity.Length != 0)
            {
                hash ^= Identity.GetHashCode();
            }
            if (OppositeId.Length != 0)
            {
                hash ^= OppositeId.GetHashCode();
            }
            if (ServerId != 0)
            {
                hash ^= ServerId.GetHashCode();
            }
            if (CellAddr != 0)
            {
                hash ^= CellAddr.GetHashCode();
            }
            if (LightNo.Length != 0)
            {
                hash ^= LightNo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CellAddr != 0)
            {
                hash ^= CellAddr.GetHashCode();
            }
            if (Status.Length != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (LightPw != 0)
            {
                hash ^= LightPw.GetHashCode();
            }
            if (LightLu != 0)
            {
                hash ^= LightLu.GetHashCode();
            }
            if (LightLi != 0)
            {
                hash ^= LightLi.GetHashCode();
            }
            if (LightBu != 0)
            {
                hash ^= LightBu.GetHashCode();
            }
            if (LightBt != 0)
            {
                hash ^= LightBt.GetHashCode();
            }
            if (LightUu != 0)
            {
                hash ^= LightUu.GetHashCode();
            }
            if (LightUi != 0)
            {
                hash ^= LightUi.GetHashCode();
            }
            hash ^= lightBgus_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (CellAddr != 0)
            {
                hash ^= CellAddr.GetHashCode();
            }
            if (LightNo.Length != 0)
            {
                hash ^= LightNo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #4
0
ファイル: ArrayView.cs プロジェクト: glycerine/SDFCalc
 public override int GetHashCode()
 {
     return((ulCa.GetHashCode() * 29 + lrCa.GetHashCode()) * 37 + sheet.GetHashCode());
 }