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

            if (Uid != 0UL)
            {
                hash ^= Uid.GetHashCode();
            }
            if (ModelId != 0)
            {
                hash ^= ModelId.GetHashCode();
            }
            if (ModelLv != 0)
            {
                hash ^= ModelLv.GetHashCode();
            }
            if (Cup != 0)
            {
                hash ^= Cup.GetHashCode();
            }
            if (Uname.Length != 0)
            {
                hash ^= Uname.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ModelId != null ? ModelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (InitializationParameters != null ? InitializationParameters.GetKeyValueHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Location.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)Type;
         hashCode = (hashCode * 397) ^ ModelId.GetHashCode();
         hashCode = (hashCode * 397) ^ Id.GetHashCode();
         return(hashCode);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ModelId != null ? ModelId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Display != null ? Display.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Data != null ? Data.GetKeyValueHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #5
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (SerialNumber != null ? SerialNumber.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ ModelId.GetHashCode();
         hashCode = (hashCode * 397) ^ TypeId;
         hashCode = (hashCode * 397) ^ ManufactuerId.GetHashCode();
         hashCode = (hashCode * 397) ^ RefrigerantId.GetHashCode();
         hashCode = (hashCode * 397) ^ LightingId.GetHashCode();
         hashCode = (hashCode * 397) ^ IsDismounted.GetHashCode();
         hashCode = (hashCode * 397) ^ CoverId.GetHashCode();
         hashCode = (hashCode * 397) ^ StateId;
         hashCode = (hashCode * 397) ^ ShopId.GetHashCode();
         return(hashCode);
     }
 }
コード例 #6
0
ファイル: RoleProtocol.cs プロジェクト: midgithub/BestSects
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0L)
            {
                hash ^= Id.GetHashCode();
            }
            if (PlayerId != 0L)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (SectId != 0L)
            {
                hash ^= SectId.GetHashCode();
            }
            if (ModelId != 0)
            {
                hash ^= ModelId.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Clazz != 0)
            {
                hash ^= Clazz.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            return(hash);
        }
コード例 #7
0
 public override int GetHashCode()
 {
     return(ResourceTypeSub.GetHashCode() + EntityId.GetHashCode() + ModelId.GetHashCode() + Count.GetHashCode());
 }