Exemple #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTimeOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ (StringList != null ? StringList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringArray != null ? StringArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringMap != null ? StringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntStringMap != null ? IntStringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubType != null ? SubType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GenericType != null ? GenericType.GetHashCode() : 0);
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableGuid.GetHashCode();
         return(hashCode);
     }
 }
Exemple #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Sbyte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Boolean.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ (Exception != null ? Exception.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Enum;
         hashCode = (hashCode * 397) ^ Struct.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         return((Float.GetHashCode() * 397) ^ Fixed.GetHashCode());
     }
 }
Exemple #5
0
        public override int GetHashCode()
        {
            var hashCode = 291051517;

            hashCode = hashCode * -1521134295 + Int.GetHashCode();
            hashCode = hashCode * -1521134295 + Long.GetHashCode();
            hashCode = hashCode * -1521134295 + Short.GetHashCode();
            hashCode = hashCode * -1521134295 + UInt.GetHashCode();
            hashCode = hashCode * -1521134295 + ULong.GetHashCode();
            hashCode = hashCode * -1521134295 + UShort.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <int?> .Default.GetHashCode(NullableInt);

            hashCode = hashCode * -1521134295 + Byte.GetHashCode();
            hashCode = hashCode * -1521134295 + SByte.GetHashCode();
            hashCode = hashCode * -1521134295 + Bool.GetHashCode();
            hashCode = hashCode * -1521134295 + Float.GetHashCode();
            hashCode = hashCode * -1521134295 + Double.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <byte[]> .Default.GetHashCode(ByteArray);

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

            return(hashCode);
        }
 public override int GetHashCode()
 {
     return(
         Test?.GetHashCode() ?? 0 ^
         Int.GetHashCode() ^
         String?.GetHashCode() ?? 0 ^
         Float.GetHashCode());
 }
Exemple #7
0
        public override int GetHashCode()
        {
            var hashCode = -339614575;

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

            return(hashCode);
        }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Int32;
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         return(hashCode);
     }
 }
Exemple #10
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Int;
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ Decimal.GetHashCode();
         return(result);
     }
 }
Exemple #11
0
        public override int GetHashCode()
        {
            var hashCode = -1687280373;

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

            hashCode = hashCode * -1521134295 + EqualityComparer <ClassC> .Default.GetHashCode(ClassCProp);

            return(hashCode);
        }
Exemple #12
0
        public override int GetHashCode()
        {
            var hashCode = -644236024;

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

            hashCode = hashCode * -1521134295 + EqualityComparer <ClassB> .Default.GetHashCode(ClassBProp);

            return(hashCode);
        }
Exemple #13
0
        public override int GetHashCode()
        {
            var hash = 19;

            hash = hash * 7 + Bool.GetHashCode();
            hash = hash * 7 + Int.GetHashCode();
            hash = hash * 7 + UInt.GetHashCode();
            hash = hash * 7 + Float.GetHashCode();
            hash = hash * 7 + Char.GetHashCode();
            hash = hash * 7 + Str.GetHashCode();

            return(hash);
        }
Exemple #14
0
 public override int GetHashCode()
 {
     unchecked {
         var hashCode = Integer;
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ (Data?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Child?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (ObjectArray?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (IntArray?.GetHashCode() ?? 0);
         return(hashCode);
     }
 }
Exemple #15
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = ID.GetHashCode();
         hashCode = (hashCode * 397) ^ (StringDefault != null ? StringDefault.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ (IntArray != null ? IntArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntIList != null ? IntIList.GetHashCode() : 0);
         return(hashCode);
     }
 }
Exemple #16
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Align?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ (AlternateText?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Attributes?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Float?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Height.GetHashCode();
         hashCode = (hashCode * 397) ^ (Link?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Path?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Role?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Title?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ Width.GetHashCode();
         return(hashCode);
     }
 }
Exemple #17
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ ArrayReaderTestId;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ String.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         return(hashCode);
     }
 }
Exemple #18
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Sbyte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Boolean.GetHashCode();
         return(hashCode);
     }
 }
Exemple #19
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ NullableId.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ DateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ TimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ DateTimeOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Char.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableDateTime.GetHashCode();
         hashCode = (hashCode * 397) ^ NullableTimeSpan.GetHashCode();
         hashCode = (hashCode * 397) ^ (ByteArray != null ? ByteArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CharArray != null ? CharArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringArray != null ? StringArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntArray != null ? IntArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (LongArray != null ? LongArray.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringList != null ? StringList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (StringMap != null ? StringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IntStringMap != null ? IntStringMap.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubType != null ? SubType.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (SubTypes != null ? SubTypes.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (CustomText != null ? CustomText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (MaxText != null ? MaxText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ CustomDecimal.GetHashCode();
         return(hashCode);
     }
 }
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Bool.GetHashCode();
         hashCode = (hashCode * 397) ^ Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ Character.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ SByte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ (String != null ? String.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         return(hashCode);
     }
 }
Exemple #21
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = Boolean.GetHashCode();
         result = (result * 397) ^ Byte.GetHashCode();
         result = (result * 397) ^ Char.GetHashCode();
         result = (result * 397) ^ DateTime.GetHashCode();
         result = (result * 397) ^ DateTimeOffset.GetHashCode();
         result = (result * 397) ^ Decimal.GetHashCode();
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ Int;
         result = (result * 397) ^ Guid.GetHashCode();
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ (String != null ? String.GetHashCode() : 0);
         result = (result * 397) ^ TimeSpan.GetHashCode();
         result = (result * 397) ^ (Uri != null ? Uri.GetHashCode() : 0);
         return(result);
     }
 }
Exemple #22
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Byte.GetHashCode();
         hashCode = (hashCode * 397) ^ SByte.GetHashCode();
         hashCode = (hashCode * 397) ^ Short.GetHashCode();
         hashCode = (hashCode * 397) ^ UShort.GetHashCode();
         hashCode = (hashCode * 397) ^ Int;
         hashCode = (hashCode * 397) ^ (int)UInt;
         hashCode = (hashCode * 397) ^ Long.GetHashCode();
         hashCode = (hashCode * 397) ^ ULong.GetHashCode();
         hashCode = (hashCode * 397) ^ Float.GetHashCode();
         hashCode = (hashCode * 397) ^ Double.GetHashCode();
         hashCode = (hashCode * 397) ^ Decimal.GetHashCode();
         hashCode = (hashCode * 397) ^ Guid.GetHashCode();
         hashCode = (hashCode * 397) ^ String.GetHashCode();
         hashCode = (hashCode * 397) ^ Key.GetHashCode();
         return(hashCode);
     }
 }
Exemple #23
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = _int1;
         result = (result * 397) ^ Bool.GetHashCode();
         result = (result * 397) ^ (NullableBool.HasValue ? NullableBool.Value.GetHashCode() : 0);
         result = (result * 397) ^ Int;
         result = (result * 397) ^ Uint.GetHashCode();
         result = (result * 397) ^ (NullableInt.HasValue ? NullableInt.Value : 0);
         result = (result * 397) ^ (NullableUint.HasValue ? NullableUint.Value.GetHashCode() : 0);
         result = (result * 397) ^ Byte.GetHashCode();
         result = (result * 397) ^ Sbyte.GetHashCode();
         result = (result * 397) ^ (NullableByte.HasValue ? NullableByte.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableSbyte.HasValue ? NullableSbyte.Value.GetHashCode() : 0);
         result = (result * 397) ^ Short.GetHashCode();
         result = (result * 397) ^ Ushort.GetHashCode();
         result = (result * 397) ^ (NullableShort.HasValue ? NullableShort.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableUshort.HasValue ? NullableUshort.Value.GetHashCode() : 0);
         result = (result * 397) ^ Long.GetHashCode();
         result = (result * 397) ^ Ulong.GetHashCode();
         result = (result * 397) ^ (NullableLong.HasValue ? NullableLong.Value.GetHashCode() : 0);
         result = (result * 397) ^ (NullableUlong.HasValue ? NullableUlong.Value.GetHashCode() : 0);
         result = (result * 397) ^ Char.GetHashCode();
         result = (result * 397) ^ (NullableChar.HasValue ? NullableChar.Value.GetHashCode() : 0);
         result = (result * 397) ^ Float.GetHashCode();
         result = (result * 397) ^ (NullableFloat.HasValue ? NullableFloat.Value.GetHashCode() : 0);
         result = (result * 397) ^ Double.GetHashCode();
         result = (result * 397) ^ (NullableDouble.HasValue ? NullableDouble.Value.GetHashCode() : 0);
         result = (result * 397) ^ Decimal.GetHashCode();
         result = (result * 397) ^ (NullableDecimal.HasValue ? NullableDecimal.Value.GetHashCode() : 0);
         result = (result * 397) ^ (String != null ? String.GetHashCode() : 0);
         result = (result * 397) ^ (Object != null ? Object.GetHashCode() : 0);
         result = (result * 397) ^ TimeSpan.GetHashCode();
         result = (result * 397) ^ (NullableTimeSpan.HasValue ? NullableTimeSpan.Value.GetHashCode() : 0);
         result = (result * 397) ^ DateTime.GetHashCode();
         result = (result * 397) ^ (NullableDateTime.HasValue ? NullableDateTime.Value.GetHashCode() : 0);
         return(result);
     }
 }
Exemple #24
0
        public void TestGetHashCode([Random(float.MinValue, float.MaxValue, 1)] double rawValue)
        {
            var value = new Float(rawValue);

            Assert.That(value.GetHashCode(), Is.EqualTo(value.Value.GetHashCode()));
        }