예제 #1
0
파일: WdbgExts.cs 프로젝트: zha0/DbgShell
 public override int GetHashCode()
 {
     return(TypeId.GetHashCode() +
            FieldOffset.GetHashCode() +
            Index.GetHashCode() +
            OwningType.GetHashCode());
 }
예제 #2
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (TypeId != null)
         {
             hashCode = hashCode * 59 + TypeId.GetHashCode();
         }
         if (Code != null)
         {
             hashCode = hashCode * 59 + Code.GetHashCode();
         }
         if (Description != null)
         {
             hashCode = hashCode * 59 + Description.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #3
0
        public override int GetHashCode()
        {
            var hashCode = 1745360142;

            hashCode = hashCode * -1521134295 + Index.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Name);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(ShortName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + TypeId.GetHashCode();
            hashCode = hashCode * -1521134295 + SubTypeId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <int[]> .Default.GetHashCode(ClassIds);

            hashCode = hashCode * -1521134295 + EnhancementSetId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(EnhancementSetName);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Image);

            hashCode = hashCode * -1521134295 + EffectChance.GetHashCode();
            hashCode = hashCode * -1521134295 + LevelMin.GetHashCode();
            hashCode = hashCode * -1521134295 + LevelMax.GetHashCode();
            hashCode = hashCode * -1521134295 + Unique.GetHashCode();
            hashCode = hashCode * -1521134295 + MutuallyExclusiveId.GetHashCode();
            hashCode = hashCode * -1521134295 + BuffMode.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <EnhancementEffect[]> .Default.GetHashCode(Effects);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UniqueIdentifier);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Recipe);

            hashCode = hashCode * -1521134295 + Superior.GetHashCode();
            return(hashCode);
        }
예제 #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TypeId != 0)
            {
                hash ^= TypeId.GetHashCode();
            }
            if (MessageData.Length != 0)
            {
                hash ^= MessageData.GetHashCode();
            }
            if (Target != 0)
            {
                hash ^= Target.GetHashCode();
            }
            if (sender_ != null)
            {
                hash ^= Sender.GetHashCode();
            }
            if (SerializerId != 0)
            {
                hash ^= SerializerId.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var result = 0;
         result = (result * 397) ^ InstanceId.GetHashCode();
         result = (result * 397) ^ TypeId.GetHashCode();
         return(result);
     }
 }
예제 #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (ZoneId.Length != 0)
            {
                hash ^= ZoneId.GetHashCode();
            }
            if (Status != global::Yandex.Cloud.Compute.V1.HostGroup.Types.Status.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (TypeId.Length != 0)
            {
                hash ^= TypeId.GetHashCode();
            }
            if (MaintenancePolicy != global::Yandex.Cloud.Compute.V1.MaintenancePolicy.Unspecified)
            {
                hash ^= MaintenancePolicy.GetHashCode();
            }
            if (scalePolicy_ != null)
            {
                hash ^= ScalePolicy.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #7
0
 /// <summary>
 /// The GetHashCode
 /// </summary>
 /// <returns>The <see cref="int"/></returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Category != null ? Category.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Level.GetHashCode();
         hashCode = (hashCode * 397) ^ Parameters.GetHashCode();
         hashCode = (hashCode * 397) ^ SharedParameters.GetHashCode();
         hashCode = (hashCode * 397) ^ Location.GetHashCode();
         hashCode = (hashCode * 397) ^ BoundingBox.GetHashCode();
         hashCode = (hashCode * 397) ^ Centroid.GetHashCode();
         hashCode = (hashCode * 397) ^ Volume.GetHashCode();
         hashCode = (hashCode * 397) ^ TypeId.GetHashCode();
         return(hashCode);
     }
 }
예제 #8
0
 /// <summary>
 /// Compute hash of this object based on his properties
 /// </summary>
 /// <returns>This object hashcode</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsIncome.GetHashCode();
         hashCode = (hashCode * 397) ^ Money.GetHashCode();
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ AccountId.GetHashCode();
         hashCode = (hashCode * 397) ^ (AccountName != null ? AccountName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ TypeId.GetHashCode();
         hashCode = (hashCode * 397) ^ (TypeName != null ? TypeName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Periodicity;
         hashCode = (hashCode * 397) ^ PeriodicMultiplicity;
         return(hashCode);
     }
 }
예제 #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TypeId != 0)
            {
                hash ^= TypeId.GetHashCode();
            }
            if (TypeName.Length != 0)
            {
                hash ^= TypeName.GetHashCode();
            }
            hash ^= members_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TypeId != global::Tensorflow.FullTypeId.TftUnset)
            {
                hash ^= TypeId.GetHashCode();
            }
            hash ^= args_.GetHashCode();
            if (attrCase_ == AttrOneofCase.S)
            {
                hash ^= S.GetHashCode();
            }
            hash ^= (int)attrCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #11
0
 public override int GetHashCode()
 {
     unchecked {
         int hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Model != null ? Model.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (State != null ? State.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CreatedBy != null ? CreatedBy.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Created.GetHashCode();
         hashCode = (hashCode * 397) ^ LastUpdated.GetHashCode();
         hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ VersionCounter.GetHashCode();
         hashCode = (hashCode * 397) ^ (Version != null ? Version.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RootWorkspace != null ? RootWorkspace.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Children != null ? Children.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Parent != null ? Parent.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TypeId != null ? TypeId.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #12
0
 /// <summary>
 /// Gets the hash code
 /// </summary>
 /// <returns>Hash code</returns>
 public override int GetHashCode()
 {
     unchecked // Overflow is fine, just wrap
     {
         int hashCode = 41;
         if (TypeId != null)
         {
             hashCode = hashCode * 59 + TypeId.GetHashCode();
         }
         if (Profile != null)
         {
             hashCode = hashCode * 59 + Profile.GetHashCode();
         }
         if (Capacity != null)
         {
             hashCode = hashCode * 59 + Capacity.GetHashCode();
         }
         if (SpeedFactor != null)
         {
             hashCode = hashCode * 59 + SpeedFactor.GetHashCode();
         }
         if (ServiceTimeFactor != null)
         {
             hashCode = hashCode * 59 + ServiceTimeFactor.GetHashCode();
         }
         if (CostPerMeter != null)
         {
             hashCode = hashCode * 59 + CostPerMeter.GetHashCode();
         }
         if (CostPerSecond != null)
         {
             hashCode = hashCode * 59 + CostPerSecond.GetHashCode();
         }
         if (CostPerActivation != null)
         {
             hashCode = hashCode * 59 + CostPerActivation.GetHashCode();
         }
         return(hashCode);
     }
 }
예제 #13
0
        public override int GetHashCode()
        {
            int hashCode = -1004827236;

            hashCode = hashCode * -1521134295 + Id.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Brand);

            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Model);

            hashCode = hashCode * -1521134295 + DesiredDeliveryDate.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <TypeDto> .Default.GetHashCode(Type);

            hashCode = hashCode * -1521134295 + TypeId.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(UserId);

            hashCode = hashCode * -1521134295 + EqualityComparer <ApplicationUserDto> .Default.GetHashCode(User);

            hashCode = hashCode * -1521134295 + Quantity.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <OrderStatusDto> .Default.GetHashCode(OrderStatus);

            hashCode = hashCode * -1521134295 + OrderStatusId.GetHashCode();
            return(hashCode);
        }
예제 #14
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (FolderId.Length != 0)
            {
                hash ^= FolderId.GetHashCode();
            }
            if (createdAt_ != null)
            {
                hash ^= CreatedAt.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= Labels.GetHashCode();
            if (TypeId.Length != 0)
            {
                hash ^= TypeId.GetHashCode();
            }
            if (ZoneId.Length != 0)
            {
                hash ^= ZoneId.GetHashCode();
            }
            if (Size != 0L)
            {
                hash ^= Size.GetHashCode();
            }
            if (BlockSize != 0L)
            {
                hash ^= BlockSize.GetHashCode();
            }
            hash ^= productIds_.GetHashCode();
            if (Status != global::Yandex.Cloud.Compute.V1.Disk.Types.Status.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (sourceCase_ == SourceOneofCase.SourceImageId)
            {
                hash ^= SourceImageId.GetHashCode();
            }
            if (sourceCase_ == SourceOneofCase.SourceSnapshotId)
            {
                hash ^= SourceSnapshotId.GetHashCode();
            }
            hash ^= instanceIds_.GetHashCode();
            if (diskPlacementPolicy_ != null)
            {
                hash ^= DiskPlacementPolicy.GetHashCode();
            }
            hash ^= (int)sourceCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #15
0
파일: LRule.cs 프로젝트: ysj1995/Trinity
 public override int GetHashCode()
 {
     return(TypeId.GetHashCode() * 17 ^ Id * 13 ^ Variant * 31 ^ (int)Value);
 }
 public override int GetHashCode()
 {
     return(Id.GetHashCode() ^ TypeId.GetHashCode() ^ Data.GetHashCode());
 }
예제 #17
0
 public override int GetHashCode()
 => TypeId != BuiltinTypeId.Unknown ? TypeId.GetHashCode() : base.GetHashCode();
예제 #18
0
 /// <summary>
 ///     <para>Overriden. Serves as a hash function for a particular type.</para>
 /// </summary>
 /// <returns>
 ///     <para>A hash code for the current <see cref="ObjectReference"/>.</para>
 /// </returns>
 public override int GetHashCode()
 {
     return(Utility.CombineHashCodes(TypeId.GetHashCode(), ObjectId.GetHashCode()));
 }
예제 #19
0
 public override int GetHashCode()
 {
     return(TypeId.GetHashCode());
 }
 public override int GetHashCode() => TypeId.GetHashCode();
예제 #21
0
 // override object.GetHashCode
 public override int GetHashCode()
 {
     return(TypeId.GetHashCode() ^
            GroupContainer.GetHashCode() ^
            InstanceId.GetHashCode());
 }