diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/020a9zhDAO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/020a9zhDAO.verified.txt index e52df696b3..2cf52b9275 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/020a9zhDAO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/020a9zhDAO.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0Ezcb8YiEB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0Ezcb8YiEB.verified.txt index 38617debd4..e42886ed23 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0Ezcb8YiEB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0Ezcb8YiEB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0TwMxuiNNt.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0TwMxuiNNt.verified.txt index 021aa45646..da782bb349 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0TwMxuiNNt.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0TwMxuiNNt.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0r0cLJVe3z.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0r0cLJVe3z.verified.txt index c4f8700db7..178e80368c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0r0cLJVe3z.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/0r0cLJVe3z.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/14C3IoEgtx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/14C3IoEgtx.verified.txt index 7f0c8d0055..2b2dcf914b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/14C3IoEgtx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/14C3IoEgtx.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Ab8038pJu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Ab8038pJu.verified.txt index a94a4930e6..5a015c3585 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Ab8038pJu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Ab8038pJu.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Hm9BI2hlj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Hm9BI2hlj.verified.txt index 9f916e9106..ca88a85faa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Hm9BI2hlj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1Hm9BI2hlj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QFtVlpDn8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QFtVlpDn8.verified.txt index 5a6aedcd54..183332d5f2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QFtVlpDn8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QFtVlpDn8.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QMTovmcaS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QMTovmcaS.verified.txt index e2aebd1245..3b0550027a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QMTovmcaS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QMTovmcaS.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QexJ8sSB8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QexJ8sSB8.verified.txt index dc188a039f..12e427a50a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QexJ8sSB8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1QexJ8sSB8.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R5OxuE172.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R5OxuE172.verified.txt index 0617ea78bb..c996e18610 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R5OxuE172.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R5OxuE172.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R7CyJyo4N.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R7CyJyo4N.verified.txt index d2c9fe732b..17c0a449de 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R7CyJyo4N.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1R7CyJyo4N.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1TYjJU2JFe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1TYjJU2JFe.verified.txt index c84b322b9b..da6a99a637 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1TYjJU2JFe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1TYjJU2JFe.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1bjviuYNhe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1bjviuYNhe.verified.txt index b9bc50ffa1..259245793d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1bjviuYNhe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1bjviuYNhe.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cemyPuwt3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cemyPuwt3.verified.txt index 6b7611acfa..dc1cb02e44 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cemyPuwt3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cemyPuwt3.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cjCyhkVAT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cjCyhkVAT.verified.txt index 82febb9943..928457b432 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cjCyhkVAT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1cjCyhkVAT.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1mDNXwZNFb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1mDNXwZNFb.verified.txt index 01e8225f8b..dbcc78ebb1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1mDNXwZNFb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1mDNXwZNFb.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1oA3oa0yhg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1oA3oa0yhg.verified.txt index c0b696f375..2859fd6c01 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1oA3oa0yhg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1oA3oa0yhg.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1sJu6ved9z.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1sJu6ved9z.verified.txt index 8c8479815f..bd48211459 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1sJu6ved9z.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1sJu6ved9z.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1u3cqOtWDC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1u3cqOtWDC.verified.txt index 27bdb78a8e..a763d445e3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1u3cqOtWDC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1u3cqOtWDC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1ycpnBYB82.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1ycpnBYB82.verified.txt index e7b00d8d63..0872d3e310 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1ycpnBYB82.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/1ycpnBYB82.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/203QndFLp5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/203QndFLp5.verified.txt index afda429507..7998333190 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/203QndFLp5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/203QndFLp5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/21ZqRvbTi4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/21ZqRvbTi4.verified.txt index 6ff179bf12..0f5f6ec74f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/21ZqRvbTi4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/21ZqRvbTi4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2VKzhkbHX9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2VKzhkbHX9.verified.txt index 7e76c862af..afd5ba7871 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2VKzhkbHX9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2VKzhkbHX9.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2c0dGifBVP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2c0dGifBVP.verified.txt index 583db9d491..e5113fedd8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2c0dGifBVP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2c0dGifBVP.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2fKJH6OFqD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2fKJH6OFqD.verified.txt index 1e068320dd..da4377b983 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2fKJH6OFqD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2fKJH6OFqD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2jKFMgO6A7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2jKFMgO6A7.verified.txt index 17ef4fed6d..6165881596 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2jKFMgO6A7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2jKFMgO6A7.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2otzImjE3L.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2otzImjE3L.verified.txt index 2959487064..13411d8640 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2otzImjE3L.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2otzImjE3L.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2rmyHzhBnT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2rmyHzhBnT.verified.txt index 10733bbee8..6826833d5d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2rmyHzhBnT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2rmyHzhBnT.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2uXg20FjD2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2uXg20FjD2.verified.txt index 188557d8c9..32522b07a6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2uXg20FjD2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/2uXg20FjD2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/37kxw03kDj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/37kxw03kDj.verified.txt index ded1c3359c..8aaf7e3201 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/37kxw03kDj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/37kxw03kDj.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3Giiro8Q8a.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3Giiro8Q8a.verified.txt index dc4f8cb176..2ed7864dad 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3Giiro8Q8a.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3Giiro8Q8a.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3HhJ2eexdc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3HhJ2eexdc.verified.txt index 558aaa1eb9..2a041c2164 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3HhJ2eexdc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3HhJ2eexdc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3NbuOS1Vyl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3NbuOS1Vyl.verified.txt index fe61eb675b..7b50348743 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3NbuOS1Vyl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3NbuOS1Vyl.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3T1e3Qncz7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3T1e3Qncz7.verified.txt index 19801f21f1..65b910363c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3T1e3Qncz7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3T1e3Qncz7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3XHopPp8WZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3XHopPp8WZ.verified.txt index 0fe368092c..12af201629 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3XHopPp8WZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3XHopPp8WZ.verified.txt @@ -123,8 +123,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -132,7 +131,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3ZIb5FSl60.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3ZIb5FSl60.verified.txt index 416ca187db..06b5edf1d6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3ZIb5FSl60.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3ZIb5FSl60.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3oUsrelt2v.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3oUsrelt2v.verified.txt index b91b495892..8a9733ffea 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3oUsrelt2v.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3oUsrelt2v.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3pXLwxOlTQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3pXLwxOlTQ.verified.txt index 1a77cecf72..d0fa9ff096 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3pXLwxOlTQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3pXLwxOlTQ.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3vnLB0WWvC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3vnLB0WWvC.verified.txt index b0240d5d74..799402461b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3vnLB0WWvC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/3vnLB0WWvC.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4GqosYAv6w.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4GqosYAv6w.verified.txt index 7065a72caf..0a20a43c67 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4GqosYAv6w.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4GqosYAv6w.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4IoadlUJoJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4IoadlUJoJ.verified.txt index 960181f25b..28f56b464c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4IoadlUJoJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4IoadlUJoJ.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4Sjb4hxOUl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4Sjb4hxOUl.verified.txt index 1c01873cce..a927b566eb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4Sjb4hxOUl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4Sjb4hxOUl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4ef4WvnIPG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4ef4WvnIPG.verified.txt index 2b34399295..3c76908e50 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4ef4WvnIPG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4ef4WvnIPG.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4egwptoJTP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4egwptoJTP.verified.txt index e986603ffe..3f57f8add9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4egwptoJTP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4egwptoJTP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4fP0Z3qLBE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4fP0Z3qLBE.verified.txt index fa9923df6b..06dcdd2306 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4fP0Z3qLBE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4fP0Z3qLBE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4jh3GLikAf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4jh3GLikAf.verified.txt index aaabb18800..0477e81743 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4jh3GLikAf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4jh3GLikAf.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4pwW90yiHx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4pwW90yiHx.verified.txt index 925e2bcc31..a93d3cb6a3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4pwW90yiHx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4pwW90yiHx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4q8EVjWgIM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4q8EVjWgIM.verified.txt index 105da092d8..2993092e0d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4q8EVjWgIM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4q8EVjWgIM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4yE1OuTQ7H.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4yE1OuTQ7H.verified.txt index d75e473e71..8f9d8659fb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4yE1OuTQ7H.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/4yE1OuTQ7H.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/50fsNJeI4O.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/50fsNJeI4O.verified.txt index 7fef8b4c7f..e6da62eca8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/50fsNJeI4O.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/50fsNJeI4O.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5BpY9bPVhd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5BpY9bPVhd.verified.txt index b017c36573..8a54b36470 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5BpY9bPVhd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5BpY9bPVhd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5KDXleKkPK.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5KDXleKkPK.verified.txt index cab0980fce..c05d7c5511 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5KDXleKkPK.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5KDXleKkPK.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5LT9eNzkzF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5LT9eNzkzF.verified.txt index 1d08f76b86..036e29ac33 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5LT9eNzkzF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5LT9eNzkzF.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5Qcvf5J6gc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5Qcvf5J6gc.verified.txt index aefca5487e..ebfc28ea16 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5Qcvf5J6gc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5Qcvf5J6gc.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5RsxCMJfMy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5RsxCMJfMy.verified.txt index 0bb5247b10..9127082a3e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5RsxCMJfMy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5RsxCMJfMy.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5TsB2BA8mQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5TsB2BA8mQ.verified.txt index 79ec461d60..516a7f225b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5TsB2BA8mQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5TsB2BA8mQ.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5XbOfLkxOS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5XbOfLkxOS.verified.txt index 9a1f9f2d53..3b85ee7aac 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5XbOfLkxOS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5XbOfLkxOS.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5aEtGqnhO7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5aEtGqnhO7.verified.txt index da6a18fe37..7111fff2ec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5aEtGqnhO7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5aEtGqnhO7.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5eQNXT421n.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5eQNXT421n.verified.txt index 277b19f9ee..53198ac39d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5eQNXT421n.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5eQNXT421n.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5gA1v5OCk1.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5gA1v5OCk1.verified.txt index 140ee6291e..154b7b5dbe 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5gA1v5OCk1.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5gA1v5OCk1.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5mcQb46qaN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5mcQb46qaN.verified.txt index b0d5129abf..de8350b16a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5mcQb46qaN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5mcQb46qaN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5oRtW5ow6k.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5oRtW5ow6k.verified.txt index 62b9635f76..bac106dcce 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5oRtW5ow6k.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5oRtW5ow6k.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5vcuDD4Smd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5vcuDD4Smd.verified.txt index 39d0f3e2fc..5b86fcf1d5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5vcuDD4Smd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5vcuDD4Smd.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5ydj8E2PO3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5ydj8E2PO3.verified.txt index b6148c92fa..69aefd05da 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5ydj8E2PO3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5ydj8E2PO3.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5zORAJyBZD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5zORAJyBZD.verified.txt index fe8bd7f392..f90b669c26 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5zORAJyBZD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/5zORAJyBZD.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/61Ku3anFcd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/61Ku3anFcd.verified.txt index fa2827f79b..3207909d43 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/61Ku3anFcd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/61Ku3anFcd.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/663Sh4Ljcw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/663Sh4Ljcw.verified.txt index 1e0c6a3708..9b6efbd229 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/663Sh4Ljcw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/663Sh4Ljcw.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/68Zm4EjDB5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/68Zm4EjDB5.verified.txt index 4a80a32275..f1ae5cd303 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/68Zm4EjDB5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/68Zm4EjDB5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Ndmtv4LBV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Ndmtv4LBV.verified.txt index 10fcdfd819..534d2112e3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Ndmtv4LBV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Ndmtv4LBV.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Uuvy6F7UO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Uuvy6F7UO.verified.txt index 9b484b188b..2ae7e2ffeb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Uuvy6F7UO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6Uuvy6F7UO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6j4MpP1g4e.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6j4MpP1g4e.verified.txt index 594bf23ed6..d9ce519ef8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6j4MpP1g4e.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6j4MpP1g4e.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xDbuwVdLW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xDbuwVdLW.verified.txt index 8a1941a8d8..4a97ca1c45 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xDbuwVdLW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xDbuwVdLW.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xnY9ydbAv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xnY9ydbAv.verified.txt index 50cc32871f..934715f0bb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xnY9ydbAv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/6xnY9ydbAv.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/72FmgPJkEl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/72FmgPJkEl.verified.txt index 17b026d1ea..152c4b116b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/72FmgPJkEl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/72FmgPJkEl.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7GaZn5nPp2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7GaZn5nPp2.verified.txt index b9beb6fa59..4a81cada7e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7GaZn5nPp2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7GaZn5nPp2.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7J9yvQj2Hh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7J9yvQj2Hh.verified.txt index 77d89edb77..71a2b5d7a1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7J9yvQj2Hh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7J9yvQj2Hh.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7KrSrnlxqO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7KrSrnlxqO.verified.txt index bed42b9761..b8a06e666e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7KrSrnlxqO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7KrSrnlxqO.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7PdbnRUCQ6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7PdbnRUCQ6.verified.txt index 42bb530873..681c5e869c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7PdbnRUCQ6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7PdbnRUCQ6.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7S06gdLe7I.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7S06gdLe7I.verified.txt index 72e4b2cd49..b154d5aaf6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7S06gdLe7I.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7S06gdLe7I.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZSR6zrCkr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZSR6zrCkr.verified.txt index dec6d40bd4..3d62162f30 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZSR6zrCkr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZSR6zrCkr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZohMjx0jM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZohMjx0jM.verified.txt index f3922a9729..1ea9f1567d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZohMjx0jM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7ZohMjx0jM.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fIqW0n1tE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fIqW0n1tE.verified.txt index cf86c7a76e..4dc9cdd5aa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fIqW0n1tE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fIqW0n1tE.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fsDV4obHy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fsDV4obHy.verified.txt index 2020eadd32..3b283cd915 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fsDV4obHy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fsDV4obHy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fuYOmWZnu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fuYOmWZnu.verified.txt index 8457caca06..084a3c6bac 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fuYOmWZnu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7fuYOmWZnu.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7g6NzZcPzW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7g6NzZcPzW.verified.txt index 058683d404..2f1d4f276e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7g6NzZcPzW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7g6NzZcPzW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7gAv70EGOJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7gAv70EGOJ.verified.txt index b33a327903..624e73e6b0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7gAv70EGOJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7gAv70EGOJ.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7n6CzW6r8E.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7n6CzW6r8E.verified.txt index c41433f3dc..76db1ba8f4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7n6CzW6r8E.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7n6CzW6r8E.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7v0npArJ0O.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7v0npArJ0O.verified.txt index f2bcceac23..ee12e1b68d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7v0npArJ0O.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7v0npArJ0O.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7xyeywumkN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7xyeywumkN.verified.txt index c37ac84363..03c1d7b843 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7xyeywumkN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/7xyeywumkN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/81OAwiUT3m.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/81OAwiUT3m.verified.txt index 7eb61d2cab..0cc4fb6e97 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/81OAwiUT3m.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/81OAwiUT3m.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/83PKmcLP5W.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/83PKmcLP5W.verified.txt index be266fc369..af5b230f04 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/83PKmcLP5W.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/83PKmcLP5W.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8G3n2QzBga.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8G3n2QzBga.verified.txt index 513cf21bc0..29a791d266 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8G3n2QzBga.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8G3n2QzBga.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8SEUfvOnjd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8SEUfvOnjd.verified.txt index 0d93cb708c..6de816e125 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8SEUfvOnjd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8SEUfvOnjd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8TzJ6T6Go9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8TzJ6T6Go9.verified.txt index 217620bc7a..7c67565e61 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8TzJ6T6Go9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8TzJ6T6Go9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8UQ6ArU5V2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8UQ6ArU5V2.verified.txt index 9de5e54fa2..e75de323ae 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8UQ6ArU5V2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8UQ6ArU5V2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8fRQAhjIeo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8fRQAhjIeo.verified.txt index e324e7e518..aee29b29a2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8fRQAhjIeo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8fRQAhjIeo.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8hffuIXh3b.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8hffuIXh3b.verified.txt index aac1c2ef59..c7221d877b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8hffuIXh3b.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8hffuIXh3b.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8iZ2Wp2QFr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8iZ2Wp2QFr.verified.txt index 20261d2b3a..e0c3f1562a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8iZ2Wp2QFr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8iZ2Wp2QFr.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8l3bW7vrXe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8l3bW7vrXe.verified.txt index ebb8f760d1..b4507196a5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8l3bW7vrXe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8l3bW7vrXe.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8oygBm6FHD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8oygBm6FHD.verified.txt index 292b72d492..af0931ebc4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8oygBm6FHD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/8oygBm6FHD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91K3IRbruT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91K3IRbruT.verified.txt index 5fef1f4648..cfc3c640ec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91K3IRbruT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91K3IRbruT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91n32T1eTx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91n32T1eTx.verified.txt index a76bc0c60a..47ce82015c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91n32T1eTx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/91n32T1eTx.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/94tdQGCE4S.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/94tdQGCE4S.verified.txt index 9206f62ff1..42fc7c1d7c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/94tdQGCE4S.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/94tdQGCE4S.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/99dXAZDWAr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/99dXAZDWAr.verified.txt index 0bcddfba0f..61bc1923a2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/99dXAZDWAr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/99dXAZDWAr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9B4VdiauhF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9B4VdiauhF.verified.txt index e3b0d67464..4f9c91a786 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9B4VdiauhF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9B4VdiauhF.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9FTT3ugW0D.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9FTT3ugW0D.verified.txt index 1f4f8e9213..2a3bb246d3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9FTT3ugW0D.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9FTT3ugW0D.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9PVptBGvJ8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9PVptBGvJ8.verified.txt index c5a3245105..06915a109c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9PVptBGvJ8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9PVptBGvJ8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9TcRyLIDYR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9TcRyLIDYR.verified.txt index 1fc29bf61b..7ac6ffb2db 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9TcRyLIDYR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9TcRyLIDYR.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9VjdE7Mw8f.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9VjdE7Mw8f.verified.txt index 85c58988a7..52ed1e1186 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9VjdE7Mw8f.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9VjdE7Mw8f.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9aUVaDpMY9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9aUVaDpMY9.verified.txt index d554da8384..6d12a064a4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9aUVaDpMY9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/9aUVaDpMY9.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A48z1ut7Gi.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A48z1ut7Gi.verified.txt index 4de104e666..699b0104c1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A48z1ut7Gi.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A48z1ut7Gi.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A6HCPwp1oL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A6HCPwp1oL.verified.txt index a487ee0c12..625eb06611 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A6HCPwp1oL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/A6HCPwp1oL.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ALsUiUeD8B.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ALsUiUeD8B.verified.txt index ad1d8ad1f7..e4c4e17ceb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ALsUiUeD8B.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ALsUiUeD8B.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AMV6LgJdye.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AMV6LgJdye.verified.txt index 92a9d697b5..cc7e689de7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AMV6LgJdye.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AMV6LgJdye.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ARbd3cRBub.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ARbd3cRBub.verified.txt index 8d9f4dc771..962c3a3554 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ARbd3cRBub.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ARbd3cRBub.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ASzheSCTPW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ASzheSCTPW.verified.txt index 74fbddbc54..c9c89241ab 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ASzheSCTPW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ASzheSCTPW.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ATpCzy7GZV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ATpCzy7GZV.verified.txt index 1fee605d08..3c65d85c00 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ATpCzy7GZV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ATpCzy7GZV.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AcvKAUIye2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AcvKAUIye2.verified.txt index b87cdc59d9..2aca1f17fa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AcvKAUIye2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AcvKAUIye2.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AiWZVDFrji.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AiWZVDFrji.verified.txt index 25d2d2391e..6b016322c9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AiWZVDFrji.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/AiWZVDFrji.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ApXn9qUVMx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ApXn9qUVMx.verified.txt index b277fb5ca9..ffba4b622a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ApXn9qUVMx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ApXn9qUVMx.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/B04cCPP5hE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/B04cCPP5hE.verified.txt index be1c7cac6b..0abca7c9d3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/B04cCPP5hE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/B04cCPP5hE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BBaR0PmJkD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BBaR0PmJkD.verified.txt index 3aef7bd5c6..bc51b14d2f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BBaR0PmJkD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BBaR0PmJkD.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BC4F3ldZTU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BC4F3ldZTU.verified.txt index d00613156a..f46d2a9d16 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BC4F3ldZTU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BC4F3ldZTU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BKTLv8CkDH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BKTLv8CkDH.verified.txt index e9fa874a41..c7b106e097 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BKTLv8CkDH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BKTLv8CkDH.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BPpveTBpr5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BPpveTBpr5.verified.txt index 119dd42341..19335e276d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BPpveTBpr5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BPpveTBpr5.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BUJJImM4Ml.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BUJJImM4Ml.verified.txt index d2a04948a4..62e5b4f06b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BUJJImM4Ml.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BUJJImM4Ml.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BjTgPIKmAp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BjTgPIKmAp.verified.txt index 4b5383f1b2..3300e96a2e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BjTgPIKmAp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/BjTgPIKmAp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C28fP1U8wD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C28fP1U8wD.verified.txt index f5edd3aeb1..ac0e50ceef 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C28fP1U8wD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C28fP1U8wD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C8QHDIBu2L.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C8QHDIBu2L.verified.txt index 39029770d9..da5d07a0ee 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C8QHDIBu2L.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/C8QHDIBu2L.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CDXKkHhsdl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CDXKkHhsdl.verified.txt index ed8f9bee3f..da60272404 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CDXKkHhsdl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CDXKkHhsdl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CMyQbThiyN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CMyQbThiyN.verified.txt index ba57ec28b0..a5b78628d6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CMyQbThiyN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CMyQbThiyN.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CVVO5jqZSq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CVVO5jqZSq.verified.txt index 7ca9d39e3e..a2011dfff8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CVVO5jqZSq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CVVO5jqZSq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkDQnsm5ek.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkDQnsm5ek.verified.txt index 8dca70b9d0..7df8d8df2f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkDQnsm5ek.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkDQnsm5ek.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkhHZALVMD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkhHZALVMD.verified.txt index 2df3c1d660..536d572214 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkhHZALVMD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CkhHZALVMD.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClU9sP04He.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClU9sP04He.verified.txt index 4233180a67..0676799716 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClU9sP04He.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClU9sP04He.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClkIkhnyDa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClkIkhnyDa.verified.txt index 559516a9df..565d1f26b9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClkIkhnyDa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ClkIkhnyDa.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CqxcX6mJk2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CqxcX6mJk2.verified.txt index b130b466a5..ba61709f2e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CqxcX6mJk2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CqxcX6mJk2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CrTprc7ocs.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CrTprc7ocs.verified.txt index 6131d13419..f9b4616b7b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CrTprc7ocs.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CrTprc7ocs.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CsCzP4UsJf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CsCzP4UsJf.verified.txt index 0c942e51f1..de44a2eee3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CsCzP4UsJf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/CsCzP4UsJf.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Cxb5K2w4um.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Cxb5K2w4um.verified.txt index eab1f7c2ba..758f04ed02 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Cxb5K2w4um.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Cxb5K2w4um.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/D5ti90Gtnc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/D5ti90Gtnc.verified.txt index 52a712f3f4..550a7bc581 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/D5ti90Gtnc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/D5ti90Gtnc.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DK8nIBciEO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DK8nIBciEO.verified.txt index 932d951b67..3c7c3a182e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DK8nIBciEO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DK8nIBciEO.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DKkTu9Suyu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DKkTu9Suyu.verified.txt index b210611bcd..1fd788430e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DKkTu9Suyu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DKkTu9Suyu.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DTBuPSyaY6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DTBuPSyaY6.verified.txt index 8aec0061c7..72ad1ffa12 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DTBuPSyaY6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DTBuPSyaY6.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWMJjugaJ2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWMJjugaJ2.verified.txt index 3811f9de16..cc905be452 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWMJjugaJ2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWMJjugaJ2.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWrbYaKlqb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWrbYaKlqb.verified.txt index 3f3da8379b..108a154b8b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWrbYaKlqb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DWrbYaKlqb.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DY8fBu1CWe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DY8fBu1CWe.verified.txt index 07062aa159..91c2565f38 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DY8fBu1CWe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DY8fBu1CWe.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DZ9LCR03nn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DZ9LCR03nn.verified.txt index 74de418eec..c12f892d23 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DZ9LCR03nn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DZ9LCR03nn.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Df4DmCpveP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Df4DmCpveP.verified.txt index f5f2b2a6c5..8ff41dde0e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Df4DmCpveP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Df4DmCpveP.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DoB0bQElXk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DoB0bQElXk.verified.txt index c022fabc3b..d67b5c7f1c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DoB0bQElXk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DoB0bQElXk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DxegovLyus.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DxegovLyus.verified.txt index a4317a3e5d..fc547c10f7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DxegovLyus.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/DxegovLyus.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/E8ixi4Zrs6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/E8ixi4Zrs6.verified.txt index 9c56135b3c..396fd8134e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/E8ixi4Zrs6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/E8ixi4Zrs6.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EEeBYZJQWa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EEeBYZJQWa.verified.txt index ceb788ae11..0503658436 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EEeBYZJQWa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EEeBYZJQWa.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EFai6tQHAL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EFai6tQHAL.verified.txt index 38bb2f4f49..54f7b7f7a5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EFai6tQHAL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EFai6tQHAL.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EGvse7Xu9e.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EGvse7Xu9e.verified.txt index 585cbe0edf..58d4ba8dc1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EGvse7Xu9e.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/EGvse7Xu9e.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ElAvUVr1J8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ElAvUVr1J8.verified.txt index ac73005b5d..9fae014743 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ElAvUVr1J8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ElAvUVr1J8.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Erav6lNLwd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Erav6lNLwd.verified.txt index fb01cf5c60..17bfcb40c7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Erav6lNLwd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Erav6lNLwd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ErobMjlXsH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ErobMjlXsH.verified.txt index e6a484f036..c6d412a865 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ErobMjlXsH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ErobMjlXsH.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F3b0MLAQnM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F3b0MLAQnM.verified.txt index 24f4180051..c2159a863f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F3b0MLAQnM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F3b0MLAQnM.verified.txt @@ -122,8 +122,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -131,7 +130,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F6e8ttvjyh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F6e8ttvjyh.verified.txt index cf1c68d530..991a267844 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F6e8ttvjyh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/F6e8ttvjyh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FA94eEPoCW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FA94eEPoCW.verified.txt index 4f9cb0e2bd..69349882f4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FA94eEPoCW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FA94eEPoCW.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FCO2l3aGCa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FCO2l3aGCa.verified.txt index 8a0a3dd3c1..793561a042 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FCO2l3aGCa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FCO2l3aGCa.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FEckh3M7FM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FEckh3M7FM.verified.txt index 7e29bf1d33..a2b9859c5b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FEckh3M7FM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FEckh3M7FM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FgCGsFoAaV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FgCGsFoAaV.verified.txt index f7699c3254..6f39976edc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FgCGsFoAaV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FgCGsFoAaV.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FhlbHrLORS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FhlbHrLORS.verified.txt index 76f8a7adcf..bcdd4db8ad 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FhlbHrLORS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FhlbHrLORS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FiL3jMf8B5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FiL3jMf8B5.verified.txt index 9d8b2e8018..bab6df435d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FiL3jMf8B5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FiL3jMf8B5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FkRhfuuuFN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FkRhfuuuFN.verified.txt index e53bf4fecb..2975469d0f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FkRhfuuuFN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FkRhfuuuFN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FrjO6mEY2d.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FrjO6mEY2d.verified.txt index 393ad2d328..6ebe203ab9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FrjO6mEY2d.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FrjO6mEY2d.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsAdJJkdMO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsAdJJkdMO.verified.txt index d917718305..04769f120a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsAdJJkdMO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsAdJJkdMO.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsvHmzsFIv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsvHmzsFIv.verified.txt index fb19fb1a12..5c93a71f7f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsvHmzsFIv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FsvHmzsFIv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FtCRLEwvuz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FtCRLEwvuz.verified.txt index bb30964be2..5cb8dc951e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FtCRLEwvuz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/FtCRLEwvuz.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G1Z8ySY3Wv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G1Z8ySY3Wv.verified.txt index 22b94f80c4..0b884a9e3f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G1Z8ySY3Wv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G1Z8ySY3Wv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G68WCoZtsb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G68WCoZtsb.verified.txt index 6da6fe0776..8291110c32 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G68WCoZtsb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/G68WCoZtsb.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GBBwr5EiJn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GBBwr5EiJn.verified.txt index 7bd4af8bc2..95d2cd6559 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GBBwr5EiJn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GBBwr5EiJn.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GI9PFZEXai.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GI9PFZEXai.verified.txt index 5de9d6fc60..23e2d49539 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GI9PFZEXai.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GI9PFZEXai.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GIPCotR2CI.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GIPCotR2CI.verified.txt index dd9a7b0266..9fe0d4b6c9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GIPCotR2CI.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GIPCotR2CI.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GKz2SYu39n.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GKz2SYu39n.verified.txt index 5b58db6a0b..f5ed3e68cd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GKz2SYu39n.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GKz2SYu39n.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GO7rTBAKXZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GO7rTBAKXZ.verified.txt index 335c534243..afceed3def 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GO7rTBAKXZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GO7rTBAKXZ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GPG0OcAcbu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GPG0OcAcbu.verified.txt index 836cb81620..102f79bccc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GPG0OcAcbu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GPG0OcAcbu.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GeQwjcxP8K.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GeQwjcxP8K.verified.txt index 046bc4cdc5..3bdddb619d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GeQwjcxP8K.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GeQwjcxP8K.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gf6nI9k93r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gf6nI9k93r.verified.txt index af37ecd0ad..940dd1c626 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gf6nI9k93r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gf6nI9k93r.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GkOyW0GiX4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GkOyW0GiX4.verified.txt index a5499a67d9..9858bf2315 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GkOyW0GiX4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GkOyW0GiX4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtIxOvUYtq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtIxOvUYtq.verified.txt index df45d74ec2..92d91ac24c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtIxOvUYtq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtIxOvUYtq.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtmOTIO9VU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtmOTIO9VU.verified.txt index f5efa5550d..5f970b6121 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtmOTIO9VU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GtmOTIO9VU.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GuO937nBp2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GuO937nBp2.verified.txt index 974f02f9c6..86f7eee82c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GuO937nBp2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GuO937nBp2.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gvj3aUwGcp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gvj3aUwGcp.verified.txt index 22a273e3a9..47ad1c1f88 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gvj3aUwGcp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Gvj3aUwGcp.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GxLmdQIzuz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GxLmdQIzuz.verified.txt index b33b00c3e3..1154052e6b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GxLmdQIzuz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/GxLmdQIzuz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H0YA3blEBe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H0YA3blEBe.verified.txt index f7d0aab614..9b09179855 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H0YA3blEBe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H0YA3blEBe.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H2gdTAO9xr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H2gdTAO9xr.verified.txt index d5f67e535c..e89b0bc6c0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H2gdTAO9xr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H2gdTAO9xr.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H3mBIYHLPK.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H3mBIYHLPK.verified.txt index 3f7eda2e53..f37f7e6b7a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H3mBIYHLPK.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H3mBIYHLPK.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H4lirCA968.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H4lirCA968.verified.txt index a8647d64c6..daae0cc353 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H4lirCA968.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H4lirCA968.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H52tElKwp4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H52tElKwp4.verified.txt index 0a23ebc3f7..d55d711962 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H52tElKwp4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/H52tElKwp4.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitint other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HF6iIMkpGF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HF6iIMkpGF.verified.txt index 012630578b..46c1239b7b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HF6iIMkpGF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HF6iIMkpGF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HIYNPaQ1vm.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HIYNPaQ1vm.verified.txt index c14584ee04..fe3c32da3a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HIYNPaQ1vm.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HIYNPaQ1vm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HNc6iondOw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HNc6iondOw.verified.txt index f638d0b755..76b18d6713 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HNc6iondOw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HNc6iondOw.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HV7nH1HJEs.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HV7nH1HJEs.verified.txt index 90301292e7..a48f72055d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HV7nH1HJEs.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HV7nH1HJEs.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HaeAfIbtqo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HaeAfIbtqo.verified.txt index 0f9b4d7e9f..b0c40624f6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HaeAfIbtqo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HaeAfIbtqo.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hj9lSRCmAY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hj9lSRCmAY.verified.txt index f2d169a099..0180356ebe 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hj9lSRCmAY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hj9lSRCmAY.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HkGGxmG5Md.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HkGGxmG5Md.verified.txt index ec9d47cca5..48b99e4889 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HkGGxmG5Md.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HkGGxmG5Md.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hkg3zFiPMR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hkg3zFiPMR.verified.txt index 7c6504868b..fb7bdd2b57 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hkg3zFiPMR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hkg3zFiPMR.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ho9eTExf2P.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ho9eTExf2P.verified.txt index afabbe38c5..d9af6dbaf6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ho9eTExf2P.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ho9eTExf2P.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqmwjOS1FV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqmwjOS1FV.verified.txt index 9d362ea228..803ca457d7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqmwjOS1FV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqmwjOS1FV.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqttccfCSA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqttccfCSA.verified.txt index 7ca6cb3ff2..7e3381fab1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqttccfCSA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HqttccfCSA.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HuZjzbtTbG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HuZjzbtTbG.verified.txt index 171aa951ea..9fc8e98ff1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HuZjzbtTbG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/HuZjzbtTbG.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hx2pP9vkFp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hx2pP9vkFp.verified.txt index 551ecf3bb5..5cd978803d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hx2pP9vkFp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Hx2pP9vkFp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I640I52kLk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I640I52kLk.verified.txt index 79fa27a22d..0134423123 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I640I52kLk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I640I52kLk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I6ySqlKyLW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I6ySqlKyLW.verified.txt index e9700969f1..27600a7179 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I6ySqlKyLW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I6ySqlKyLW.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I9cNMMf6kT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I9cNMMf6kT.verified.txt index e382383e31..61837cea26 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I9cNMMf6kT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/I9cNMMf6kT.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IBh8zzlfFk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IBh8zzlfFk.verified.txt index 70370ae9cb..8231807b3d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IBh8zzlfFk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IBh8zzlfFk.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IDHFkHqWK3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IDHFkHqWK3.verified.txt index a26edab090..42453f7941 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IDHFkHqWK3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IDHFkHqWK3.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IF8BrVHgB0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IF8BrVHgB0.verified.txt index de8fa650a6..9aecc6e132 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IF8BrVHgB0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IF8BrVHgB0.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IFE5LMvYbM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IFE5LMvYbM.verified.txt index 1659a54183..80a7734351 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IFE5LMvYbM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IFE5LMvYbM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IGifL3DuQh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IGifL3DuQh.verified.txt index a50b672251..d8c7cb3f55 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IGifL3DuQh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IGifL3DuQh.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/II71TfXpzY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/II71TfXpzY.verified.txt index b77c4ecee7..e7646e0cf5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/II71TfXpzY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/II71TfXpzY.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IIUm0SlNvB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IIUm0SlNvB.verified.txt index 66c4351455..cfbd300722 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IIUm0SlNvB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IIUm0SlNvB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IOJotlV7Ta.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IOJotlV7Ta.verified.txt index 1efbce55c7..d429904790 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IOJotlV7Ta.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IOJotlV7Ta.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IPyBXbHMYr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IPyBXbHMYr.verified.txt index 186b6f3f4a..616bc7b0ab 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IPyBXbHMYr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IPyBXbHMYr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ISByfovlwO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ISByfovlwO.verified.txt index e0cabfbfeb..c7a130cfe2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ISByfovlwO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ISByfovlwO.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgKGSoWLv5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgKGSoWLv5.verified.txt index e8bd90ba5b..867fdfc127 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgKGSoWLv5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgKGSoWLv5.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgclVrZPGw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgclVrZPGw.verified.txt index c8552b88e2..45a0fcdfda 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgclVrZPGw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IgclVrZPGw.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IscNqk9Dup.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IscNqk9Dup.verified.txt index 001b72d57d..914402198b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IscNqk9Dup.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IscNqk9Dup.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuELCZKXqm.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuELCZKXqm.verified.txt index 19ab1819ff..ca392364de 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuELCZKXqm.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuELCZKXqm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuQO1Apn3x.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuQO1Apn3x.verified.txt index d4e43c5ed5..129a326932 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuQO1Apn3x.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/IuQO1Apn3x.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J2VSYUhlWB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J2VSYUhlWB.verified.txt index fbac787714..e977f071c5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J2VSYUhlWB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J2VSYUhlWB.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J3Ybyv3sKj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J3Ybyv3sKj.verified.txt index 023f28879f..921bec1814 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J3Ybyv3sKj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/J3Ybyv3sKj.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JGU1hBv5yk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JGU1hBv5yk.verified.txt index 44bac96a08..c35a8d2f90 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JGU1hBv5yk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JGU1hBv5yk.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JHUrAjXDah.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JHUrAjXDah.verified.txt index e100c9e4c5..8d3884e89b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JHUrAjXDah.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JHUrAjXDah.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JJZHGAARDr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JJZHGAARDr.verified.txt index 922af8418e..ff1072c186 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JJZHGAARDr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JJZHGAARDr.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JMc47Bd3Gy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JMc47Bd3Gy.verified.txt index 781e495346..2b272e2f59 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JMc47Bd3Gy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JMc47Bd3Gy.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JNPhyBnByg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JNPhyBnByg.verified.txt index e3c898a604..27068b1a56 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JNPhyBnByg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JNPhyBnByg.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JPOVqCtNq2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JPOVqCtNq2.verified.txt index 2d02362c54..2aca90ccb5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JPOVqCtNq2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JPOVqCtNq2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRFkYYyUwj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRFkYYyUwj.verified.txt index 598ffff781..65addcc5f3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRFkYYyUwj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRFkYYyUwj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRY246NkpX.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRY246NkpX.verified.txt index 202ab445f2..8f96be5539 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRY246NkpX.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JRY246NkpX.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Jey62fhowo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Jey62fhowo.verified.txt index d2e3a8bc61..5080a27f6e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Jey62fhowo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Jey62fhowo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JhBmWM93UA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JhBmWM93UA.verified.txt index 44ab21824a..5f63ecf82a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JhBmWM93UA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JhBmWM93UA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JrkDmRJTBh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JrkDmRJTBh.verified.txt index 96aefa4c0d..79034d0b48 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JrkDmRJTBh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/JrkDmRJTBh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K0WfSLcAe9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K0WfSLcAe9.verified.txt index d5bd243496..c6e1d02904 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K0WfSLcAe9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K0WfSLcAe9.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K3fAt9baCx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K3fAt9baCx.verified.txt index e1c28a021a..e33391aa8e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K3fAt9baCx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K3fAt9baCx.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K6A01FJDMQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K6A01FJDMQ.verified.txt index 38c96c5dec..6faaa33337 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K6A01FJDMQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/K6A01FJDMQ.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KNBa0Y7mNc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KNBa0Y7mNc.verified.txt index 14833b2775..82577911fc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KNBa0Y7mNc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KNBa0Y7mNc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KVeI3TSlJ5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KVeI3TSlJ5.verified.txt index 57b91f86c1..437dcb0133 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KVeI3TSlJ5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KVeI3TSlJ5.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KbTY69VNk9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KbTY69VNk9.verified.txt index 6781e1150b..161b859711 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KbTY69VNk9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KbTY69VNk9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KfG1verOpN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KfG1verOpN.verified.txt index ba68cefa2d..ee72d1b347 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KfG1verOpN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KfG1verOpN.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KgDvQmdKCt.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KgDvQmdKCt.verified.txt index e041b5bf62..96dc244413 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KgDvQmdKCt.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KgDvQmdKCt.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Kh16boKdpD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Kh16boKdpD.verified.txt index 5d9ce93fb5..47a2b77143 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Kh16boKdpD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Kh16boKdpD.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KpjYxnbqSG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KpjYxnbqSG.verified.txt index 91723c53ab..ac926eddd6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KpjYxnbqSG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KpjYxnbqSG.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KxMOBDZwFK.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KxMOBDZwFK.verified.txt index fb65e15bc7..6f48a3ee98 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KxMOBDZwFK.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/KxMOBDZwFK.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L0ZnEJHnAG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L0ZnEJHnAG.verified.txt index b1b20307b8..7af1dce2ff 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L0ZnEJHnAG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L0ZnEJHnAG.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L1kqbWOUKC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L1kqbWOUKC.verified.txt index 367df03607..4a631118e2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L1kqbWOUKC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L1kqbWOUKC.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L75shUGhxP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L75shUGhxP.verified.txt index 532c66acdb..e99be6a340 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L75shUGhxP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/L75shUGhxP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LFYfYZrpoJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LFYfYZrpoJ.verified.txt index d1cf46d9fb..4ddffa7037 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LFYfYZrpoJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LFYfYZrpoJ.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJFykMMPMi.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJFykMMPMi.verified.txt index b38cd7e9f2..1c622f34bf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJFykMMPMi.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJFykMMPMi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJbQRikKOU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJbQRikKOU.verified.txt index 18077771b6..2cea4368ff 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJbQRikKOU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LJbQRikKOU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LYUm4t4VcP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LYUm4t4VcP.verified.txt index 9c73a03b66..7d4d55c979 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LYUm4t4VcP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LYUm4t4VcP.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LiZ7JBmfgo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LiZ7JBmfgo.verified.txt index 1e96b02b64..8aff7ad8b2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LiZ7JBmfgo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LiZ7JBmfgo.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Nonebyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonebyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Llc3dVgQ3T.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Llc3dVgQ3T.verified.txt index 2aee509cfe..a492f30475 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Llc3dVgQ3T.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Llc3dVgQ3T.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LmhSA9zRH8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LmhSA9zRH8.verified.txt index f987def464..e508036ce6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LmhSA9zRH8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LmhSA9zRH8.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LrtHjd3ty5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LrtHjd3ty5.verified.txt index 50f38d27ea..f68cd3d8e0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LrtHjd3ty5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LrtHjd3ty5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LseofXM13K.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LseofXM13K.verified.txt index 201eab52c7..5d4a1b7295 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LseofXM13K.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LseofXM13K.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LzwCHSI4xY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LzwCHSI4xY.verified.txt index eb51d4c27f..9d13d80cf7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LzwCHSI4xY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/LzwCHSI4xY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M15vjLYpNj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M15vjLYpNj.verified.txt index 82d783ecdd..e4b8afadac 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M15vjLYpNj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M15vjLYpNj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M5LkAE8OAG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M5LkAE8OAG.verified.txt index 4f25c4e979..9826b38b8d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M5LkAE8OAG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M5LkAE8OAG.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M7OB6UK7O9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M7OB6UK7O9.verified.txt index 6b032ac134..2058a3ceac 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M7OB6UK7O9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M7OB6UK7O9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M9CUp0KsIg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M9CUp0KsIg.verified.txt index f49cf8e024..de284647b5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M9CUp0KsIg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/M9CUp0KsIg.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MAbWa6On0t.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MAbWa6On0t.verified.txt index c7fa06d969..6f3b7d1304 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MAbWa6On0t.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MAbWa6On0t.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MO8kM09g0n.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MO8kM09g0n.verified.txt index 5c57e80c85..39e7884cde 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MO8kM09g0n.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MO8kM09g0n.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MW2Ppt5qVP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MW2Ppt5qVP.verified.txt index 44a621ee65..ed15616260 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MW2Ppt5qVP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MW2Ppt5qVP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MWKLnszqMq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MWKLnszqMq.verified.txt index 9550617a58..406cc1a3e2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MWKLnszqMq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MWKLnszqMq.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MZr4q8iotQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MZr4q8iotQ.verified.txt index b4b42bba08..30b6375044 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MZr4q8iotQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MZr4q8iotQ.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mba7Xwz2pc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mba7Xwz2pc.verified.txt index 9b2d26a81e..fd023e1d18 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mba7Xwz2pc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mba7Xwz2pc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mfi6cV2xQQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mfi6cV2xQQ.verified.txt index 9a1386dd40..4d784875ec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mfi6cV2xQQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Mfi6cV2xQQ.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MhOfNRfiY2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MhOfNRfiY2.verified.txt index 29d620b44f..ab9e368b6b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MhOfNRfiY2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MhOfNRfiY2.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MibhzfDYqw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MibhzfDYqw.verified.txt index 0037245f49..aada16819f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MibhzfDYqw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MibhzfDYqw.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MpDsXYcNDL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MpDsXYcNDL.verified.txt index ad721c3da5..64e3f971cb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MpDsXYcNDL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/MpDsXYcNDL.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/N5XvVzbya9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/N5XvVzbya9.verified.txt index 2641c156c2..dc32fc7355 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/N5XvVzbya9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/N5XvVzbya9.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NF7dCGInEh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NF7dCGInEh.verified.txt index d97fea862f..2a72373253 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NF7dCGInEh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NF7dCGInEh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NFm3HcXYdZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NFm3HcXYdZ.verified.txt index d62adbb11f..c620cae3e4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NFm3HcXYdZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NFm3HcXYdZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NLmDoCMmbB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NLmDoCMmbB.verified.txt index 9f221343c7..f4e34562a2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NLmDoCMmbB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NLmDoCMmbB.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NRfUq0E0Bk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NRfUq0E0Bk.verified.txt index c364b500d1..b53a7ebe80 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NRfUq0E0Bk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NRfUq0E0Bk.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NVUv7k4Iuz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NVUv7k4Iuz.verified.txt index da997d2c84..f085a0abfb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NVUv7k4Iuz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NVUv7k4Iuz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NX8FAbXv6x.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NX8FAbXv6x.verified.txt index aceecab75d..55d2dd18ad 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NX8FAbXv6x.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NX8FAbXv6x.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NYTDiPRjjP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NYTDiPRjjP.verified.txt index b717e83b8e..62f23de902 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NYTDiPRjjP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NYTDiPRjjP.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NZ2wOepO82.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NZ2wOepO82.verified.txt index 11ab993fc3..8b1efcc07f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NZ2wOepO82.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NZ2wOepO82.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NiKZef58LR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NiKZef58LR.verified.txt index 80f7aeda44..59bf5363a8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NiKZef58LR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NiKZef58LR.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NjfyBxuY3W.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NjfyBxuY3W.verified.txt index 34c4646c8c..f693336926 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NjfyBxuY3W.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NjfyBxuY3W.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlDLFb5yoN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlDLFb5yoN.verified.txt index 67f524e1fd..df0dd19a1d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlDLFb5yoN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlDLFb5yoN.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlXed8F1d8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlXed8F1d8.verified.txt index 24972e6718..af752adb82 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlXed8F1d8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NlXed8F1d8.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NmDgoPYV3g.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NmDgoPYV3g.verified.txt index 9d7e3810bb..ed0c1569b4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NmDgoPYV3g.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NmDgoPYV3g.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NroP7CBC2l.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NroP7CBC2l.verified.txt index b81026aa1b..4d9d450315 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NroP7CBC2l.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/NroP7CBC2l.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O5ZNrTYaVI.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O5ZNrTYaVI.verified.txt index e2308656d7..0d9daea525 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O5ZNrTYaVI.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O5ZNrTYaVI.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O6eWJErQcM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O6eWJErQcM.verified.txt index 6b47e9acf2..dafa5d8706 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O6eWJErQcM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O6eWJErQcM.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O8PVQsFutL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O8PVQsFutL.verified.txt index ea1f5efd24..9edcd64c93 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O8PVQsFutL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/O8PVQsFutL.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ODcCKCRa9L.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ODcCKCRa9L.verified.txt index 9e12c3db5a..7615848111 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ODcCKCRa9L.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ODcCKCRa9L.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OQInn6eM5m.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OQInn6eM5m.verified.txt index 9f441f6d2b..a2265bfba2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OQInn6eM5m.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OQInn6eM5m.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OYR7FJClTd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OYR7FJClTd.verified.txt index 6cdb4d6fee..5cfdd92692 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OYR7FJClTd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OYR7FJClTd.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OcQQNpSKEI.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OcQQNpSKEI.verified.txt index 9539cccafb..e37102e0ec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OcQQNpSKEI.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OcQQNpSKEI.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OemVSI5i1J.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OemVSI5i1J.verified.txt index 71249cbfa2..b1eb8da81e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OemVSI5i1J.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OemVSI5i1J.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OhMlw1q3J9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OhMlw1q3J9.verified.txt index 7af0681bbc..c2498c7420 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OhMlw1q3J9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OhMlw1q3J9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OigsUpr8iz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OigsUpr8iz.verified.txt index 2af209a72a..f2d54ce3c0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OigsUpr8iz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OigsUpr8iz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OjAVMwwHt2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OjAVMwwHt2.verified.txt index a573c5a552..c3fb7ca2db 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OjAVMwwHt2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OjAVMwwHt2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OpCspWkf2r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OpCspWkf2r.verified.txt index 48eaf75912..168768763f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OpCspWkf2r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/OpCspWkf2r.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Os84e6OGCg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Os84e6OGCg.verified.txt index 592980c39d..d7a7295277 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Os84e6OGCg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Os84e6OGCg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P0QEtOIGgn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P0QEtOIGgn.verified.txt index 2b78526f58..67bf325eb1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P0QEtOIGgn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P0QEtOIGgn.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P5vTgx7gvW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P5vTgx7gvW.verified.txt index 92e1359dec..37ce688232 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P5vTgx7gvW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/P5vTgx7gvW.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCMQ2KUvNG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCMQ2KUvNG.verified.txt index 9235f379ed..2e0ccff4a9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCMQ2KUvNG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCMQ2KUvNG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCOIWXVqiy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCOIWXVqiy.verified.txt index f8f7a90777..3f47753c89 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCOIWXVqiy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PCOIWXVqiy.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PRIZHoHaqK.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PRIZHoHaqK.verified.txt index 474d17e834..ab66d009f8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PRIZHoHaqK.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PRIZHoHaqK.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVKCOm5VKp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVKCOm5VKp.verified.txt index 4ebc2ce100..6776211c80 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVKCOm5VKp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVKCOm5VKp.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVs5xYPBFc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVs5xYPBFc.verified.txt index 90efd31291..07dd987e36 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVs5xYPBFc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PVs5xYPBFc.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PWyCwiClly.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PWyCwiClly.verified.txt index a2464d389b..6f24196f99 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PWyCwiClly.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PWyCwiClly.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PkOa9NagM3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PkOa9NagM3.verified.txt index fabba55c85..550309452e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PkOa9NagM3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PkOa9NagM3.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PpnJoRSvHn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PpnJoRSvHn.verified.txt index b2693a8824..fa0a683a98 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PpnJoRSvHn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PpnJoRSvHn.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PsOCMQ6HS0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PsOCMQ6HS0.verified.txt index 85c0d980b6..179bdc651f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PsOCMQ6HS0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PsOCMQ6HS0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Pudn6RoE25.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Pudn6RoE25.verified.txt index e1902b46e0..b39bebc99d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Pudn6RoE25.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Pudn6RoE25.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PxMrZdhpNv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PxMrZdhpNv.verified.txt index 3043b58973..04b63d5993 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PxMrZdhpNv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/PxMrZdhpNv.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q5skblpXVD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q5skblpXVD.verified.txt index e22c113222..36cc4cebe2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q5skblpXVD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q5skblpXVD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q6guTJWax5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q6guTJWax5.verified.txt index eee797b946..e647259ce8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q6guTJWax5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q6guTJWax5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q79XlnvzPv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q79XlnvzPv.verified.txt index f06e316134..6b1a1974d3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q79XlnvzPv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Q79XlnvzPv.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QBybrCYTL9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QBybrCYTL9.verified.txt index c997b8c294..ccb06c43d5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QBybrCYTL9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QBybrCYTL9.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QKXKFfjFxV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QKXKFfjFxV.verified.txt index 1e3c27fdca..71f3e38d0c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QKXKFfjFxV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QKXKFfjFxV.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QLhK0x1gTk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QLhK0x1gTk.verified.txt index 685f176110..1efa9c9099 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QLhK0x1gTk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QLhK0x1gTk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QO0bRo51N2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QO0bRo51N2.verified.txt index a79237667f..eaef19a78e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QO0bRo51N2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QO0bRo51N2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QOozQLIojl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QOozQLIojl.verified.txt index 33d19fa890..918c92afda 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QOozQLIojl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QOozQLIojl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QQdmb5owU9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QQdmb5owU9.verified.txt index 6f07f374f5..4952de1c66 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QQdmb5owU9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QQdmb5owU9.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QX8v2QmbWC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QX8v2QmbWC.verified.txt index bd574ce60b..d69838adaa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QX8v2QmbWC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QX8v2QmbWC.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QdnZ3QsF1o.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QdnZ3QsF1o.verified.txt index 7410b08a2c..4200fe952a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QdnZ3QsF1o.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QdnZ3QsF1o.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QeyyKNmD6w.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QeyyKNmD6w.verified.txt index 2139d50e24..4224b210db 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QeyyKNmD6w.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QeyyKNmD6w.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qi4lkxm1Qs.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qi4lkxm1Qs.verified.txt index 4ba4a2ca32..8ce271d9b5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qi4lkxm1Qs.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qi4lkxm1Qs.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qm3iEAp2KX.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qm3iEAp2KX.verified.txt index 1b779f8e52..79883c703d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qm3iEAp2KX.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Qm3iEAp2KX.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QwiHl75KsD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QwiHl75KsD.verified.txt index 7045851f3b..5650dcb511 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QwiHl75KsD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QwiHl75KsD.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QxWaTkNoyE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QxWaTkNoyE.verified.txt index d210026087..d64d4f96b0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QxWaTkNoyE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/QxWaTkNoyE.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R3k4Vo0v0y.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R3k4Vo0v0y.verified.txt index 161a523ad9..8dfcf282f0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R3k4Vo0v0y.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R3k4Vo0v0y.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R6ebiJUNel.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R6ebiJUNel.verified.txt index f934715dbb..a4e19c912b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R6ebiJUNel.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/R6ebiJUNel.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RA8QaIreho.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RA8QaIreho.verified.txt index 71b7395c0f..ba0d86788b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RA8QaIreho.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RA8QaIreho.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RQH3o9ZDLg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RQH3o9ZDLg.verified.txt index ef7aeb7fff..963f6db86b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RQH3o9ZDLg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RQH3o9ZDLg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RXrneVgNN5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RXrneVgNN5.verified.txt index 226ab1a4d1..bd04f66bfe 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RXrneVgNN5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RXrneVgNN5.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Rd2drjCqyr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Rd2drjCqyr.verified.txt index 8bb92d23b0..e64ed1db9c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Rd2drjCqyr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Rd2drjCqyr.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RdDA1FQIuf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RdDA1FQIuf.verified.txt index 2b1759b3f9..067ec1b802 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RdDA1FQIuf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RdDA1FQIuf.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RfXwRhk0ji.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RfXwRhk0ji.verified.txt index 8991fb95f3..f9bf473e5a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RfXwRhk0ji.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RfXwRhk0ji.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RoXGnCcARM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RoXGnCcARM.verified.txt index 13242645f3..83e85fe3a5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RoXGnCcARM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/RoXGnCcARM.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S0Lzchedqd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S0Lzchedqd.verified.txt index ee18f0b626..f188690b6f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S0Lzchedqd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S0Lzchedqd.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S4sC4LoxG8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S4sC4LoxG8.verified.txt index 9d321cd284..87a957fddb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S4sC4LoxG8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S4sC4LoxG8.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S8kwezoZiw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S8kwezoZiw.verified.txt index 617f26b5cb..8c6c68035d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S8kwezoZiw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/S8kwezoZiw.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SI5ssfT1YX.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SI5ssfT1YX.verified.txt index c7e85394f8..aa58fa28ea 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SI5ssfT1YX.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SI5ssfT1YX.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJKCERpA0b.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJKCERpA0b.verified.txt index 801b5ab5ab..903d6e2de7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJKCERpA0b.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJKCERpA0b.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJOA5prRlL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJOA5prRlL.verified.txt index 5e00233cb5..36203386c2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJOA5prRlL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SJOA5prRlL.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SK3UwDe3PD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SK3UwDe3PD.verified.txt index e9aa8cdf90..4b05a2383a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SK3UwDe3PD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SK3UwDe3PD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SLAYTQXre3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SLAYTQXre3.verified.txt index 4988d6c76f..dd8c0638bc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SLAYTQXre3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SLAYTQXre3.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SY6HrNHfqH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SY6HrNHfqH.verified.txt index 91fc06a4b5..91fc618649 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SY6HrNHfqH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SY6HrNHfqH.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SbAkGJ81oN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SbAkGJ81oN.verified.txt index c822ab282f..80e202dd05 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SbAkGJ81oN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SbAkGJ81oN.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ScN2eOXawH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ScN2eOXawH.verified.txt index fe088169dd..1a0001b836 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ScN2eOXawH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ScN2eOXawH.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sn1dOI4Tq9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sn1dOI4Tq9.verified.txt index 8ac4a80c50..f543fb17bf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sn1dOI4Tq9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sn1dOI4Tq9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxUzlTmqxl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxUzlTmqxl.verified.txt index 5c9eddb895..a1d2f0bfa5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxUzlTmqxl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxUzlTmqxl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxZRH72jER.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxZRH72jER.verified.txt index 30841a80a6..4c9b8cfd20 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxZRH72jER.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SxZRH72jER.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sy34ZlV06r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sy34ZlV06r.verified.txt index 0e8e4923c4..ab1955b678 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sy34ZlV06r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Sy34ZlV06r.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SzJiQmX5xr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SzJiQmX5xr.verified.txt index 678bb79246..c3ce84dbd4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SzJiQmX5xr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/SzJiQmX5xr.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/T7ER60PZQ9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/T7ER60PZQ9.verified.txt index 93f2430ce4..6a4463f166 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/T7ER60PZQ9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/T7ER60PZQ9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TN5RkJiQLB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TN5RkJiQLB.verified.txt index c977484ab4..64af1dfe9c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TN5RkJiQLB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TN5RkJiQLB.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TTxz1VQ0eF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TTxz1VQ0eF.verified.txt index db9cde8f67..42bdddeb3d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TTxz1VQ0eF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TTxz1VQ0eF.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TVfNXx1v6t.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TVfNXx1v6t.verified.txt index f23cf005f2..a8f1437d8a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TVfNXx1v6t.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TVfNXx1v6t.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcNVYpBQJI.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcNVYpBQJI.verified.txt index 6f4182a294..47319a6bcf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcNVYpBQJI.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcNVYpBQJI.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcV8xD5DOz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcV8xD5DOz.verified.txt index 0ec4a2dcef..a67c530b12 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcV8xD5DOz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TcV8xD5DOz.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TgbC5JK8bo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TgbC5JK8bo.verified.txt index 978a78c5e6..e47010d7d7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TgbC5JK8bo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TgbC5JK8bo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TqGTLmacVg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TqGTLmacVg.verified.txt index 93567a3c61..21ee4e2195 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TqGTLmacVg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TqGTLmacVg.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tr7FP6CDpO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tr7FP6CDpO.verified.txt index 00d8b85168..68aafbb49b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tr7FP6CDpO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tr7FP6CDpO.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TrLBjShvgA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TrLBjShvgA.verified.txt index 1c6e4a8440..5570534674 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TrLBjShvgA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TrLBjShvgA.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ts35nLchaS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ts35nLchaS.verified.txt index eb21a81423..4a18ce00a1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ts35nLchaS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Ts35nLchaS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TtvvLhaw6K.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TtvvLhaw6K.verified.txt index 9cb96eaedf..3850363ff8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TtvvLhaw6K.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TtvvLhaw6K.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TxZpwiB5Py.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TxZpwiB5Py.verified.txt index b0bdd44fb8..7694ea87dd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TxZpwiB5Py.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/TxZpwiB5Py.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tyt1pA8WnH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tyt1pA8WnH.verified.txt index 2ff993077c..36b6a609e7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tyt1pA8WnH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Tyt1pA8WnH.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/U2B8iiJjQx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/U2B8iiJjQx.verified.txt index e112f75d0a..b207e08751 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/U2B8iiJjQx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/U2B8iiJjQx.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UElMacLX4I.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UElMacLX4I.verified.txt index bf67aeb12b..be0dfbb0b4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UElMacLX4I.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UElMacLX4I.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UNxERgmAVH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UNxERgmAVH.verified.txt index 877947fed2..214e81cd9a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UNxERgmAVH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UNxERgmAVH.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonedouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonedouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UP2k0XnY2L.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UP2k0XnY2L.verified.txt index 9146d172e6..1c06bda7de 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UP2k0XnY2L.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UP2k0XnY2L.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UPvRDfV3Fx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UPvRDfV3Fx.verified.txt index 66568c9519..b15fe39bdd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UPvRDfV3Fx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UPvRDfV3Fx.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UQkUV8p91P.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UQkUV8p91P.verified.txt index 67433891ba..0cc50e6423 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UQkUV8p91P.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UQkUV8p91P.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Uf3SVra0Ry.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Uf3SVra0Ry.verified.txt index 7215f7b56d..970ac19d39 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Uf3SVra0Ry.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Uf3SVra0Ry.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UgRni8bNuo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UgRni8bNuo.verified.txt index 18313abe09..61336cfeab 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UgRni8bNuo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UgRni8bNuo.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UoYkE8YBpS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UoYkE8YBpS.verified.txt index e40444b7f0..8067e977a3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UoYkE8YBpS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UoYkE8YBpS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UsdNf7jHu7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UsdNf7jHu7.verified.txt index a39b6990a9..8c051e031b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UsdNf7jHu7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UsdNf7jHu7.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UuBB7vBbPu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UuBB7vBbPu.verified.txt index 5a9b3ea70a..ea63b1a77c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UuBB7vBbPu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UuBB7vBbPu.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UueV8kggBU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UueV8kggBU.verified.txt index 1529e4371b..a9f8e4e35e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UueV8kggBU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UueV8kggBU.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UvQlB2CL6X.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UvQlB2CL6X.verified.txt index 73f0cc96ca..956e3fcb15 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UvQlB2CL6X.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UvQlB2CL6X.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UwPraOlAOF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UwPraOlAOF.verified.txt index 5c7e8df36e..ad68c6e0d8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UwPraOlAOF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/UwPraOlAOF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V0YfrWK16a.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V0YfrWK16a.verified.txt index 5f12020352..1bef115f7d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V0YfrWK16a.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V0YfrWK16a.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V3CrL5ItJG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V3CrL5ItJG.verified.txt index 5ccefe481c..41c0a8a261 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V3CrL5ItJG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V3CrL5ItJG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V6IcNFrrBn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V6IcNFrrBn.verified.txt index c7fca604e1..d182c90736 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V6IcNFrrBn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V6IcNFrrBn.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V8qm0nLqZz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V8qm0nLqZz.verified.txt index c24bec80ce..9f25a9c0db 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V8qm0nLqZz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/V8qm0nLqZz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VFN4fmaO5E.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VFN4fmaO5E.verified.txt index abb7c2b177..b2b740b197 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VFN4fmaO5E.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VFN4fmaO5E.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VIctfLwTSV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VIctfLwTSV.verified.txt index 36e27ead23..1f2fc92ceb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VIctfLwTSV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VIctfLwTSV.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VVTR9Tbkbb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VVTR9Tbkbb.verified.txt index 95a1aec72a..f43d89e9fb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VVTR9Tbkbb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VVTR9Tbkbb.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VYPHgCXE4l.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VYPHgCXE4l.verified.txt index f109824b65..8decd2b926 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VYPHgCXE4l.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VYPHgCXE4l.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgSaJxavHZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgSaJxavHZ.verified.txt index 5eeb4a33be..3b1b49f4dc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgSaJxavHZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgSaJxavHZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgvfV4BIyi.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgvfV4BIyi.verified.txt index b68d0ac808..dd387f083e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgvfV4BIyi.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VgvfV4BIyi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VmBaPOLmXV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VmBaPOLmXV.verified.txt index aafb85a963..0c394cfb3f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VmBaPOLmXV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/VmBaPOLmXV.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W0HLD96mZV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W0HLD96mZV.verified.txt index 058c7fe336..8c86d3cb75 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W0HLD96mZV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W0HLD96mZV.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W4L4QykxxS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W4L4QykxxS.verified.txt index 0127bbe08f..cc48fd1576 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W4L4QykxxS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W4L4QykxxS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W7Nnj23wlq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W7Nnj23wlq.verified.txt index 561a1d8aa1..21554c08b4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W7Nnj23wlq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W7Nnj23wlq.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W8xZNwbAFS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W8xZNwbAFS.verified.txt index a1cfbbcdff..68b3d06dd9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W8xZNwbAFS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/W8xZNwbAFS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WImSXSFG1G.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WImSXSFG1G.verified.txt index 6073631310..8f9ad390b2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WImSXSFG1G.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WImSXSFG1G.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WK0ef4ETKz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WK0ef4ETKz.verified.txt index 45cd4f70fd..19fa98cbfb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WK0ef4ETKz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WK0ef4ETKz.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WQ4pjUCocS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WQ4pjUCocS.verified.txt index a3aab5fe9c..4cdc59f8f8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WQ4pjUCocS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WQ4pjUCocS.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WbkaiA3ZBk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WbkaiA3ZBk.verified.txt index f8f3806e94..b83a25f153 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WbkaiA3ZBk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WbkaiA3ZBk.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wdj1lfcusR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wdj1lfcusR.verified.txt index f89ecc86e5..304df92462 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wdj1lfcusR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wdj1lfcusR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WevdtfJYkU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WevdtfJYkU.verified.txt index 8db07d421e..c40f1f4b22 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WevdtfJYkU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WevdtfJYkU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WrIeDiiZEV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WrIeDiiZEV.verified.txt index 9cb7976fcf..af7550f08d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WrIeDiiZEV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/WrIeDiiZEV.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wu3A7uBK09.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wu3A7uBK09.verified.txt index 51bf0c4aeb..1f9b3d9014 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wu3A7uBK09.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Wu3A7uBK09.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X1engAF2R3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X1engAF2R3.verified.txt index 2687a616ec..ec0b78ea18 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X1engAF2R3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X1engAF2R3.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X7cDxKpYUK.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X7cDxKpYUK.verified.txt index 5c7207fb6e..ece97d18db 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X7cDxKpYUK.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X7cDxKpYUK.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X9i8sXZnYz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X9i8sXZnYz.verified.txt index 8b9e863a90..990ca65f49 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X9i8sXZnYz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/X9i8sXZnYz.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XIBajIhHlF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XIBajIhHlF.verified.txt index f497be04d2..f516b7cfdb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XIBajIhHlF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XIBajIhHlF.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XPRo52TbpR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XPRo52TbpR.verified.txt index 8edd94fbfc..0f4bdddd58 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XPRo52TbpR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XPRo52TbpR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XWmmhQTR8o.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XWmmhQTR8o.verified.txt index 3860e19b43..63ca0cc40b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XWmmhQTR8o.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XWmmhQTR8o.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XX1Vz2Fyor.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XX1Vz2Fyor.verified.txt index 0c2a1ec261..0bfc66c2fd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XX1Vz2Fyor.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XX1Vz2Fyor.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XXm87xgHer.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XXm87xgHer.verified.txt index 47b52f6ea0..abc02495cd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XXm87xgHer.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XXm87xgHer.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XYB6ePCgu9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XYB6ePCgu9.verified.txt index 7a9caf44ca..ea487ffcc6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XYB6ePCgu9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XYB6ePCgu9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XbWpAuMYeR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XbWpAuMYeR.verified.txt index a8ea6c5270..539151a858 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XbWpAuMYeR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XbWpAuMYeR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XhQTRp2E0T.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XhQTRp2E0T.verified.txt index ba9113ab57..aecb0883bf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XhQTRp2E0T.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XhQTRp2E0T.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XmJNKiwRaF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XmJNKiwRaF.verified.txt index 151ef5180b..4010699a2f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XmJNKiwRaF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XmJNKiwRaF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Xr9LFmsoly.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Xr9LFmsoly.verified.txt index de5997fc9f..2b9ee55090 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Xr9LFmsoly.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Xr9LFmsoly.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XrGs8zKF6A.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XrGs8zKF6A.verified.txt index 1cb997f381..cb84b14d76 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XrGs8zKF6A.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XrGs8zKF6A.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XreN72ITLR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XreN72ITLR.verified.txt index 8857da9ca1..4308977cec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XreN72ITLR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XreN72ITLR.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XtgSesx3Dt.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XtgSesx3Dt.verified.txt index ef2833d5ea..d912c10f21 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XtgSesx3Dt.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/XtgSesx3Dt.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y0hA7uRn8M.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y0hA7uRn8M.verified.txt index 78f5a2632f..e05da157ea 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y0hA7uRn8M.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y0hA7uRn8M.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3A3HrzsMS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3A3HrzsMS.verified.txt index 3f0b325fa0..1182af38be 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3A3HrzsMS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3A3HrzsMS.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3T6QDSQRM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3T6QDSQRM.verified.txt index 5753a9fa3c..d11aac5966 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3T6QDSQRM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y3T6QDSQRM.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y76Win6Yo4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y76Win6Yo4.verified.txt index c491f64d79..5336760b86 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y76Win6Yo4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y76Win6Yo4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y8l5CSfRXh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y8l5CSfRXh.verified.txt index 06c4d26313..bbf183b739 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y8l5CSfRXh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Y8l5CSfRXh.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YCQRBhuDjW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YCQRBhuDjW.verified.txt index 422d34fa85..1c59ed4694 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YCQRBhuDjW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YCQRBhuDjW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YHWxHunmGA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YHWxHunmGA.verified.txt index 62a12c259e..331e1ab6fe 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YHWxHunmGA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YHWxHunmGA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YLW1tcAxwM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YLW1tcAxwM.verified.txt index 9043e16fce..eba0980a91 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YLW1tcAxwM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YLW1tcAxwM.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YOm4PL42yV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YOm4PL42yV.verified.txt index 5a537127ae..387ca2b7f5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YOm4PL42yV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YOm4PL42yV.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YQAan99VDR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YQAan99VDR.verified.txt index 70839cea99..8e0ef4673f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YQAan99VDR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YQAan99VDR.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YbCUikIKwS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YbCUikIKwS.verified.txt index de7ff11146..e4084d6be9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YbCUikIKwS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YbCUikIKwS.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YblTYwx9zr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YblTYwx9zr.verified.txt index 2f46e54808..4444862e2a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YblTYwx9zr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YblTYwx9zr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YefQ8WRtQc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YefQ8WRtQc.verified.txt index ae1d78fb01..eb4464a34e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YefQ8WRtQc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YefQ8WRtQc.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yj36eeqW6r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yj36eeqW6r.verified.txt index 80b77ee7cf..77c256a82e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yj36eeqW6r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yj36eeqW6r.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YjHMuWcb4H.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YjHMuWcb4H.verified.txt index 690124cbe9..55c1296df7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YjHMuWcb4H.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YjHMuWcb4H.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yk2J3SkfZG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yk2J3SkfZG.verified.txt index 81c24ba038..cdc4e48e56 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yk2J3SkfZG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Yk2J3SkfZG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YkUGEKlQCC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YkUGEKlQCC.verified.txt index 5d3c3ad400..97929af551 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YkUGEKlQCC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/YkUGEKlQCC.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z4y08dZvHP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z4y08dZvHP.verified.txt index 214ac81f57..7e119aaf40 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z4y08dZvHP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z4y08dZvHP.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z5sAZXePs6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z5sAZXePs6.verified.txt index 8c1065fb84..2b3354e831 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z5sAZXePs6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Z5sAZXePs6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZHjSKwyIZD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZHjSKwyIZD.verified.txt index 70022a6231..e43bac1d24 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZHjSKwyIZD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZHjSKwyIZD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZNNXhulPr8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZNNXhulPr8.verified.txt index 6eaad493e1..431a80edb0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZNNXhulPr8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZNNXhulPr8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZPZfnUTKgi.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZPZfnUTKgi.verified.txt index c44a04af9c..385e8c2bcf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZPZfnUTKgi.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZPZfnUTKgi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZTP0Lu97Cf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZTP0Lu97Cf.verified.txt index dc94d2b8c9..cbd4e93249 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZTP0Lu97Cf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZTP0Lu97Cf.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Za5CXoxbz2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Za5CXoxbz2.verified.txt index 0f386c55d9..9bc1e4e886 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Za5CXoxbz2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/Za5CXoxbz2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZaKkbnsfQv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZaKkbnsfQv.verified.txt index 6203d54a62..550b609efc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZaKkbnsfQv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZaKkbnsfQv.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZatzYa8lNk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZatzYa8lNk.verified.txt index 7ef4e7119e..9b96f20fbb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZatzYa8lNk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZatzYa8lNk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZkSIc6mE9f.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZkSIc6mE9f.verified.txt index 8975ccfb29..b76a9a2f4c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZkSIc6mE9f.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZkSIc6mE9f.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZlVHfHKzeq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZlVHfHKzeq.verified.txt index 8ab803e3e4..d271036a2d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZlVHfHKzeq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ZlVHfHKzeq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/a3Jrbeoc0N.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/a3Jrbeoc0N.verified.txt index 47ae54e627..774cfe7307 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/a3Jrbeoc0N.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/a3Jrbeoc0N.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aGpcl59EMR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aGpcl59EMR.verified.txt index 348177bdbf..06f7d8e8c1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aGpcl59EMR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aGpcl59EMR.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aQn2fiLRbb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aQn2fiLRbb.verified.txt index fdecea2195..2bd21fbe51 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aQn2fiLRbb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aQn2fiLRbb.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aSSDW1FdXO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aSSDW1FdXO.verified.txt index 052c31fe33..65cb565ebb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aSSDW1FdXO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aSSDW1FdXO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aURpKzUjMP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aURpKzUjMP.verified.txt index e66ff06f27..65f1f81856 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aURpKzUjMP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/aURpKzUjMP.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/adTRYcU5HB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/adTRYcU5HB.verified.txt index a02dade34b..2894209b8f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/adTRYcU5HB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/adTRYcU5HB.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/arGnAtxcTj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/arGnAtxcTj.verified.txt index 38bdd39395..88789cea29 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/arGnAtxcTj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/arGnAtxcTj.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/azKU9DBVTH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/azKU9DBVTH.verified.txt index 3b06abe7aa..d6cf945aff 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/azKU9DBVTH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/azKU9DBVTH.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b1zr6qh4Xx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b1zr6qh4Xx.verified.txt index 73bb6ccab8..38b9b6dea0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b1zr6qh4Xx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b1zr6qh4Xx.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b3c6dpJL6j.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b3c6dpJL6j.verified.txt index 7a376a4bde..a18a43b16e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b3c6dpJL6j.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/b3c6dpJL6j.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bGHAMYZwiF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bGHAMYZwiF.verified.txt index eed1c58c77..968b394ccd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bGHAMYZwiF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bGHAMYZwiF.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bNqJ1KtWjL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bNqJ1KtWjL.verified.txt index 8544664cd1..c3b28b5645 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bNqJ1KtWjL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bNqJ1KtWjL.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bY1HiMJXbA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bY1HiMJXbA.verified.txt index 16273b5987..3c84536fd6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bY1HiMJXbA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bY1HiMJXbA.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bb7ZiIpPFf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bb7ZiIpPFf.verified.txt index 59d593de73..dbf8ab6ba4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bb7ZiIpPFf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bb7ZiIpPFf.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bhacQ5iDYV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bhacQ5iDYV.verified.txt index ec5aed15de..7596efec34 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bhacQ5iDYV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bhacQ5iDYV.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/binCtehVV0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/binCtehVV0.verified.txt index 5c8ca89c45..9b1fb01ac2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/binCtehVV0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/binCtehVV0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bxqP65QnS6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bxqP65QnS6.verified.txt index 04332ad664..6b536cbaee 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bxqP65QnS6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/bxqP65QnS6.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/c7cG3SABLf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/c7cG3SABLf.verified.txt index d6dae405a8..64bb797cd8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/c7cG3SABLf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/c7cG3SABLf.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGQjstH9Li.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGQjstH9Li.verified.txt index 65d544be07..d892a887f4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGQjstH9Li.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGQjstH9Li.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGz9eIKWQT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGz9eIKWQT.verified.txt index 780761d4a7..e2a51cc13d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGz9eIKWQT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cGz9eIKWQT.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cKervgfNdC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cKervgfNdC.verified.txt index 8756552e91..1e553962aa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cKervgfNdC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cKervgfNdC.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cPnpvQg3XC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cPnpvQg3XC.verified.txt index 5dc2f1ada1..337ecb622a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cPnpvQg3XC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cPnpvQg3XC.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cUY8zeWRtk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cUY8zeWRtk.verified.txt index 63d3c2a03f..8ac1cedd3f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cUY8zeWRtk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cUY8zeWRtk.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cWMOb2iCBM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cWMOb2iCBM.verified.txt index ea4cacd2ef..00e9f6b985 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cWMOb2iCBM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cWMOb2iCBM.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ce0m13w757.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ce0m13w757.verified.txt index 428dda8c36..b535d1ad68 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ce0m13w757.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ce0m13w757.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ceHy1JSaA0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ceHy1JSaA0.verified.txt index eec2f8860e..660b771176 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ceHy1JSaA0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ceHy1JSaA0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cgwp0MF0Co.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cgwp0MF0Co.verified.txt index 952ef27846..251999488e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cgwp0MF0Co.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cgwp0MF0Co.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/clw31mPBYv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/clw31mPBYv.verified.txt index cfd6c9662b..6257305e1f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/clw31mPBYv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/clw31mPBYv.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/coMKUTRxoG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/coMKUTRxoG.verified.txt index 279a718f1a..af88947b74 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/coMKUTRxoG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/coMKUTRxoG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/crwRkpyHGp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/crwRkpyHGp.verified.txt index c499c8d276..0b993e2896 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/crwRkpyHGp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/crwRkpyHGp.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cwLKijwHl6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cwLKijwHl6.verified.txt index 62746fab94..6597f80b1e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cwLKijwHl6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cwLKijwHl6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cyUPie9s11.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cyUPie9s11.verified.txt index e8549af4e4..05830f1f46 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cyUPie9s11.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cyUPie9s11.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cziPSwjf5d.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cziPSwjf5d.verified.txt index 8d7c9f6097..9030b84f4f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cziPSwjf5d.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/cziPSwjf5d.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d09PsGS7Ug.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d09PsGS7Ug.verified.txt index 8af784b3dc..52b4ce9eaa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d09PsGS7Ug.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d09PsGS7Ug.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d32lDY8ES7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d32lDY8ES7.verified.txt index b411a9209a..d293f32570 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d32lDY8ES7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/d32lDY8ES7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dARLxsXY31.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dARLxsXY31.verified.txt index 0d6edc21ac..ab45082b69 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dARLxsXY31.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dARLxsXY31.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dIjdfKpvPO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dIjdfKpvPO.verified.txt index c6cdc25b9f..908c7b35c5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dIjdfKpvPO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dIjdfKpvPO.verified.txt @@ -122,8 +122,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -131,7 +130,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dKTLGy3cUQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dKTLGy3cUQ.verified.txt index c365b0ff94..502695f6bc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dKTLGy3cUQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dKTLGy3cUQ.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dinMO6wuh8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dinMO6wuh8.verified.txt index 4f99e5e9f1..ee94e98a63 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dinMO6wuh8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dinMO6wuh8.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dokYTM0J6I.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dokYTM0J6I.verified.txt index b847c55ff4..bb6588fe29 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dokYTM0J6I.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/dokYTM0J6I.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e1I1xG5PYC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e1I1xG5PYC.verified.txt index 12310bc027..261b2a736a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e1I1xG5PYC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e1I1xG5PYC.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4S86hLgXT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4S86hLgXT.verified.txt index 8cf1950ce6..1e068448c1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4S86hLgXT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4S86hLgXT.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4xqOZBfkW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4xqOZBfkW.verified.txt index b52257d3b4..ba144516b7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4xqOZBfkW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e4xqOZBfkW.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e6qJiimykY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e6qJiimykY.verified.txt index c2ff6f7187..71e82d53eb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e6qJiimykY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e6qJiimykY.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e8Z13BWTV4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e8Z13BWTV4.verified.txt index cb84ee2e82..84599d3156 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e8Z13BWTV4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/e8Z13BWTV4.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eGtR85U7hM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eGtR85U7hM.verified.txt index b9c4ee71ba..0c1e338723 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eGtR85U7hM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eGtR85U7hM.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eaaWtg43Um.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eaaWtg43Um.verified.txt index e1c3811878..2693679baa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eaaWtg43Um.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eaaWtg43Um.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ebtCS1p2Q7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ebtCS1p2Q7.verified.txt index d7e557388e..154534850e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ebtCS1p2Q7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ebtCS1p2Q7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/enQTvFpMic.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/enQTvFpMic.verified.txt index d99a6a975a..56b71fd736 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/enQTvFpMic.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/enQTvFpMic.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eppcx5SXtb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eppcx5SXtb.verified.txt index 3288f0e75d..41cea342e5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eppcx5SXtb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eppcx5SXtb.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eyjyz4aR0K.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eyjyz4aR0K.verified.txt index 6d45fed8c3..f00de8e9b2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eyjyz4aR0K.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/eyjyz4aR0K.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f1cHNJ6nM9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f1cHNJ6nM9.verified.txt index e47aeb1c3e..f7a6868e65 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f1cHNJ6nM9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f1cHNJ6nM9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f5KMoEtavw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f5KMoEtavw.verified.txt index df2fda0f44..89c89c5616 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f5KMoEtavw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f5KMoEtavw.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6M7s6RxtQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6M7s6RxtQ.verified.txt index 2fa07085a5..c33e9bbc95 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6M7s6RxtQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6M7s6RxtQ.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6R2wqSF7R.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6R2wqSF7R.verified.txt index 779ebd7e1d..45c57ac664 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6R2wqSF7R.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/f6R2wqSF7R.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fCvabPTU6M.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fCvabPTU6M.verified.txt index 9de074b7c1..2f91845e24 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fCvabPTU6M.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fCvabPTU6M.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fHtz3V4XWi.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fHtz3V4XWi.verified.txt index c53f5fe651..b35340514a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fHtz3V4XWi.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fHtz3V4XWi.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fLYsGHdYeN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fLYsGHdYeN.verified.txt index 3c7ad739fd..1fc51cc443 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fLYsGHdYeN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fLYsGHdYeN.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fOO5khiKVT.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fOO5khiKVT.verified.txt index 4db19e0746..f4d3bd3274 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fOO5khiKVT.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fOO5khiKVT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fQhTghCeX1.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fQhTghCeX1.verified.txt index 9ef5571071..c26ca5daad 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fQhTghCeX1.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fQhTghCeX1.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fRR7QBbLck.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fRR7QBbLck.verified.txt index 38f00da05e..fcf8ead35b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fRR7QBbLck.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fRR7QBbLck.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fc1umr897N.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fc1umr897N.verified.txt index b8398d7a26..817db7f3a8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fc1umr897N.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fc1umr897N.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fyjRVukaGo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fyjRVukaGo.verified.txt index f5348a03b8..d66709835a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fyjRVukaGo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/fyjRVukaGo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gCXJvehvAa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gCXJvehvAa.verified.txt index c62dac6349..25b8ea6391 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gCXJvehvAa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gCXJvehvAa.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gOjW14TSmO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gOjW14TSmO.verified.txt index bb89fc5151..e59bc0bd7f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gOjW14TSmO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gOjW14TSmO.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonedecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gQyp9Wkzap.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gQyp9Wkzap.verified.txt index 91dd321496..421b27f152 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gQyp9Wkzap.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gQyp9Wkzap.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gYKtpl3Bpb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gYKtpl3Bpb.verified.txt index 3d65ec3357..33807042b9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gYKtpl3Bpb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gYKtpl3Bpb.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gf7vLQ2ihC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gf7vLQ2ihC.verified.txt index 1b1dddf6b8..168f5adbee 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gf7vLQ2ihC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gf7vLQ2ihC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gjiHxM0Xel.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gjiHxM0Xel.verified.txt index f1c4bc4d86..892b484770 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gjiHxM0Xel.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gjiHxM0Xel.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/glx9cuCC9e.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/glx9cuCC9e.verified.txt index e5a56c7351..b29543a30a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/glx9cuCC9e.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/glx9cuCC9e.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gmp5AoFh4P.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gmp5AoFh4P.verified.txt index 66c9c91487..2295c63b0b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gmp5AoFh4P.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gmp5AoFh4P.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gsnozlqDZG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gsnozlqDZG.verified.txt index b9d6bbff63..164bf8d395 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gsnozlqDZG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gsnozlqDZG.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gzKunDy7Xq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gzKunDy7Xq.verified.txt index 9f7a325343..e8f0dbd118 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gzKunDy7Xq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/gzKunDy7Xq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h1Q6xHyhEW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h1Q6xHyhEW.verified.txt index 46362e8617..19f0124a1d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h1Q6xHyhEW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h1Q6xHyhEW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h3isDM895n.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h3isDM895n.verified.txt index 8147f4e97e..23671df607 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h3isDM895n.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/h3isDM895n.verified.txt @@ -123,8 +123,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -132,7 +131,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hCEKdWvIvV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hCEKdWvIvV.verified.txt index 0391b67c6c..a5e6e94ceb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hCEKdWvIvV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hCEKdWvIvV.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hOxoKVDwHq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hOxoKVDwHq.verified.txt index c305f1e5c1..ffe245410f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hOxoKVDwHq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hOxoKVDwHq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/haD5FgsCxv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/haD5FgsCxv.verified.txt index a30b35cd40..74db4684df 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/haD5FgsCxv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/haD5FgsCxv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hap1KOjiKD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hap1KOjiKD.verified.txt index 7f30277de4..8c33272fb5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hap1KOjiKD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hap1KOjiKD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hbPiv1P1OQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hbPiv1P1OQ.verified.txt index 904e56872a..d5edea0a78 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hbPiv1P1OQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hbPiv1P1OQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hfYFVWwyqQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hfYFVWwyqQ.verified.txt index 15eb0b0cd8..2cc38a178a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hfYFVWwyqQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hfYFVWwyqQ.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hgqNJypuYE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hgqNJypuYE.verified.txt index cf4907e36c..e305eba497 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hgqNJypuYE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hgqNJypuYE.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqNU7PgfjA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqNU7PgfjA.verified.txt index 6f3033f62e..29b1e8e943 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqNU7PgfjA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqNU7PgfjA.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqdnDkYKrE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqdnDkYKrE.verified.txt index dca664e2ce..d382008482 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqdnDkYKrE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hqdnDkYKrE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hycxcWlmwA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hycxcWlmwA.verified.txt index dbb2d66015..03dbd0cb46 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hycxcWlmwA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/hycxcWlmwA.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iE68u7qIGa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iE68u7qIGa.verified.txt index 4efbda3902..60cb81c5cd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iE68u7qIGa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iE68u7qIGa.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iMPU3gxZMx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iMPU3gxZMx.verified.txt index 2543b91784..c66e05064d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iMPU3gxZMx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iMPU3gxZMx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iTV7jbHeEx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iTV7jbHeEx.verified.txt index 97725174d1..e4d95de045 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iTV7jbHeEx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iTV7jbHeEx.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iU3Kbpxkej.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iU3Kbpxkej.verified.txt index 9a98fb8d87..6b8a4b78e6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iU3Kbpxkej.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iU3Kbpxkej.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iWDioyqFlq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iWDioyqFlq.verified.txt index 27b747d5c6..6475246900 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iWDioyqFlq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iWDioyqFlq.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ibUq2pD37H.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ibUq2pD37H.verified.txt index 4a3d6a8e7d..59c2118421 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ibUq2pD37H.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ibUq2pD37H.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/igX9yAd4le.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/igX9yAd4le.verified.txt index 8d69e770d7..588cc36159 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/igX9yAd4le.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/igX9yAd4le.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ijfP58Rmpl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ijfP58Rmpl.verified.txt index 430072a8c5..74edfaba07 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ijfP58Rmpl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ijfP58Rmpl.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ikyM2l1Iqf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ikyM2l1Iqf.verified.txt index c43858207a..db37d13fe8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ikyM2l1Iqf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ikyM2l1Iqf.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iqxyPZLxSM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iqxyPZLxSM.verified.txt index e47eee7019..cb9636237a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iqxyPZLxSM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iqxyPZLxSM.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ixiQV669SW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ixiQV669SW.verified.txt index 7c43c45cc7..349387f2a0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ixiQV669SW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ixiQV669SW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iy1QcvZOx2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iy1QcvZOx2.verified.txt index 30b92437df..2afe1a254f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iy1QcvZOx2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/iy1QcvZOx2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j4gNsHOu8j.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j4gNsHOu8j.verified.txt index 2f8a8ba8e7..d8b64e5301 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j4gNsHOu8j.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j4gNsHOu8j.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitlong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j6KRIY8N4K.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j6KRIY8N4K.verified.txt index d70f83d19b..87611250e3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j6KRIY8N4K.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j6KRIY8N4K.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j7ozahkylF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j7ozahkylF.verified.txt index 1e90224ca1..6762768315 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j7ozahkylF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j7ozahkylF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j8B5BlDqaN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j8B5BlDqaN.verified.txt index c4a6330fe9..3d8efe92e8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j8B5BlDqaN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/j8B5BlDqaN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jVnDTEzc33.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jVnDTEzc33.verified.txt index 844be19e05..4139bc3898 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jVnDTEzc33.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jVnDTEzc33.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jZgYLdyvsn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jZgYLdyvsn.verified.txt index a0ea8389a5..344c367a54 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jZgYLdyvsn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jZgYLdyvsn.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jg5KVosj0v.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jg5KVosj0v.verified.txt index 7eed032a49..879e53a7c7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jg5KVosj0v.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jg5KVosj0v.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jqIhpvZrBQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jqIhpvZrBQ.verified.txt index a970bdb702..8fcb4e360f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jqIhpvZrBQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jqIhpvZrBQ.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jrSWfblfeS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jrSWfblfeS.verified.txt index c1b86c1069..93814987ca 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jrSWfblfeS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jrSWfblfeS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jt4tWFg1TC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jt4tWFg1TC.verified.txt index c0e96eeeb7..da4bed6dd2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jt4tWFg1TC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jt4tWFg1TC.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jzjuTMdGd5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jzjuTMdGd5.verified.txt index 89fbd75cbd..440d897e3b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jzjuTMdGd5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/jzjuTMdGd5.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kAMMXruSaa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kAMMXruSaa.verified.txt index 1875ef73e5..32cd3449fb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kAMMXruSaa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kAMMXruSaa.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kCxZTc7O4y.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kCxZTc7O4y.verified.txt index 9067d2fb8d..6cee90f954 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kCxZTc7O4y.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kCxZTc7O4y.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kJaX9bxLvh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kJaX9bxLvh.verified.txt index ef39ad26e2..f2dff4b47d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kJaX9bxLvh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kJaX9bxLvh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMNYVW0ah6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMNYVW0ah6.verified.txt index d3fcaa0620..e8d00743f1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMNYVW0ah6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMNYVW0ah6.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMk295tBWo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMk295tBWo.verified.txt index 642821720a..48924ae704 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMk295tBWo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kMk295tBWo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kO2jJnpkWZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kO2jJnpkWZ.verified.txt index f17e1527ca..78b2e54e54 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kO2jJnpkWZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kO2jJnpkWZ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kS6cC9OPBl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kS6cC9OPBl.verified.txt index 0697475ef6..d83816910d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kS6cC9OPBl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kS6cC9OPBl.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kWWCogReYS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kWWCogReYS.verified.txt index 53ec1bf6d0..951a5c65cc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kWWCogReYS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kWWCogReYS.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ka4m5jy5Qo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ka4m5jy5Qo.verified.txt index dd1bec41ed..47f435326d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ka4m5jy5Qo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ka4m5jy5Qo.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/km3vM9mWNt.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/km3vM9mWNt.verified.txt index abbb9daf94..d3803f40aa 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/km3vM9mWNt.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/km3vM9mWNt.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kokf1Pt2jx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kokf1Pt2jx.verified.txt index 6dcc405797..22fd4060d2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kokf1Pt2jx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kokf1Pt2jx.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxYUuv6aNa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxYUuv6aNa.verified.txt index b7c8616ab4..36759c4ea1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxYUuv6aNa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxYUuv6aNa.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxooKAjqsz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxooKAjqsz.verified.txt index ebda122961..b09fee8c55 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxooKAjqsz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/kxooKAjqsz.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l08jqTXpOp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l08jqTXpOp.verified.txt index cc466810b9..6e3ac40d02 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l08jqTXpOp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l08jqTXpOp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l2nncWcPRC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l2nncWcPRC.verified.txt index 6287661e6e..824d83c067 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l2nncWcPRC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l2nncWcPRC.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l4ZidFLIWY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l4ZidFLIWY.verified.txt index e1814e302d..d24aa08e4d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l4ZidFLIWY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l4ZidFLIWY.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l6P8qnoK8H.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l6P8qnoK8H.verified.txt index 18fdd433c4..6f49e39463 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l6P8qnoK8H.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l6P8qnoK8H.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l76gwvej1y.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l76gwvej1y.verified.txt index 86884f46dc..fc06985bad 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l76gwvej1y.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/l76gwvej1y.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lCNFQXetCB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lCNFQXetCB.verified.txt index b824caa880..2102b7f679 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lCNFQXetCB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lCNFQXetCB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lEYEloCGpn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lEYEloCGpn.verified.txt index 03f937588b..b42292353d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lEYEloCGpn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lEYEloCGpn.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lXa5LtYqfJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lXa5LtYqfJ.verified.txt index 890c9e60c8..0265df9526 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lXa5LtYqfJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lXa5LtYqfJ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldCNwP8x25.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldCNwP8x25.verified.txt index 8040b0d890..5a0b7be052 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldCNwP8x25.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldCNwP8x25.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldWh5wRnio.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldWh5wRnio.verified.txt index cb968d13b8..bf881d8719 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldWh5wRnio.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ldWh5wRnio.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lfPaQWxVX1.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lfPaQWxVX1.verified.txt index d48a96b6f2..565d5bfbc6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lfPaQWxVX1.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lfPaQWxVX1.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lj6WTbBJDP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lj6WTbBJDP.verified.txt index c2cf091a0c..3c1c8d45b8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lj6WTbBJDP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lj6WTbBJDP.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ljYWzcf7KW.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ljYWzcf7KW.verified.txt index b83eab396e..1891a9c15c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ljYWzcf7KW.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ljYWzcf7KW.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Explicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrk1UmI5Ql.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrk1UmI5Ql.verified.txt index 0b54dc0709..a3a3c00bf7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrk1UmI5Ql.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrk1UmI5Ql.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrydKAesVg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrydKAesVg.verified.txt index 589f3df1c0..bb0649bae2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrydKAesVg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lrydKAesVg.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lvNZzstk1U.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lvNZzstk1U.verified.txt index df3cde1c7d..057b1af4f2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lvNZzstk1U.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/lvNZzstk1U.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m66XYnX8wn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m66XYnX8wn.verified.txt index 63fea8617f..7bb1709b95 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m66XYnX8wn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m66XYnX8wn.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m7ijDUzhYR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m7ijDUzhYR.verified.txt index af88331f09..6a77d839e2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m7ijDUzhYR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m7ijDUzhYR.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m9XoDpYTMu.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m9XoDpYTMu.verified.txt index bb17f22d78..bb91d60b6f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m9XoDpYTMu.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/m9XoDpYTMu.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mADAtwsIeH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mADAtwsIeH.verified.txt index 0d5aebeb91..3678b9905a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mADAtwsIeH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mADAtwsIeH.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonestring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonestring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mHOuf87eVl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mHOuf87eVl.verified.txt index 6e6a61d8ba..54bb9e9e28 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mHOuf87eVl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mHOuf87eVl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mJZov3ze1k.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mJZov3ze1k.verified.txt index f2b40687f5..6ae77bb881 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mJZov3ze1k.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mJZov3ze1k.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLWPIS3yd2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLWPIS3yd2.verified.txt index 0223e3262b..10b75c4804 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLWPIS3yd2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLWPIS3yd2.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLkJ0sn2kR.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLkJ0sn2kR.verified.txt index 0ef2020d81..dc24143176 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLkJ0sn2kR.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mLkJ0sn2kR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mNFpQH7eaE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mNFpQH7eaE.verified.txt index 9084eb006d..fce0893759 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mNFpQH7eaE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mNFpQH7eaE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mY6Je7RFco.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mY6Je7RFco.verified.txt index fdc60f5599..3bac6fa598 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mY6Je7RFco.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mY6Je7RFco.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mZ44QO5hSV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mZ44QO5hSV.verified.txt index 1982597752..25ad493de9 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mZ44QO5hSV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mZ44QO5hSV.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mw9FdfIsGD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mw9FdfIsGD.verified.txt index 6e391fb7d3..e9bb8bee17 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mw9FdfIsGD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/mw9FdfIsGD.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/n7sHbRIXCw.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/n7sHbRIXCw.verified.txt index 44a7f78806..b259526cf3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/n7sHbRIXCw.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/n7sHbRIXCw.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nDaNuM8ybS.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nDaNuM8ybS.verified.txt index 04fe182223..57b1713c74 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nDaNuM8ybS.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nDaNuM8ybS.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitfloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitfloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nF9y283Wqy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nF9y283Wqy.verified.txt index f117ac2345..4bdb136d6f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nF9y283Wqy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nF9y283Wqy.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nJWsiXgJTU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nJWsiXgJTU.verified.txt index a3dd2f411d..b8692de4fb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nJWsiXgJTU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nJWsiXgJTU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nLzqBBy0P7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nLzqBBy0P7.verified.txt index 275eb9abdb..4ee582cf08 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nLzqBBy0P7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nLzqBBy0P7.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nO4Fv2JM1D.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nO4Fv2JM1D.verified.txt index 5d08e78ca1..7bb2066149 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nO4Fv2JM1D.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nO4Fv2JM1D.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nPDrj3Ap19.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nPDrj3Ap19.verified.txt index 4e7d3df647..6a59919066 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nPDrj3Ap19.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nPDrj3Ap19.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/naz3V9ggly.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/naz3V9ggly.verified.txt index aa9c3e6874..f4fcc25e81 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/naz3V9ggly.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/naz3V9ggly.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nfAL2jZLMN.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nfAL2jZLMN.verified.txt index 89fff7e1ba..75e9fc99a6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nfAL2jZLMN.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/nfAL2jZLMN.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/o0xig5z9kB.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/o0xig5z9kB.verified.txt index be184983ed..bf86758e98 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/o0xig5z9kB.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/o0xig5z9kB.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Noneint(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Noneint other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oB9y2Xkfsp.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oB9y2Xkfsp.verified.txt index 70ce1a9fc6..0846a57241 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oB9y2Xkfsp.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oB9y2Xkfsp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oZgM8Ny0L5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oZgM8Ny0L5.verified.txt index b0744e9c4e..f8dba81633 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oZgM8Ny0L5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/oZgM8Ny0L5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Implicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p1A7gPMOxL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p1A7gPMOxL.verified.txt index e89c3fd30d..8efe0ec9b2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p1A7gPMOxL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p1A7gPMOxL.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p3gLa0kgxn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p3gLa0kgxn.verified.txt index 181fc7963d..75bd11b838 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p3gLa0kgxn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p3gLa0kgxn.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4R8rK4vfa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4R8rK4vfa.verified.txt index be628012ef..fd525097d3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4R8rK4vfa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4R8rK4vfa.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4S0UBmC7f.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4S0UBmC7f.verified.txt index 133a393922..3a0cf0b1e6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4S0UBmC7f.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p4S0UBmC7f.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p89hpSAIck.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p89hpSAIck.verified.txt index b7641f4eb2..680e98484b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p89hpSAIck.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/p89hpSAIck.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pJZTU9sz4O.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pJZTU9sz4O.verified.txt index ee30e92c71..01560ecad8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pJZTU9sz4O.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pJZTU9sz4O.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pKHYGRI0fX.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pKHYGRI0fX.verified.txt index 4f68574b13..c0c233d172 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pKHYGRI0fX.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pKHYGRI0fX.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pSUwHTLLpJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pSUwHTLLpJ.verified.txt index 89c397f082..6965589694 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pSUwHTLLpJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pSUwHTLLpJ.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pVzCxwbQjy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pVzCxwbQjy.verified.txt index 63b40466d5..378d34708e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pVzCxwbQjy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pVzCxwbQjy.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pWJ3BYOryj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pWJ3BYOryj.verified.txt index 5cb37dffc6..418467d9e6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pWJ3BYOryj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pWJ3BYOryj.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pZqZWHtca7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pZqZWHtca7.verified.txt index b8b3928bea..7d16baf8cd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pZqZWHtca7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pZqZWHtca7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pieVXzzTqk.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pieVXzzTqk.verified.txt index 92f8e01390..25bede5a7e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pieVXzzTqk.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pieVXzzTqk.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pqsuk3cfyG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pqsuk3cfyG.verified.txt index d3fb84ef8d..62593a3e7e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pqsuk3cfyG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pqsuk3cfyG.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/psQLmyd82m.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/psQLmyd82m.verified.txt index 1f9e1d184a..6bfc19f2c1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/psQLmyd82m.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/psQLmyd82m.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pwXSeSrgmm.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pwXSeSrgmm.verified.txt index 48ff9a4975..64dd629812 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pwXSeSrgmm.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pwXSeSrgmm.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pxbOi6HfKI.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pxbOi6HfKI.verified.txt index f54a539447..6f7ec1705f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pxbOi6HfKI.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/pxbOi6HfKI.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Nonebool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonebool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q0Yy4O3b6m.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q0Yy4O3b6m.verified.txt index 8b194a6df9..8c91ffd08d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q0Yy4O3b6m.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q0Yy4O3b6m.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1EnOCKUra.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1EnOCKUra.verified.txt index 50695dd42e..3c177dff5a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1EnOCKUra.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1EnOCKUra.verified.txt @@ -118,8 +118,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -127,7 +126,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1RLG8b3sh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1RLG8b3sh.verified.txt index 0c35a291ba..c490917e2f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1RLG8b3sh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q1RLG8b3sh.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q2sEu1wRzF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q2sEu1wRzF.verified.txt index 4a9c99e73f..2ba2f1ed01 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q2sEu1wRzF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q2sEu1wRzF.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q3o1mKNyed.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q3o1mKNyed.verified.txt index 2a17e05f8f..5fbc8bd1cc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q3o1mKNyed.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q3o1mKNyed.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8CT8hlMmc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8CT8hlMmc.verified.txt index 1e5d2ec7f1..28755cd6a4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8CT8hlMmc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8CT8hlMmc.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8wmqiIpWb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8wmqiIpWb.verified.txt index f3a357439f..8344767980 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8wmqiIpWb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/q8wmqiIpWb.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qFLi2UATrg.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qFLi2UATrg.verified.txt index ea125be614..0ee4dfdb7e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qFLi2UATrg.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qFLi2UATrg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qOhWZYuUif.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qOhWZYuUif.verified.txt index 5e95cbff17..fb1d6eb1b8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qOhWZYuUif.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qOhWZYuUif.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qazkc58ZoU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qazkc58ZoU.verified.txt index 5d965c3c4f..66876a328e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qazkc58ZoU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qazkc58ZoU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qeAyRGTbh4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qeAyRGTbh4.verified.txt index 46323ddb42..3a12aa80d3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qeAyRGTbh4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qeAyRGTbh4.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhhvl34geM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhhvl34geM.verified.txt index eb65726793..a2d2a5d13b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhhvl34geM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhhvl34geM.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhwQ8OMgGy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhwQ8OMgGy.verified.txt index 3a643cd88a..c850ab4fec 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhwQ8OMgGy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qhwQ8OMgGy.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Explicit(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicit other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicit other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qk6xq5ajrF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qk6xq5ajrF.verified.txt index 22fbdd52d2..3e2c9c16a3 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qk6xq5ajrF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qk6xq5ajrF.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qyTxrSXH6o.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qyTxrSXH6o.verified.txt index cc28c3bd94..fae94a5b3a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qyTxrSXH6o.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/qyTxrSXH6o.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r4bcTUJfXU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r4bcTUJfXU.verified.txt index 5794404c8e..9a5dfa0b45 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r4bcTUJfXU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r4bcTUJfXU.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r7uryUreTf.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r7uryUreTf.verified.txt index 8a3179d212..7b65325edf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r7uryUreTf.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/r7uryUreTf.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rLyZcho1JP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rLyZcho1JP.verified.txt index c7a404f99a..5118795823 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rLyZcho1JP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rLyZcho1JP.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonedecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rNKJhaxgVD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rNKJhaxgVD.verified.txt index c27cc557a3..6d90c7b2cf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rNKJhaxgVD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rNKJhaxgVD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/raqgyPsQg4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/raqgyPsQg4.verified.txt index 2430b98e54..9857aac79a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/raqgyPsQg4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/raqgyPsQg4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rbPz0uaLtj.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rbPz0uaLtj.verified.txt index d5655cbf95..fb7ccfe604 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rbPz0uaLtj.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rbPz0uaLtj.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rixCOgf5Q9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rixCOgf5Q9.verified.txt index 5342958a2a..503800ba73 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rixCOgf5Q9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rixCOgf5Q9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rlLTNJG96r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rlLTNJG96r.verified.txt index ba198a26fe..7b3da4e16f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rlLTNJG96r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rlLTNJG96r.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rozvcKOFAy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rozvcKOFAy.verified.txt index 660d3988ce..0be8a9e2ba 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rozvcKOFAy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rozvcKOFAy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rw5tilitre.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rw5tilitre.verified.txt index 975b366c52..3cc730d339 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rw5tilitre.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/rw5tilitre.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ry52raWd83.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ry52raWd83.verified.txt index 830de61c29..f8d5954e7d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ry52raWd83.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ry52raWd83.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s0uGaquiVn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s0uGaquiVn.verified.txt index 6d3d2fe970..958183c36d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s0uGaquiVn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s0uGaquiVn.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s2Jb82wIZm.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s2Jb82wIZm.verified.txt index aeca99cc9a..a3364bafbf 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s2Jb82wIZm.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/s2Jb82wIZm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Explicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sCsYeHisTc.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sCsYeHisTc.verified.txt index a4ac534816..1b2d48d3b5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sCsYeHisTc.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sCsYeHisTc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sJstwBuvQn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sJstwBuvQn.verified.txt index 5c45e18f9c..ae07d7e9c5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sJstwBuvQn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sJstwBuvQn.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sPxand7b1y.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sPxand7b1y.verified.txt index d6801b8b26..554f91d863 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sPxand7b1y.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sPxand7b1y.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitfloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitfloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sQadb2GkC8.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sQadb2GkC8.verified.txt index 9af783d3da..ff6f4f7d3c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sQadb2GkC8.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sQadb2GkC8.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sTBRLlBRYy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sTBRLlBRYy.verified.txt index e2dc9c9b53..ee57a7dca2 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sTBRLlBRYy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sTBRLlBRYy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sUuNIxqleO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sUuNIxqleO.verified.txt index 388b114d8d..1d66f56fd4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sUuNIxqleO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sUuNIxqleO.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitint(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitint other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/scUWTmeSu4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/scUWTmeSu4.verified.txt index a1d1caaa6f..c7a125224c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/scUWTmeSu4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/scUWTmeSu4.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/slO1DsaALA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/slO1DsaALA.verified.txt index cadcd66518..31e8dbf8c0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/slO1DsaALA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/slO1DsaALA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sqhl7h0KTd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sqhl7h0KTd.verified.txt index 2975867930..6a1205fc31 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sqhl7h0KTd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/sqhl7h0KTd.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneshort other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ssMGaDLC5x.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ssMGaDLC5x.verified.txt index 9d03a6fee7..68e31bea87 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ssMGaDLC5x.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ssMGaDLC5x.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suFglNs09v.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suFglNs09v.verified.txt index c43eb9b753..89953e8593 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suFglNs09v.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suFglNs09v.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suxhlETgyM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suxhlETgyM.verified.txt index 6ea5eef651..ca380314e0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suxhlETgyM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/suxhlETgyM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tB7R2rlqLy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tB7R2rlqLy.verified.txt index d382de1609..af16430d99 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tB7R2rlqLy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tB7R2rlqLy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tDpDS6XRtP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tDpDS6XRtP.verified.txt index d650db9897..f249dee4d6 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tDpDS6XRtP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tDpDS6XRtP.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tFdmbsDeEo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tFdmbsDeEo.verified.txt index 33bf2573bf..5e9b840841 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tFdmbsDeEo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tFdmbsDeEo.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tIbbVMMyTY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tIbbVMMyTY.verified.txt index 87133f0533..3672286a9b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tIbbVMMyTY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tIbbVMMyTY.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tJVGel6w17.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tJVGel6w17.verified.txt index e531b36b3d..eab1ae1c53 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tJVGel6w17.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tJVGel6w17.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Noneshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Noneshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tT0iAh341h.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tT0iAh341h.verified.txt index f765ecd635..5197c0a6ca 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tT0iAh341h.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tT0iAh341h.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tTlN7ZiwiJ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tTlN7ZiwiJ.verified.txt index 681e9ebd39..aa84e14b74 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tTlN7ZiwiJ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tTlN7ZiwiJ.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tXFeF3YbC2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tXFeF3YbC2.verified.txt index 1cd7b6001d..ba1cb82181 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tXFeF3YbC2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tXFeF3YbC2.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tfWBvM2eRe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tfWBvM2eRe.verified.txt index e94f1e295d..1fbaff6a7e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tfWBvM2eRe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tfWBvM2eRe.verified.txt @@ -123,8 +123,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -132,7 +131,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tmVwERgtca.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tmVwERgtca.verified.txt index dc38b35b76..e23670632a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tmVwERgtca.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tmVwERgtca.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonebool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Nonebool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tozpKSzJuV.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tozpKSzJuV.verified.txt index e20448ac65..e726704f38 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tozpKSzJuV.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/tozpKSzJuV.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_None(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_None other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u27AQ015OP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u27AQ015OP.verified.txt index 4c434b6e6b..aacc81e248 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u27AQ015OP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u27AQ015OP.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u41tp2pSVD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u41tp2pSVD.verified.txt index c44c1fa033..755ce39a89 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u41tp2pSVD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/u41tp2pSVD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uP1V8C08GZ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uP1V8C08GZ.verified.txt index 7050921d5d..0b498974b5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uP1V8C08GZ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uP1V8C08GZ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uQsRSf0JQM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uQsRSf0JQM.verified.txt index b8f3dc85ad..67e0813b0b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uQsRSf0JQM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uQsRSf0JQM.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Implicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uZSCT1pwBv.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uZSCT1pwBv.verified.txt index 36fd99a926..97ff2a02fc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uZSCT1pwBv.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uZSCT1pwBv.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ucX5XYpIgG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ucX5XYpIgG.verified.txt index f450b34540..89c1699bea 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ucX5XYpIgG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ucX5XYpIgG.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitchar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitchar other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ufDrxM8XZO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ufDrxM8XZO.verified.txt index 17bf094281..2a682e078a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ufDrxM8XZO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ufDrxM8XZO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ugSCzSURdd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ugSCzSURdd.verified.txt index 29fd8daef2..e0d7eca609 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ugSCzSURdd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ugSCzSURdd.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonelong(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonelong other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uhaxFZfUUM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uhaxFZfUUM.verified.txt index f4670e5500..0a88214a19 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uhaxFZfUUM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uhaxFZfUUM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_NoneCastOperator_Explicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/umEPM3ZuiY.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/umEPM3ZuiY.verified.txt index 66406926f6..af6d5af1dc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/umEPM3ZuiY.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/umEPM3ZuiY.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonefloat(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonefloat other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/un7zBiPEUH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/un7zBiPEUH.verified.txt index 79ed5327fc..28c235b783 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/un7zBiPEUH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/un7zBiPEUH.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uwQ3J9G0pD.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uwQ3J9G0pD.verified.txt index 8a1c30400d..746341df19 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uwQ3J9G0pD.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/uwQ3J9G0pD.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1LCKTBT7r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1LCKTBT7r.verified.txt index 8bb175c7f5..dd86072a3b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1LCKTBT7r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1LCKTBT7r.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1ype2K7G0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1ype2K7G0.verified.txt index c4ea05a2d7..227aecaeab 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1ype2K7G0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v1ype2K7G0.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v3F7C0nTuC.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v3F7C0nTuC.verified.txt index 83d0372c04..cecc0552be 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v3F7C0nTuC.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v3F7C0nTuC.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonestring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonestring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v6mLjq9UYl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v6mLjq9UYl.verified.txt index 5af51668f1..e834810c1d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v6mLjq9UYl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/v6mLjq9UYl.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_NoneCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vOWLng4N5i.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vOWLng4N5i.verified.txt index 4575187b3f..c146bca4fc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vOWLng4N5i.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vOWLng4N5i.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vP57TyU1eH.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vP57TyU1eH.verified.txt index 6e99fca2f3..0c83a7c942 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vP57TyU1eH.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vP57TyU1eH.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vPIECs2Pfx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vPIECs2Pfx.verified.txt index c7393e5666..8cdb29277f 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vPIECs2Pfx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vPIECs2Pfx.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vVk5A75Fzm.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vVk5A75Fzm.verified.txt index b3523977dc..9cf9659c5e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vVk5A75Fzm.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vVk5A75Fzm.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_ImplicitCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vc8nR4GrUP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vc8nR4GrUP.verified.txt index d112255e7b..c9f2726035 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vc8nR4GrUP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vc8nR4GrUP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vf4UxU2z2U.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vf4UxU2z2U.verified.txt index 93e59b15b5..68428d3b33 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vf4UxU2z2U.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vf4UxU2z2U.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vkGlrSvUeP.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vkGlrSvUeP.verified.txt index 72c4cf94d7..63dab10ae7 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vkGlrSvUeP.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vkGlrSvUeP.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_NoneSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vowgUxDWgb.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vowgUxDWgb.verified.txt index bba145448b..b0fea49cb1 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vowgUxDWgb.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vowgUxDWgb.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vvhtx5AV2B.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vvhtx5AV2B.verified.txt index e819b5ffa7..f1ed6c7eca 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vvhtx5AV2B.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/vvhtx5AV2B.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wCfZmX11zE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wCfZmX11zE.verified.txt index ec0882120f..1cc3c2d223 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wCfZmX11zE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wCfZmX11zE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wUHmnOtogM.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wUHmnOtogM.verified.txt index 73b28dd4d5..1bee093f9b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wUHmnOtogM.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wUHmnOtogM.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Nonedouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonedouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wXoG4F4sER.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wXoG4F4sER.verified.txt index aac83598f1..51c718b820 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wXoG4F4sER.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wXoG4F4sER.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wfXv04EYDo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wfXv04EYDo.verified.txt index 63551d31d5..9882651b4d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wfXv04EYDo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wfXv04EYDo.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ExplicitCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wgpjgBVJLa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wgpjgBVJLa.verified.txt index a003124c74..ffa8526528 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wgpjgBVJLa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wgpjgBVJLa.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wnQC5Csmf0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wnQC5Csmf0.verified.txt index 73f0d2a4cb..42d2139df8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wnQC5Csmf0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wnQC5Csmf0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wuwF3vSpZe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wuwF3vSpZe.verified.txt index 302506295d..7e00572e17 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wuwF3vSpZe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/wuwF3vSpZe.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2F1RAj3hL.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2F1RAj3hL.verified.txt index 030b97af5b..6b3f28826d 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2F1RAj3hL.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2F1RAj3hL.verified.txt @@ -108,8 +108,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -117,7 +116,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_NoneSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2IAxtNpa7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2IAxtNpa7.verified.txt index 6264e75c61..7639a9cf56 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2IAxtNpa7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x2IAxtNpa7.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ImplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x4T4owpiTd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x4T4owpiTd.verified.txt index 0f5585a240..444a802500 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x4T4owpiTd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x4T4owpiTd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_ExplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x6zyZdqVHa.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x6zyZdqVHa.verified.txt index 943d77ee36..2539aae59b 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x6zyZdqVHa.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x6zyZdqVHa.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_DateTimeOffset> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x7poHfdRkE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x7poHfdRkE.verified.txt index 7c78bfc8e8..abfe2ad04e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x7poHfdRkE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/x7poHfdRkE.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitstring(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitstring other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitstring other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_Explicitstring> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xAJqpWpwe7.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xAJqpWpwe7.verified.txt index e24c84f646..1ae51d6304 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xAJqpWpwe7.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xAJqpWpwe7.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicit other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Explicit> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xB524LtH9r.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xB524LtH9r.verified.txt index 704cd7c21a..01e73d8c24 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xB524LtH9r.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xB524LtH9r.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xDnnhqLnWz.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xDnnhqLnWz.verified.txt index f891a06441..98707954cb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xDnnhqLnWz.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xDnnhqLnWz.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xMG4KkyvD9.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xMG4KkyvD9.verified.txt index b848ad410b..430a648207 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xMG4KkyvD9.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xMG4KkyvD9.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xWAooOpDKQ.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xWAooOpDKQ.verified.txt index 190f5629f6..41d91c5867 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xWAooOpDKQ.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xWAooOpDKQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ImplicitCastOperator_Implicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xYIrIWZVzU.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xYIrIWZVzU.verified.txt index 9f448069a9..712b7415ee 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xYIrIWZVzU.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xYIrIWZVzU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xeGyzjYAeO.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xeGyzjYAeO.verified.txt index d169bad362..dbf304bc28 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xeGyzjYAeO.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xeGyzjYAeO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Explicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xgqgpf4jN6.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xgqgpf4jN6.verified.txt index 79f6e9679f..46ab35e7f0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xgqgpf4jN6.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xgqgpf4jN6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_NoneCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi1FJzBxkl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi1FJzBxkl.verified.txt index a3f6499839..7e18a473b5 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi1FJzBxkl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi1FJzBxkl.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_NoneCastOperator_Implicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi2Xe39rwy.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi2Xe39rwy.verified.txt index 8b201ec4a3..d26eaa4cef 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi2Xe39rwy.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xi2Xe39rwy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonelong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonelong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xkiNZn8HAn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xkiNZn8HAn.verified.txt index 71d2ddae3b..498e77f727 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xkiNZn8HAn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xkiNZn8HAn.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xrb2H2rWkd.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xrb2H2rWkd.verified.txt index fcc80bbf5e..457f5a99c4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xrb2H2rWkd.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/xrb2H2rWkd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y0ld2Ezrfh.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y0ld2Ezrfh.verified.txt index c559347194..f2bb051dfc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y0ld2Ezrfh.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y0ld2Ezrfh.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebyte(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebyte other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5C3WURWjE.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5C3WURWjE.verified.txt index fde0dbeb10..21ab352f43 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5C3WURWjE.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5C3WURWjE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5Tg0QucZ3.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5Tg0QucZ3.verified.txt index 4ca9620296..458cd82d51 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5Tg0QucZ3.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y5Tg0QucZ3.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Explicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y8AD2zb29c.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y8AD2zb29c.verified.txt index ac296a2f2f..c6454307d4 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y8AD2zb29c.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/y8AD2zb29c.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yAHDsMaqx5.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yAHDsMaqx5.verified.txt index 58dce62ac9..eb7fdefb97 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yAHDsMaqx5.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yAHDsMaqx5.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_None other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_None> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFSHy12g6k.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFSHy12g6k.verified.txt index 6e57809be3..90695b11a0 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFSHy12g6k.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFSHy12g6k.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Implicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFUY8IWQLx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFUY8IWQLx.verified.txt index 7652bc0487..82073370fe 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFUY8IWQLx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yFUY8IWQLx.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_NoneCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yG7uVPiOae.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yG7uVPiOae.verified.txt index 645cb9e6f4..bd74b0310e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yG7uVPiOae.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yG7uVPiOae.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Nonechar(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonechar other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonechar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Nonechar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yGWgDAaLPe.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yGWgDAaLPe.verified.txt index 4d559fe944..c62782f986 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yGWgDAaLPe.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yGWgDAaLPe.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_classCastOperator_ImplicitCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yJCFxg7o4I.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yJCFxg7o4I.verified.txt index c6f9aebbc4..18a7dc243c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yJCFxg7o4I.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yJCFxg7o4I.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_NoneCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_NoneCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yXVwJLsc3o.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yXVwJLsc3o.verified.txt index 61cdbf9d95..d0e511786c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yXVwJLsc3o.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yXVwJLsc3o.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yf1XXqxr0b.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yf1XXqxr0b.verified.txt index a87a89e370..544e06f30c 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yf1XXqxr0b.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yf1XXqxr0b.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new _casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_readonly_partial_structCastOperator_NoneCastOperator_ExplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yijWxcUhSl.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yijWxcUhSl.verified.txt index 3d5edd2a08..9775bc8efd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yijWxcUhSl.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/yijWxcUhSl.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_classCastOperator_ExplicitCastOperator_Implicitint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMPfCOVF0.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMPfCOVF0.verified.txt index 8fb948cb5c..f46d1b5de8 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMPfCOVF0.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMPfCOVF0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ImplicitCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMeTRQPkt.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMeTRQPkt.verified.txt index 8aa830c575..d577a69374 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMeTRQPkt.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ymMeTRQPkt.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitchar other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_ExplicitCastOperator_Implicitchar> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ypE9zYuPwn.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ypE9zYuPwn.verified.txt index daad91b342..fc3eda4f68 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ypE9zYuPwn.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/ypE9zYuPwn.verified.txt @@ -109,8 +109,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdecimal(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdecimal other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -118,7 +117,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdecimal other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ImplicitCastOperator_Implicitdecimal> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z4fMKEvLMA.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z4fMKEvLMA.verified.txt index 7c078673fc..332f9e4373 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z4fMKEvLMA.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z4fMKEvLMA.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_Implicitdouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z5S8OyQMtF.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z5S8OyQMtF.verified.txt index 5766b5f650..bba6db639e 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z5S8OyQMtF.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z5S8OyQMtF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ExplicitCastOperator_ExplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z65voChZp4.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z65voChZp4.verified.txt index 3c01256fab..f904428e4a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z65voChZp4.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/z65voChZp4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonedouble other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Nonedouble> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFaaMofH18.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFaaMofH18.verified.txt index b21a099bd6..7765bb0353 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFaaMofH18.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFaaMofH18.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitbyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_NoneCastOperator_Explicitbyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFulFDTAEo.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFulFDTAEo.verified.txt index 5c388c5a0f..df14eb7775 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFulFDTAEo.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zFulFDTAEo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_recordCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zHohCsnSNq.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zHohCsnSNq.verified.txt index 0051ab8ec3..7c2095a976 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zHohCsnSNq.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zHohCsnSNq.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Implicitlong> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zIoKsI32S2.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zIoKsI32S2.verified.txt index d4846acd30..671407e897 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zIoKsI32S2.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zIoKsI32S2.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zXDQy3qess.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zXDQy3qess.verified.txt index 9268429e0d..5696e344dc 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zXDQy3qess.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zXDQy3qess.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebyte other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_recordCastOperator_NoneCastOperator_Nonebyte> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zdJ6NBs4jr.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zdJ6NBs4jr.verified.txt index a2aa742c4c..1471d5334a 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zdJ6NBs4jr.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zdJ6NBs4jr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonefloat other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_record_classCastOperator_ExplicitCastOperator_Nonefloat> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zeloRnOr1l.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zeloRnOr1l.verified.txt index 160754c913..05205e33fb 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zeloRnOr1l.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zeloRnOr1l.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitbool(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitbool other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitbool other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ExplicitCastOperator_Explicitbool> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zfM87YSwib.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zfM87YSwib.verified.txt index 17cbd393d1..2dcddc8fdd 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zfM87YSwib.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zfM87YSwib.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new _casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitshort(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitshort other) + public readonly global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitshort other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_structCastOperator_ExplicitCastOperator_Explicitshort> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zu9CrZv1Ao.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zu9CrZv1Ao.verified.txt index bd29f930f2..da136e5972 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zu9CrZv1Ao.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zu9CrZv1Ao.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new _casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid(value); } - - public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) + public readonly global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid other, global::System.Collections.Generic.IEqualityComparer<_casting_public_partial_record_structCastOperator_ImplicitCastOperator_ImplicitSystem_Guid> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zvpunSCVnG.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zvpunSCVnG.verified.txt index f2deb3331c..f791382076 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zvpunSCVnG.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zvpunSCVnG.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Noneint other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ImplicitCastOperator_Noneint> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zy9vCR5irx.verified.txt b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zy9vCR5irx.verified.txt index 65f279d482..049cd18423 100644 --- a/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zy9vCR5irx.verified.txt +++ b/tests/SnapshotTests/Casting/snapshots/snap-v7.0/zy9vCR5irx.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer<_casting_public_sealed_partial_classCastOperator_ExplicitCastOperator_NoneSystem_DateTime> comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/06T2RNzfTz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/06T2RNzfTz.verified.txt index b88f65c808..bbae6e3e20 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/06T2RNzfTz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/06T2RNzfTz.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0CWC1Me6cd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0CWC1Me6cd.verified.txt index ad0e672fea..28905d49c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0CWC1Me6cd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0CWC1Me6cd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0EObiIXDZN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0EObiIXDZN.verified.txt index bbda8c3a85..a4a2140c97 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0EObiIXDZN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0EObiIXDZN.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0UrWNfXMbn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0UrWNfXMbn.verified.txt index 4333a0280b..e199895664 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0UrWNfXMbn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0UrWNfXMbn.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0crDi3Beji.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0crDi3Beji.verified.txt index bcac92a017..74bdd0810e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0crDi3Beji.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0crDi3Beji.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0dkknAM71l.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0dkknAM71l.verified.txt index 16393cd1a6..e580ad534f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0dkknAM71l.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0dkknAM71l.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0pnsI1bxxI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0pnsI1bxxI.verified.txt index ed7c784453..b01d7f41e2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0pnsI1bxxI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0pnsI1bxxI.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0tPklTLL8f.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0tPklTLL8f.verified.txt index c025cd109c..abf6b03375 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0tPklTLL8f.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/0tPklTLL8f.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/10Vh7rKhPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/10Vh7rKhPS.verified.txt index 5c591db099..38e67132f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/10Vh7rKhPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/10Vh7rKhPS.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/11k4c6CGtU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/11k4c6CGtU.verified.txt index 929bf5455e..f18dd748a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/11k4c6CGtU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/11k4c6CGtU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/18luqBmqNm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/18luqBmqNm.verified.txt index 8f9a1df711..c3335942c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/18luqBmqNm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/18luqBmqNm.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1A2Z3313ZM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1A2Z3313ZM.verified.txt index cec9912d9f..a035f70ad0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1A2Z3313ZM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1A2Z3313ZM.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1DvWsvoDe4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1DvWsvoDe4.verified.txt index 968a44df6f..2d20924a69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1DvWsvoDe4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1DvWsvoDe4.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LNccvUgIN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LNccvUgIN.verified.txt index 60de7888b6..bb7158eead 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LNccvUgIN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LNccvUgIN.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LZ5UZXlZA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LZ5UZXlZA.verified.txt index 625d664421..0dcf0a703e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LZ5UZXlZA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1LZ5UZXlZA.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1h0XbQEjc6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1h0XbQEjc6.verified.txt index 3973c2c51b..2497031d30 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1h0XbQEjc6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1h0XbQEjc6.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1hT7MEls6D.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1hT7MEls6D.verified.txt index b6bdce7cdd..c972acb496 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1hT7MEls6D.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1hT7MEls6D.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1nooLrDZvg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1nooLrDZvg.verified.txt index 6b38d90b70..6ce06984fb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1nooLrDZvg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1nooLrDZvg.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1rcK59ZC2E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1rcK59ZC2E.verified.txt index caabb0679d..6fb8f432f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1rcK59ZC2E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/1rcK59ZC2E.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/22b5GFPsJy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/22b5GFPsJy.verified.txt index 4d252e8dbb..986393996f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/22b5GFPsJy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/22b5GFPsJy.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/25cFSQsgYv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/25cFSQsgYv.verified.txt index cadd8a646e..502fbd22e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/25cFSQsgYv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/25cFSQsgYv.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BFPwNYFHx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BFPwNYFHx.verified.txt index d0f758df17..e74b8c30ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BFPwNYFHx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BFPwNYFHx.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BK45BQugr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BK45BQugr.verified.txt index 42ecb5c795..0138f34723 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BK45BQugr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2BK45BQugr.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2DcJnHQ1Wc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2DcJnHQ1Wc.verified.txt index 96cc3f7679..b530119a86 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2DcJnHQ1Wc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2DcJnHQ1Wc.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2FJcSOSpS2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2FJcSOSpS2.verified.txt index a013fdff9f..d731f13de2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2FJcSOSpS2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2FJcSOSpS2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2GQW6JDMp3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2GQW6JDMp3.verified.txt index d414420b41..6d436472b6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2GQW6JDMp3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2GQW6JDMp3.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2IaDcpwLSY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2IaDcpwLSY.verified.txt index 306cad987c..dbe0717d20 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2IaDcpwLSY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2IaDcpwLSY.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2MarLpFSXq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2MarLpFSXq.verified.txt index 6c7df3b505..fa041ef87d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2MarLpFSXq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2MarLpFSXq.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2YzWsnBVxR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2YzWsnBVxR.verified.txt index b655c8f550..3b4fb6a33e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2YzWsnBVxR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2YzWsnBVxR.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2f2UPcJxE1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2f2UPcJxE1.verified.txt index 87ddc5800e..7c5ffa2ad6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2f2UPcJxE1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2f2UPcJxE1.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2h4RxJmd8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2h4RxJmd8y.verified.txt index ccbd79463b..e950ca85aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2h4RxJmd8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2h4RxJmd8y.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2krEjBjZe4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2krEjBjZe4.verified.txt index 0f72480c2a..fc8e8c0c8d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2krEjBjZe4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2krEjBjZe4.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2pqNE4KsND.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2pqNE4KsND.verified.txt index cf780c863c..10f81182fc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2pqNE4KsND.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2pqNE4KsND.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2uTfcY6oRr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2uTfcY6oRr.verified.txt index 1d3bf56e78..c341cf38df 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2uTfcY6oRr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/2uTfcY6oRr.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/30gVby1BW2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/30gVby1BW2.verified.txt index a8a0a6b92a..7133c26da5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/30gVby1BW2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/30gVby1BW2.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/368iKp7FQ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/368iKp7FQ7.verified.txt index ae2ba703dd..061efc4344 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/368iKp7FQ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/368iKp7FQ7.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3G0vZbWoKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3G0vZbWoKl.verified.txt index 8d2299cdb7..16d2af0b92 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3G0vZbWoKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3G0vZbWoKl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3HolOeXE6X.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3HolOeXE6X.verified.txt index b5d4f9e65b..5a4c34cf18 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3HolOeXE6X.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3HolOeXE6X.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3P7ClCy8Kv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3P7ClCy8Kv.verified.txt index 09b2d6c853..aa72cf5f6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3P7ClCy8Kv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3P7ClCy8Kv.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3QFEobjwmC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3QFEobjwmC.verified.txt index cfc57f0993..38619ddff0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3QFEobjwmC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3QFEobjwmC.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3T2fWsQsO5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3T2fWsQsO5.verified.txt index aa6197da5e..dc04e0168e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3T2fWsQsO5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3T2fWsQsO5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3XQUHAFlgc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3XQUHAFlgc.verified.txt index 5332982f05..2ddffdf14f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3XQUHAFlgc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3XQUHAFlgc.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3hesiYBAJ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3hesiYBAJ7.verified.txt index cd514e97d2..8728975693 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3hesiYBAJ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3hesiYBAJ7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3mBWDp16rd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3mBWDp16rd.verified.txt index 4503c28303..3b9088b40e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3mBWDp16rd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3mBWDp16rd.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3oAabmt2UZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3oAabmt2UZ.verified.txt index 243d84867a..691804956e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3oAabmt2UZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3oAabmt2UZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3uhGLNkcza.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3uhGLNkcza.verified.txt index bc9eda4fee..b9f920b9f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3uhGLNkcza.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/3uhGLNkcza.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/47oS0HylDj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/47oS0HylDj.verified.txt index 53c255ad4e..861ec41fbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/47oS0HylDj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/47oS0HylDj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4B4V3nXRbi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4B4V3nXRbi.verified.txt index c1a3de63a1..ede9b3b963 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4B4V3nXRbi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4B4V3nXRbi.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4EsYZXHdpa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4EsYZXHdpa.verified.txt index 41528483d2..c2fda78ee9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4EsYZXHdpa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4EsYZXHdpa.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4WKuwCUGdK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4WKuwCUGdK.verified.txt index ac046f410e..31a6485062 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4WKuwCUGdK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4WKuwCUGdK.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4q2mjH8hmG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4q2mjH8hmG.verified.txt index 28cfc10006..ca7675c82c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4q2mjH8hmG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4q2mjH8hmG.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4qxtVFqAJk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4qxtVFqAJk.verified.txt index 4657d7f412..1c05ae3106 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4qxtVFqAJk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/4qxtVFqAJk.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/510b35AtxB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/510b35AtxB.verified.txt index 1f4c653c72..f2c6c6227f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/510b35AtxB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/510b35AtxB.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/58rLEsr70X.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/58rLEsr70X.verified.txt index f250f7d076..55cc4cad27 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/58rLEsr70X.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/58rLEsr70X.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5CW9iedEFJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5CW9iedEFJ.verified.txt index e2fd63b46b..e24ef4d2aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5CW9iedEFJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5CW9iedEFJ.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5K5b1VcrOP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5K5b1VcrOP.verified.txt index 6a88706f74..5b56875719 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5K5b1VcrOP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5K5b1VcrOP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5Q17yuMKm7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5Q17yuMKm7.verified.txt index 77350fbe4b..0f98bfa354 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5Q17yuMKm7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5Q17yuMKm7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5nLb3uhXMT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5nLb3uhXMT.verified.txt index b27c1bddd7..58a84e573c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5nLb3uhXMT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5nLb3uhXMT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5sjm3kR56w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5sjm3kR56w.verified.txt index c02fae52ba..99ca66fe04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5sjm3kR56w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5sjm3kR56w.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5tYC5pmt1i.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5tYC5pmt1i.verified.txt index fff2f714b6..28f16b160c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5tYC5pmt1i.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5tYC5pmt1i.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5yEuJJbZXt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5yEuJJbZXt.verified.txt index e11261da3c..d345d5c864 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5yEuJJbZXt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/5yEuJJbZXt.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/64FEIwrsss.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/64FEIwrsss.verified.txt index bd0ab91d7c..7d3de27d04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/64FEIwrsss.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/64FEIwrsss.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/68YYwrC6sB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/68YYwrC6sB.verified.txt index 44896ef07f..78dea486e8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/68YYwrC6sB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/68YYwrC6sB.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6HeO7LLgVh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6HeO7LLgVh.verified.txt index 0409a7dc6c..47984b873c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6HeO7LLgVh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6HeO7LLgVh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6IDnvwmhCN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6IDnvwmhCN.verified.txt index ba4e7b5e76..65ce7d2e5e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6IDnvwmhCN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6IDnvwmhCN.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6NEJzhAHNe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6NEJzhAHNe.verified.txt index 50bf1acbae..88b8f103bf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6NEJzhAHNe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6NEJzhAHNe.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6RqxkujVrD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6RqxkujVrD.verified.txt index a5b3adbd0a..ba1bddafef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6RqxkujVrD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6RqxkujVrD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6bYGHXyaQe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6bYGHXyaQe.verified.txt index dd3a9be9c5..58695bcd6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6bYGHXyaQe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6bYGHXyaQe.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6lXSbuIj9v.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6lXSbuIj9v.verified.txt index 0692dd4dcb..d2bd00a6ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6lXSbuIj9v.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6lXSbuIj9v.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6w1vPiY8I8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6w1vPiY8I8.verified.txt index 1ffa22bdf7..d48c855db8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6w1vPiY8I8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6w1vPiY8I8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6xsKtx6pBG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6xsKtx6pBG.verified.txt index b13e4436da..2473f9872c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6xsKtx6pBG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/6xsKtx6pBG.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/71fqHwwBM3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/71fqHwwBM3.verified.txt index a3f72e9d35..2178dcaee5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/71fqHwwBM3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/71fqHwwBM3.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7HwoUhfzjA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7HwoUhfzjA.verified.txt index 88a6d85eb6..10d322efc5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7HwoUhfzjA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7HwoUhfzjA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Ng6xBtzx9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Ng6xBtzx9.verified.txt index 25933c6369..88541e8739 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Ng6xBtzx9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Ng6xBtzx9.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Q8dBJ3wmv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Q8dBJ3wmv.verified.txt index d5c6c2b078..61ca4465bb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Q8dBJ3wmv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Q8dBJ3wmv.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7QcebP2DRA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7QcebP2DRA.verified.txt index 8cf5879270..67bed7ae84 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7QcebP2DRA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7QcebP2DRA.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Xcf56RyAr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Xcf56RyAr.verified.txt index 4c99e2f968..5247dace7a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Xcf56RyAr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7Xcf56RyAr.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7bosH5Owyd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7bosH5Owyd.verified.txt index 7b45ddf801..4d35fd4886 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7bosH5Owyd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7bosH5Owyd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7fOituc2Xb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7fOituc2Xb.verified.txt index 762e439eaf..4e83d79950 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7fOituc2Xb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/7fOituc2Xb.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8243ZMXNu5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8243ZMXNu5.verified.txt index 69579a1135..5bfc9325e2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8243ZMXNu5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8243ZMXNu5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/86UhQdQQt6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/86UhQdQQt6.verified.txt index 2a12ff8121..8c72399b44 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/86UhQdQQt6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/86UhQdQQt6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8CopokDRUo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8CopokDRUo.verified.txt index 467bb1be93..87c8bb1897 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8CopokDRUo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8CopokDRUo.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8MqPAOtm6t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8MqPAOtm6t.verified.txt index 3f21ac365b..becf6798cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8MqPAOtm6t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8MqPAOtm6t.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8NQVN4RqfT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8NQVN4RqfT.verified.txt index fdacda4fe0..48caca4a0d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8NQVN4RqfT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8NQVN4RqfT.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8O4oVXT8II.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8O4oVXT8II.verified.txt index 1555584ee5..1fb2d0630d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8O4oVXT8II.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8O4oVXT8II.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8UVFjZCJT0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8UVFjZCJT0.verified.txt index 0a1a1059e3..c0545fbb7b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8UVFjZCJT0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8UVFjZCJT0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8u0sAu1Eqm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8u0sAu1Eqm.verified.txt index c21c03ce9d..25707bb9f0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8u0sAu1Eqm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8u0sAu1Eqm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8uGeVyBsIB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8uGeVyBsIB.verified.txt index dbe6a6893e..8b16ef5164 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8uGeVyBsIB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/8uGeVyBsIB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/90qAmH8XZh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/90qAmH8XZh.verified.txt index ae3493320a..d9ac199cec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/90qAmH8XZh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/90qAmH8XZh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/93msjLYrPQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/93msjLYrPQ.verified.txt index b2c76d3b7b..c5d5c5dbea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/93msjLYrPQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/93msjLYrPQ.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/94CUpmUuvI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/94CUpmUuvI.verified.txt index d425718411..a83353ee79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/94CUpmUuvI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/94CUpmUuvI.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/96d8Q2ZqRd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/96d8Q2ZqRd.verified.txt index 10e18559dc..01b281afbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/96d8Q2ZqRd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/96d8Q2ZqRd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/97KpbL0FdR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/97KpbL0FdR.verified.txt index 2685f2bb48..2ce28b4375 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/97KpbL0FdR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/97KpbL0FdR.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9E6gLBcHIu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9E6gLBcHIu.verified.txt index 0d7faf1754..c5624b3767 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9E6gLBcHIu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9E6gLBcHIu.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9EpRRcfGyD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9EpRRcfGyD.verified.txt index dfea481d6c..7a745fd249 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9EpRRcfGyD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9EpRRcfGyD.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9JIAVifG4N.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9JIAVifG4N.verified.txt index aa633d65b8..cf862870ba 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9JIAVifG4N.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9JIAVifG4N.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9KzNVPKfyb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9KzNVPKfyb.verified.txt index 5ce91501b7..77b84e4986 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9KzNVPKfyb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9KzNVPKfyb.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9Y12quQzSn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9Y12quQzSn.verified.txt index 43920fc4cd..4fce9bccc9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9Y12quQzSn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9Y12quQzSn.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9tI1cnGakf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9tI1cnGakf.verified.txt index 50e5aa7047..5aaadcc37e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9tI1cnGakf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/9tI1cnGakf.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3LDARdFrZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3LDARdFrZ.verified.txt index 10c1867678..d7666393a9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3LDARdFrZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3LDARdFrZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3USVyZwFP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3USVyZwFP.verified.txt index 8ba4174dd8..2974ccb7f5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3USVyZwFP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A3USVyZwFP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A6dgrlP5XX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A6dgrlP5XX.verified.txt index f54829ebc8..7026c49fbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A6dgrlP5XX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/A6dgrlP5XX.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AGUOBcbY4A.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AGUOBcbY4A.verified.txt index c20b25f0f5..5fbebc594e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AGUOBcbY4A.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AGUOBcbY4A.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AUAEAOhv0K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AUAEAOhv0K.verified.txt index 37a554dbd5..e4775bc164 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AUAEAOhv0K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AUAEAOhv0K.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AZTEicLUf8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AZTEicLUf8.verified.txt index 6fed76d258..25caa59efb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AZTEicLUf8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AZTEicLUf8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AqPrNfEGu1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AqPrNfEGu1.verified.txt index f923a68061..93dcbae6e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AqPrNfEGu1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/AqPrNfEGu1.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/B6oAHeCpjv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/B6oAHeCpjv.verified.txt index 2e44e91a2c..3cda84088b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/B6oAHeCpjv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/B6oAHeCpjv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BCDkkorwLD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BCDkkorwLD.verified.txt index 84b001ed64..15723b97c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BCDkkorwLD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BCDkkorwLD.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BFDyBAn3es.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BFDyBAn3es.verified.txt index 98de96e3f8..e9f320277f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BFDyBAn3es.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BFDyBAn3es.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BU0UUvzzuK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BU0UUvzzuK.verified.txt index 6b241fde64..e61a25b48a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BU0UUvzzuK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BU0UUvzzuK.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BVedeMNqmq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BVedeMNqmq.verified.txt index f59bada533..7c0511a824 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BVedeMNqmq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BVedeMNqmq.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BjllcI68Mq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BjllcI68Mq.verified.txt index f0c8f82d95..1a315c6153 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BjllcI68Mq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BjllcI68Mq.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BoUPxEqWpx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BoUPxEqWpx.verified.txt index 302b52faaa..d62df0e349 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BoUPxEqWpx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/BoUPxEqWpx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bs7Onq0J0u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bs7Onq0J0u.verified.txt index 5981363a85..0cd425d7a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bs7Onq0J0u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bs7Onq0J0u.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bw4RQ5cmww.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bw4RQ5cmww.verified.txt index 267345df12..8becafc5df 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bw4RQ5cmww.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Bw4RQ5cmww.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ByxRkek1XT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ByxRkek1XT.verified.txt index 900ce4f967..b09987fcf9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ByxRkek1XT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ByxRkek1XT.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/C6N34ePBjP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/C6N34ePBjP.verified.txt index 57a6554514..55e01fe4e4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/C6N34ePBjP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/C6N34ePBjP.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CBLHvotK4Y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CBLHvotK4Y.verified.txt index a0651be987..3ea308c4e3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CBLHvotK4Y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CBLHvotK4Y.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CIpk6HUes4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CIpk6HUes4.verified.txt index c7e29411d0..594b0ae02b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CIpk6HUes4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CIpk6HUes4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CM6dqqGbT5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CM6dqqGbT5.verified.txt index 29eca706a2..5a2e7097c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CM6dqqGbT5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CM6dqqGbT5.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CNZZORvmiq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CNZZORvmiq.verified.txt index b9b5421877..1fd7cec65e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CNZZORvmiq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CNZZORvmiq.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_None other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/COszDm7iPT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/COszDm7iPT.verified.txt index ffb81e6433..e45702f760 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/COszDm7iPT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/COszDm7iPT.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CQMHho7gsu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CQMHho7gsu.verified.txt index 6b438d28d5..0278da5171 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CQMHho7gsu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CQMHho7gsu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CRwevTxrKM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CRwevTxrKM.verified.txt index 6fd75a2b16..c86d22d4a2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CRwevTxrKM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CRwevTxrKM.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ChSNzH0nQf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ChSNzH0nQf.verified.txt index e184e13464..29c04be596 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ChSNzH0nQf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ChSNzH0nQf.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CljAURVTMy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CljAURVTMy.verified.txt index 66d3891f6b..57ccc3c08b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CljAURVTMy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CljAURVTMy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CrCmZ1rFQQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CrCmZ1rFQQ.verified.txt index 27402f5b61..315ae400be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CrCmZ1rFQQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/CrCmZ1rFQQ.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D32fvJ2fXc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D32fvJ2fXc.verified.txt index 988430570a..aece50f3b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D32fvJ2fXc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D32fvJ2fXc.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D9RbhZiWwB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D9RbhZiWwB.verified.txt index 06e8b9e12c..4d2f485e47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D9RbhZiWwB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/D9RbhZiWwB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DFn3iuttpy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DFn3iuttpy.verified.txt index e6531227b5..c34dcfcd0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DFn3iuttpy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DFn3iuttpy.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DKrgSbis93.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DKrgSbis93.verified.txt index f41c9b773d..1e3472c26a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DKrgSbis93.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DKrgSbis93.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DWUGR1IukQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DWUGR1IukQ.verified.txt index 2cf86009c7..0eb02f7f01 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DWUGR1IukQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DWUGR1IukQ.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DcJ4YUqTxO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DcJ4YUqTxO.verified.txt index 4da3db1f78..86477f4043 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DcJ4YUqTxO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DcJ4YUqTxO.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DkoijShLy5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DkoijShLy5.verified.txt index f256e3ee5f..2991229546 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DkoijShLy5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DkoijShLy5.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DmVi2A1jh2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DmVi2A1jh2.verified.txt index 57dc7efeaf..26d53b692d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DmVi2A1jh2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DmVi2A1jh2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Dvpv1gBrUQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Dvpv1gBrUQ.verified.txt index f76087361a..d66b535527 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Dvpv1gBrUQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Dvpv1gBrUQ.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DwiaPjLFwd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DwiaPjLFwd.verified.txt index 69fd751290..becc9a36e4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DwiaPjLFwd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/DwiaPjLFwd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EJHYFCuWsI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EJHYFCuWsI.verified.txt index 888179b16b..875896108c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EJHYFCuWsI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EJHYFCuWsI.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EjHVFORRmC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EjHVFORRmC.verified.txt index c5d5415e1b..21e9a6d4a6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EjHVFORRmC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EjHVFORRmC.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EpTtyqZnrq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EpTtyqZnrq.verified.txt index 74e50f5c2b..df3494aa47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EpTtyqZnrq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/EpTtyqZnrq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/F2ETlJ3TUM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/F2ETlJ3TUM.verified.txt index f1f22a4ff1..a474f4f0f5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/F2ETlJ3TUM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/F2ETlJ3TUM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FNBWotecr1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FNBWotecr1.verified.txt index b8e3cb2f92..238345a3cf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FNBWotecr1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FNBWotecr1.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FaNpjhWJnp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FaNpjhWJnp.verified.txt index 07829e88f9..6722d67b52 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FaNpjhWJnp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/FaNpjhWJnp.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/G1iz87Qh9v.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/G1iz87Qh9v.verified.txt index 760ab889e4..4997f278da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/G1iz87Qh9v.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/G1iz87Qh9v.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GAiFkQgtr9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GAiFkQgtr9.verified.txt index 49ab6d9293..7986cb32a2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GAiFkQgtr9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GAiFkQgtr9.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GFR12F2PgU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GFR12F2PgU.verified.txt index 5990f09627..846955c14a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GFR12F2PgU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GFR12F2PgU.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GGYsXO7NgY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GGYsXO7NgY.verified.txt index 277bc98a89..a09f9d7dd7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GGYsXO7NgY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GGYsXO7NgY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GNISh38TPA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GNISh38TPA.verified.txt index db0b656311..9ca14c51c6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GNISh38TPA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GNISh38TPA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GVdzVxyQF6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GVdzVxyQF6.verified.txt index 48f144bc82..76fe7bd252 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GVdzVxyQF6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GVdzVxyQF6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GbsChMfTbx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GbsChMfTbx.verified.txt index cb612ea22d..0e2846de15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GbsChMfTbx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GbsChMfTbx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gflk3zNGGZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gflk3zNGGZ.verified.txt index f2b9fda0a7..53c951af2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gflk3zNGGZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gflk3zNGGZ.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gh9VzxAfwQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gh9VzxAfwQ.verified.txt index 0d980f61ea..61cb6d2ce7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gh9VzxAfwQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gh9VzxAfwQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gneqedonte.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gneqedonte.verified.txt index 2010c30afe..6bf494b5f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gneqedonte.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gneqedonte.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GqkxwENyM0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GqkxwENyM0.verified.txt index 08f5059178..9fb4892d29 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GqkxwENyM0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/GqkxwENyM0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gr0OHLjXmU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gr0OHLjXmU.verified.txt index f9eab2f193..50aa1c5362 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gr0OHLjXmU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gr0OHLjXmU.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gw3oYjlkA3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gw3oYjlkA3.verified.txt index 9e58ec04c2..c569869cc5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gw3oYjlkA3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Gw3oYjlkA3.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HEWBDtS4rd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HEWBDtS4rd.verified.txt index bac82ae1af..1f5d955c6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HEWBDtS4rd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HEWBDtS4rd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HUMS9Qwus4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HUMS9Qwus4.verified.txt index e8c9bea469..3e92b50586 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HUMS9Qwus4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HUMS9Qwus4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HgenO1WVxu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HgenO1WVxu.verified.txt index 5c152b4af4..e5b482392c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HgenO1WVxu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HgenO1WVxu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Hi7G9hl99c.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Hi7G9hl99c.verified.txt index e6715dbd55..6ac334683d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Hi7G9hl99c.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Hi7G9hl99c.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HyJgcfbHDZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HyJgcfbHDZ.verified.txt index d190a0ae0a..dd4e9e1c2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HyJgcfbHDZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HyJgcfbHDZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HzjTooszyT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HzjTooszyT.verified.txt index cb99b87822..a73a76b6d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HzjTooszyT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/HzjTooszyT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/I9QdnSKGsb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/I9QdnSKGsb.verified.txt index 508499715c..b1dd29ebdb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/I9QdnSKGsb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/I9QdnSKGsb.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ILL19WnisW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ILL19WnisW.verified.txt index 618d193426..f234929a03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ILL19WnisW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ILL19WnisW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IU2j2AGjJy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IU2j2AGjJy.verified.txt index 655f01e485..12557d14ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IU2j2AGjJy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IU2j2AGjJy.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IcUtLq2cFK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IcUtLq2cFK.verified.txt index f7b58ca72a..25ad3a6f27 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IcUtLq2cFK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IcUtLq2cFK.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IexqvlCaDQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IexqvlCaDQ.verified.txt index 85f908cbf7..b15911b9ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IexqvlCaDQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IexqvlCaDQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IgU7pSd2b3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IgU7pSd2b3.verified.txt index 2f05ea58d2..5136130882 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IgU7pSd2b3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IgU7pSd2b3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IhpvIgo996.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IhpvIgo996.verified.txt index e71de61d45..d92576f5de 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IhpvIgo996.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IhpvIgo996.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IpxlDCHwip.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IpxlDCHwip.verified.txt index 0dd1e9cd9e..517b1b4295 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IpxlDCHwip.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IpxlDCHwip.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IsRA5z9I1k.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IsRA5z9I1k.verified.txt index c492384c7c..d3134b9cff 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IsRA5z9I1k.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/IsRA5z9I1k.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Iwz4l9qDX0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Iwz4l9qDX0.verified.txt index 7c9baebeb0..0c5761c608 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Iwz4l9qDX0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Iwz4l9qDX0.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Ixz9CGLLpC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Ixz9CGLLpC.verified.txt index b2691ddfe9..de090f826a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Ixz9CGLLpC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Ixz9CGLLpC.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/J2x3kJ7Vuf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/J2x3kJ7Vuf.verified.txt index a563c17749..169e38d261 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/J2x3kJ7Vuf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/J2x3kJ7Vuf.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JFBRcrjEWE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JFBRcrjEWE.verified.txt index 468bd8a0d1..bd0a3cb7ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JFBRcrjEWE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JFBRcrjEWE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_None other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JH8bTC0lAN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JH8bTC0lAN.verified.txt index d30ac62eb4..b181321b5a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JH8bTC0lAN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JH8bTC0lAN.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JKGj0F7zh9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JKGj0F7zh9.verified.txt index fc232dc3db..86ee46d833 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JKGj0F7zh9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/JKGj0F7zh9.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jpd7SModHy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jpd7SModHy.verified.txt index 929d0bedd4..215031c625 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jpd7SModHy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jpd7SModHy.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jq9C6Uxpys.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jq9C6Uxpys.verified.txt index 04c4b764a3..5e5cb705aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jq9C6Uxpys.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Jq9C6Uxpys.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/K0hpgPcosp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/K0hpgPcosp.verified.txt index 36d9d1c774..1f4d5ed8ea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/K0hpgPcosp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/K0hpgPcosp.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KIyW41F6r6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KIyW41F6r6.verified.txt index 6d4be01d4d..4c3b91fce0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KIyW41F6r6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KIyW41F6r6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KSbl2FesJc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KSbl2FesJc.verified.txt index 3abde85d6f..6800f0f0f0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KSbl2FesJc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KSbl2FesJc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KcixvfqGrv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KcixvfqGrv.verified.txt index f912a2c5c7..ffa6dc0f3d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KcixvfqGrv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KcixvfqGrv.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KvZt0ajBE2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KvZt0ajBE2.verified.txt index dff771acc9..feb00f2d79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KvZt0ajBE2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KvZt0ajBE2.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KxI2Xy8cPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KxI2Xy8cPS.verified.txt index 06d48efd93..463951013b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KxI2Xy8cPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/KxI2Xy8cPS.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L2R0Fdeoqj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L2R0Fdeoqj.verified.txt index da2052e2d1..f3e2a1c8c9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L2R0Fdeoqj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L2R0Fdeoqj.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L5lrZ836KM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L5lrZ836KM.verified.txt index 25ee62330a..e757193c49 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L5lrZ836KM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/L5lrZ836KM.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LGZJJpm1uq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LGZJJpm1uq.verified.txt index 3a66a42470..ec5b4a6e5c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LGZJJpm1uq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LGZJJpm1uq.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LJUqwkNpMv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LJUqwkNpMv.verified.txt index fca1734edd..95dd9df48c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LJUqwkNpMv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LJUqwkNpMv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LW2tnWBeEw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LW2tnWBeEw.verified.txt index a88312e2e9..58147465d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LW2tnWBeEw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LW2tnWBeEw.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LpJxBQJvXV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LpJxBQJvXV.verified.txt index a274d3a10b..b29ef1fb60 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LpJxBQJvXV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LpJxBQJvXV.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LrT2a1VJPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LrT2a1VJPn.verified.txt index 20cf870b5f..144cb24815 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LrT2a1VJPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/LrT2a1VJPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M1t2y2UE8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M1t2y2UE8y.verified.txt index 244ecbd699..00ca9c90e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M1t2y2UE8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M1t2y2UE8y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M2bpxEl5IX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M2bpxEl5IX.verified.txt index 17f4d0c647..5171ca4593 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M2bpxEl5IX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M2bpxEl5IX.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M4NqZwdXw7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M4NqZwdXw7.verified.txt index 410f4c7105..12f7c7c48a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M4NqZwdXw7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M4NqZwdXw7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M7p8sbE3VI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M7p8sbE3VI.verified.txt index 26c00d12c1..8c40a0b22c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M7p8sbE3VI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/M7p8sbE3VI.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MY3XtRzu8x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MY3XtRzu8x.verified.txt index 5e9cd08925..aea2c55680 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MY3XtRzu8x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MY3XtRzu8x.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mb8N0iGKMY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mb8N0iGKMY.verified.txt index c14f239238..1349063634 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mb8N0iGKMY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mb8N0iGKMY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mm2925bgtf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mm2925bgtf.verified.txt index ea7da6edde..8d22aa20f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mm2925bgtf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mm2925bgtf.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mnn3wVQyPT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mnn3wVQyPT.verified.txt index b989061da6..176b87e7b0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mnn3wVQyPT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mnn3wVQyPT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mqb1Y0oeGG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mqb1Y0oeGG.verified.txt index ad35d9c29f..a8d26a44a1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mqb1Y0oeGG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Mqb1Y0oeGG.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MrYuHPMv8V.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MrYuHPMv8V.verified.txt index 036c6fed45..ebdfff36b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MrYuHPMv8V.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/MrYuHPMv8V.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NA3ZnOKVDG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NA3ZnOKVDG.verified.txt index 7203d135dd..132279eb17 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NA3ZnOKVDG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NA3ZnOKVDG.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NBM2jrtjUt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NBM2jrtjUt.verified.txt index ac8de03b09..e8001ae5ea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NBM2jrtjUt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NBM2jrtjUt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NDycAe2PMg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NDycAe2PMg.verified.txt index 7911bd5e5e..accbdb3a87 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NDycAe2PMg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NDycAe2PMg.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NG5PKVM1i8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NG5PKVM1i8.verified.txt index 1d1e0916e5..5f2f0f0c7d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NG5PKVM1i8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NG5PKVM1i8.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NGOTNmWxHE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NGOTNmWxHE.verified.txt index e7642d4624..818d73642b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NGOTNmWxHE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NGOTNmWxHE.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NWdbHdqTCk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NWdbHdqTCk.verified.txt index d43bada4be..4d01dff006 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NWdbHdqTCk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NWdbHdqTCk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NactUp7zA8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NactUp7zA8.verified.txt index ac9597e3da..d523b34ab5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NactUp7zA8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/NactUp7zA8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O0BEOb5WWh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O0BEOb5WWh.verified.txt index 470006acda..9d52798eaa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O0BEOb5WWh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O0BEOb5WWh.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O4k87fg44n.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O4k87fg44n.verified.txt index 45c0fcecc2..a600cf084a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O4k87fg44n.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/O4k87fg44n.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OGgQrxiJWS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OGgQrxiJWS.verified.txt index b1310f8cae..3e9b3dc101 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OGgQrxiJWS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OGgQrxiJWS.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OYbSWpy3QY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OYbSWpy3QY.verified.txt index 8b975133a7..9d50b7ccf5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OYbSWpy3QY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OYbSWpy3QY.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OdHZSaUec6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OdHZSaUec6.verified.txt index 5d94472e0e..a4316122ae 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OdHZSaUec6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OdHZSaUec6.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OjTi3HCxBo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OjTi3HCxBo.verified.txt index 0fc232a183..eb35c574c5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OjTi3HCxBo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OjTi3HCxBo.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OmZRklyqlE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OmZRklyqlE.verified.txt index 2b3a0bc8a6..f8a41079cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OmZRklyqlE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OmZRklyqlE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OpqpTR5Cfw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OpqpTR5Cfw.verified.txt index f1e853bc57..8e0ad9cabb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OpqpTR5Cfw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OpqpTR5Cfw.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Orfrz26F6p.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Orfrz26F6p.verified.txt index f0004c4619..a744439305 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Orfrz26F6p.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Orfrz26F6p.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OvvLaH9ciz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OvvLaH9ciz.verified.txt index 166e406b35..6cc56fad3f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OvvLaH9ciz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/OvvLaH9ciz.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/P38PxflHyU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/P38PxflHyU.verified.txt index ab105e770e..f236cd48af 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/P38PxflHyU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/P38PxflHyU.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PGGOpb6LGM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PGGOpb6LGM.verified.txt index c4079d8cc1..3fefa4ecca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PGGOpb6LGM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PGGOpb6LGM.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PTpzjKquN2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PTpzjKquN2.verified.txt index f870655929..ef61e28397 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PTpzjKquN2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PTpzjKquN2.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PXabnXFmkt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PXabnXFmkt.verified.txt index 9056824577..1d51c414ad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PXabnXFmkt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PXabnXFmkt.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PoaNRmbqSN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PoaNRmbqSN.verified.txt index 2ef4e1e93c..f0b7cc2f55 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PoaNRmbqSN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PoaNRmbqSN.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PotQ6D23Ho.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PotQ6D23Ho.verified.txt index dd662509b8..bfc411d616 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PotQ6D23Ho.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PotQ6D23Ho.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PvSh3xfKNr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PvSh3xfKNr.verified.txt index 9a22048dee..c75345a6b4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PvSh3xfKNr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/PvSh3xfKNr.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pw9SxJyXzg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pw9SxJyXzg.verified.txt index 2f108a48c7..d95ca7d885 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pw9SxJyXzg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pw9SxJyXzg.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pzgea5Ve0w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pzgea5Ve0w.verified.txt index 3c94d873c1..935517fd83 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pzgea5Ve0w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Pzgea5Ve0w.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q0Mq3bhsum.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q0Mq3bhsum.verified.txt index c23a94b0f8..0a4d5a3cc7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q0Mq3bhsum.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q0Mq3bhsum.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q8OFEgFlen.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q8OFEgFlen.verified.txt index 8b0f23f0a6..125cc2ed2f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q8OFEgFlen.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Q8OFEgFlen.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QEUSa16DTz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QEUSa16DTz.verified.txt index dd774eebbf..ba395124da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QEUSa16DTz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QEUSa16DTz.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QFbd4pSPuE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QFbd4pSPuE.verified.txt index 7cd9fad1c9..16be214735 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QFbd4pSPuE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QFbd4pSPuE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QIBhW6m5CJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QIBhW6m5CJ.verified.txt index ba3b391cc1..82253b5b99 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QIBhW6m5CJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QIBhW6m5CJ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QK0pbKa6cP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QK0pbKa6cP.verified.txt index e5a5f563bd..284df1a624 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QK0pbKa6cP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QK0pbKa6cP.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QKQfFAiHK3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QKQfFAiHK3.verified.txt index 7e7c599c24..adbbae7dd5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QKQfFAiHK3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QKQfFAiHK3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QP1xf9TOLm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QP1xf9TOLm.verified.txt index 22c29357e0..43b5795313 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QP1xf9TOLm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QP1xf9TOLm.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QS5g7tNsec.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QS5g7tNsec.verified.txt index 6bd036afcc..ab1c5da3b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QS5g7tNsec.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QS5g7tNsec.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QSjyO91mPO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QSjyO91mPO.verified.txt index 43a0482c33..5b42717879 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QSjyO91mPO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QSjyO91mPO.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QXgcj72buY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QXgcj72buY.verified.txt index e038349646..fbb2659041 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QXgcj72buY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QXgcj72buY.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYiOTtsnlp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYiOTtsnlp.verified.txt index bcb76428d4..2ba0dce34d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYiOTtsnlp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYiOTtsnlp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYjaeKkCrb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYjaeKkCrb.verified.txt index 503350f02d..ed8e687b12 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYjaeKkCrb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYjaeKkCrb.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYpxxqI6dm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYpxxqI6dm.verified.txt index 787ce5b076..9e2aacef66 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYpxxqI6dm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QYpxxqI6dm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qhxij72iOv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qhxij72iOv.verified.txt index 619d9b7262..6517bffcf1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qhxij72iOv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qhxij72iOv.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qln8PADpKp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qln8PADpKp.verified.txt index d6b3dfbd80..60139d8fde 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qln8PADpKp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qln8PADpKp.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QltroljHXp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QltroljHXp.verified.txt index f5fdc89beb..1af313ee44 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QltroljHXp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/QltroljHXp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qn3vbsWr8n.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qn3vbsWr8n.verified.txt index 85b11b7706..cd09bca343 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qn3vbsWr8n.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Qn3vbsWr8n.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R0E5Jw9CA1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R0E5Jw9CA1.verified.txt index 5bd912ce56..506a32d4f8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R0E5Jw9CA1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R0E5Jw9CA1.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R1tSxHqFWR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R1tSxHqFWR.verified.txt index 2faae67513..d8db8595cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R1tSxHqFWR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/R1tSxHqFWR.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RFydcSrrCY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RFydcSrrCY.verified.txt index 58cd2914c9..02202f4491 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RFydcSrrCY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RFydcSrrCY.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RSvHJzWcVx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RSvHJzWcVx.verified.txt index dc47b09640..8763852f02 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RSvHJzWcVx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RSvHJzWcVx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RTVo1L1S2u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RTVo1L1S2u.verified.txt index 1dbad46cfa..4bdc459529 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RTVo1L1S2u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RTVo1L1S2u.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RWJ3Sfbkvu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RWJ3Sfbkvu.verified.txt index 6f0e6692e7..0012dd4f82 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RWJ3Sfbkvu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/RWJ3Sfbkvu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rb2WW2LEIf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rb2WW2LEIf.verified.txt index cd98593abe..70f298db50 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rb2WW2LEIf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rb2WW2LEIf.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rj61S1p4Cs.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rj61S1p4Cs.verified.txt index 5d288d2c47..b201329222 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rj61S1p4Cs.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Rj61S1p4Cs.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/S6kTKimLen.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/S6kTKimLen.verified.txt index 9a00b02fc9..71d698e5b2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/S6kTKimLen.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/S6kTKimLen.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SEofJbUjIt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SEofJbUjIt.verified.txt index 02f1265f64..1db112bc05 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SEofJbUjIt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SEofJbUjIt.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SGXzWPLMoG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SGXzWPLMoG.verified.txt index 9ce7827db3..0260f347a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SGXzWPLMoG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SGXzWPLMoG.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SKiA26rgZo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SKiA26rgZo.verified.txt index 69a838d666..0745a57791 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SKiA26rgZo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SKiA26rgZo.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/STSsLEMKD8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/STSsLEMKD8.verified.txt index 992d1a3a9b..70c192d749 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/STSsLEMKD8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/STSsLEMKD8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SaRnK4FOpb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SaRnK4FOpb.verified.txt index 752d48ed8b..80270ef822 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SaRnK4FOpb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SaRnK4FOpb.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ShlrzFT0jF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ShlrzFT0jF.verified.txt index fa7dd8407d..deba5dba29 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ShlrzFT0jF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ShlrzFT0jF.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SjBV0t0Bz5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SjBV0t0Bz5.verified.txt index 5bad0bfdb8..f852219d6d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SjBV0t0Bz5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SjBV0t0Bz5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SoTNs8IENd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SoTNs8IENd.verified.txt index 46b55d4ff3..093e6e14cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SoTNs8IENd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/SoTNs8IENd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/St5iPsOfp9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/St5iPsOfp9.verified.txt index a5c810ea67..a049ece532 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/St5iPsOfp9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/St5iPsOfp9.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Syy4m946O7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Syy4m946O7.verified.txt index ee0885b117..0f9a20d8b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Syy4m946O7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Syy4m946O7.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/T97m7kTtiO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/T97m7kTtiO.verified.txt index 9f2dc9f9ac..7c7d1222ab 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/T97m7kTtiO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/T97m7kTtiO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TLejc0vivf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TLejc0vivf.verified.txt index 32478c9158..ed4ffb6352 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TLejc0vivf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TLejc0vivf.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TMSWRtjLNE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TMSWRtjLNE.verified.txt index 85b3c44a2d..adc2dbe63d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TMSWRtjLNE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TMSWRtjLNE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Thad6nEDD5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Thad6nEDD5.verified.txt index 989e21660e..56d7bfbfec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Thad6nEDD5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Thad6nEDD5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TxGznMqzl8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TxGznMqzl8.verified.txt index 8033c704af..f4423f3ea0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TxGznMqzl8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/TxGznMqzl8.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Tzj6ixyhFT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Tzj6ixyhFT.verified.txt index 0dfc53c0fc..c5a50d0351 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Tzj6ixyhFT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Tzj6ixyhFT.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/U1kmAlbHnW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/U1kmAlbHnW.verified.txt index 64448ace95..3727a657d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/U1kmAlbHnW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/U1kmAlbHnW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UGO2JRZLwy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UGO2JRZLwy.verified.txt index 581703ee47..a93770b1d6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UGO2JRZLwy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UGO2JRZLwy.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UK13zlv5RG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UK13zlv5RG.verified.txt index 5e05381ac9..39eca263e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UK13zlv5RG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UK13zlv5RG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UMDF9cNbZt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UMDF9cNbZt.verified.txt index bdf91b9dd3..6be16ca039 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UMDF9cNbZt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UMDF9cNbZt.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UPBfoIRiMu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UPBfoIRiMu.verified.txt index a043ea6483..36372a2ee4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UPBfoIRiMu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UPBfoIRiMu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UY4TVAzonK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UY4TVAzonK.verified.txt index 19c15b22e9..aabdc4b289 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UY4TVAzonK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UY4TVAzonK.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UcYHMaBSbR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UcYHMaBSbR.verified.txt index c1bdab8e0a..a6e93ea185 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UcYHMaBSbR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UcYHMaBSbR.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UfU9I8I2y8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UfU9I8I2y8.verified.txt index b22255c313..4f0bc97b03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UfU9I8I2y8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UfU9I8I2y8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uhx1npmK9K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uhx1npmK9K.verified.txt index 02bba367ec..f34fa37f0f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uhx1npmK9K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uhx1npmK9K.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uo93eWjnAg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uo93eWjnAg.verified.txt index 82a903e6e6..09da0d5dae 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uo93eWjnAg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Uo93eWjnAg.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UoFOACfBnq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UoFOACfBnq.verified.txt index 33170bd0a5..8140d9a318 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UoFOACfBnq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/UoFOACfBnq.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/V4MmKA6xMl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/V4MmKA6xMl.verified.txt index f681063c03..f86ca1fae9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/V4MmKA6xMl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/V4MmKA6xMl.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VBnnCDpbsi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VBnnCDpbsi.verified.txt index 25ed4defb2..9e50063be0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VBnnCDpbsi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VBnnCDpbsi.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaKKm35S95.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaKKm35S95.verified.txt index 044545fdb5..784b7f3401 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaKKm35S95.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaKKm35S95.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaeumdU1ie.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaeumdU1ie.verified.txt index 1dd739c154..42c2de2c1f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaeumdU1ie.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VaeumdU1ie.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VfmDAdXzKM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VfmDAdXzKM.verified.txt index 373c624627..5a4fe97c2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VfmDAdXzKM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VfmDAdXzKM.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VhYMLsMLrL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VhYMLsMLrL.verified.txt index 6d2aabf9ea..c58cb70378 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VhYMLsMLrL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VhYMLsMLrL.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VvAJ9zwTgL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VvAJ9zwTgL.verified.txt index 8512338559..60f1c90f2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VvAJ9zwTgL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VvAJ9zwTgL.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VxhYgsyVWB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VxhYgsyVWB.verified.txt index 31e6bd2175..0a8a917d69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VxhYgsyVWB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/VxhYgsyVWB.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W2jax7Jp8j.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W2jax7Jp8j.verified.txt index 595db0fa3b..c4f4adbb4a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W2jax7Jp8j.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W2jax7Jp8j.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W9Iz8LDSU6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W9Iz8LDSU6.verified.txt index 4e3ba3258a..4b1d502113 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W9Iz8LDSU6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/W9Iz8LDSU6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WEmd7N8AWm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WEmd7N8AWm.verified.txt index d3abc2bec4..cc1fff1db6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WEmd7N8AWm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WEmd7N8AWm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WHpY18dDBC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WHpY18dDBC.verified.txt index 7e1c46a44c..78184fa6b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WHpY18dDBC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WHpY18dDBC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WMVLzBfTuM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WMVLzBfTuM.verified.txt index 3af8e57ddb..a1adcc0522 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WMVLzBfTuM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WMVLzBfTuM.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WRw2ROnY9A.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WRw2ROnY9A.verified.txt index fb449a88d0..870838ac53 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WRw2ROnY9A.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WRw2ROnY9A.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WV6ag2NqHY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WV6ag2NqHY.verified.txt index b79581ec75..d67e377fcc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WV6ag2NqHY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WV6ag2NqHY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WXk0jNegxG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WXk0jNegxG.verified.txt index b9ac316734..986b9a79a5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WXk0jNegxG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WXk0jNegxG.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WhPLsKKG2Q.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WhPLsKKG2Q.verified.txt index 4be4e65311..05503be40c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WhPLsKKG2Q.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WhPLsKKG2Q.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WvGMnz5BEv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WvGMnz5BEv.verified.txt index 27dafee9b2..a29ee3db61 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WvGMnz5BEv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WvGMnz5BEv.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WzWV0pZmd4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WzWV0pZmd4.verified.txt index a45fcf0eea..bedec76c3f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WzWV0pZmd4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/WzWV0pZmd4.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X1X2lIs5BY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X1X2lIs5BY.verified.txt index 884d27180a..29c0fa331c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X1X2lIs5BY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X1X2lIs5BY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X2OeoMxfYQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X2OeoMxfYQ.verified.txt index 43746b999f..40e782c224 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X2OeoMxfYQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/X2OeoMxfYQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XMSN7TAOzP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XMSN7TAOzP.verified.txt index 2b7c68e02f..1ceff0c177 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XMSN7TAOzP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XMSN7TAOzP.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XSCVXLUIBn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XSCVXLUIBn.verified.txt index 4157bde647..099ef44941 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XSCVXLUIBn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XSCVXLUIBn.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XdmgypPx1z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XdmgypPx1z.verified.txt index 0e16ef2921..c5058bea98 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XdmgypPx1z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XdmgypPx1z.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XrmNw9ZJJ4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XrmNw9ZJJ4.verified.txt index 75d74d5c6e..4130dd3a32 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XrmNw9ZJJ4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XrmNw9ZJJ4.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XuWvEBMI74.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XuWvEBMI74.verified.txt index c619d09eb3..7fce5f12a5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XuWvEBMI74.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/XuWvEBMI74.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y2FIAvdeJd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y2FIAvdeJd.verified.txt index 1fe6749f00..32982e3c15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y2FIAvdeJd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y2FIAvdeJd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y953PXGMpp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y953PXGMpp.verified.txt index fc8b1613cf..6e912a471d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y953PXGMpp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Y953PXGMpp.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YGPrGOzJ1Z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YGPrGOzJ1Z.verified.txt index bd76494eb8..708ae4a79a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YGPrGOzJ1Z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YGPrGOzJ1Z.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YH8EVIXD2t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YH8EVIXD2t.verified.txt index 631d16bdef..51b33a6f9e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YH8EVIXD2t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YH8EVIXD2t.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YLETiC8egS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YLETiC8egS.verified.txt index 5af7f20411..91545e90f6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YLETiC8egS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YLETiC8egS.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YQ4C8lGTTp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YQ4C8lGTTp.verified.txt index 22620264aa..d8914f3bd5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YQ4C8lGTTp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YQ4C8lGTTp.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YWmAyKOz6K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YWmAyKOz6K.verified.txt index cba6e3f8ff..bade53127e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YWmAyKOz6K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YWmAyKOz6K.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YcFI3Qezx8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YcFI3Qezx8.verified.txt index e879e05531..cad7ecf3fd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YcFI3Qezx8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YcFI3Qezx8.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YdJV3xN5f2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YdJV3xN5f2.verified.txt index f16823b38d..199918e5c4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YdJV3xN5f2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YdJV3xN5f2.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_None other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YmajZMirSq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YmajZMirSq.verified.txt index dd1b721b31..51ead5e810 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YmajZMirSq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YmajZMirSq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YsTXLEcU9e.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YsTXLEcU9e.verified.txt index 895c5db8e3..903db86483 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YsTXLEcU9e.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/YsTXLEcU9e.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Z8Pm73nJJG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Z8Pm73nJJG.verified.txt index 5f87cc53d6..0b7f1fa42f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Z8Pm73nJJG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/Z8Pm73nJJG.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZeQaA7MiO7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZeQaA7MiO7.verified.txt index 0e638b4fa0..d4ea6dbda6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZeQaA7MiO7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZeQaA7MiO7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZthSFYIJGF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZthSFYIJGF.verified.txt index 9901f55892..10e52b2857 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZthSFYIJGF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ZthSFYIJGF.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a5oBj4NMck.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a5oBj4NMck.verified.txt index b58861ceba..dde150ad14 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a5oBj4NMck.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a5oBj4NMck.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a9ZatkB5Rh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a9ZatkB5Rh.verified.txt index 65e5e95a61..23b79c1ddc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a9ZatkB5Rh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/a9ZatkB5Rh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/aXvLbB33o2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/aXvLbB33o2.verified.txt index d9dd5b3a0c..9d421015db 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/aXvLbB33o2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/aXvLbB33o2.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/adj4aYHt0N.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/adj4aYHt0N.verified.txt index 15f2294a7f..7fe63ec1f4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/adj4aYHt0N.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/adj4aYHt0N.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/afL8pQx47b.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/afL8pQx47b.verified.txt index 4176541eb4..7b228ae663 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/afL8pQx47b.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/afL8pQx47b.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ah4BJRkac6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ah4BJRkac6.verified.txt index 1934f15e62..01aa9a3c17 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ah4BJRkac6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ah4BJRkac6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ahssFnjtxv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ahssFnjtxv.verified.txt index 06bfbe5118..b166b102e5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ahssFnjtxv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ahssFnjtxv.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/avbmj03kZz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/avbmj03kZz.verified.txt index 05063f21af..03a331e792 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/avbmj03kZz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/avbmj03kZz.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/azYqyDbI89.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/azYqyDbI89.verified.txt index 714bf92f99..17e26f049d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/azYqyDbI89.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/azYqyDbI89.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/b1L0gWBHIr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/b1L0gWBHIr.verified.txt index b1d42ed22b..29a3c02b8d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/b1L0gWBHIr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/b1L0gWBHIr.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bCdroQZubL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bCdroQZubL.verified.txt index 74def340c9..aa921e98ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bCdroQZubL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bCdroQZubL.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bGXLKzz8DB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bGXLKzz8DB.verified.txt index 6fbf5383f6..2f779948ad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bGXLKzz8DB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bGXLKzz8DB.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bXddhCA2bk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bXddhCA2bk.verified.txt index 4cbd130162..3e1d13f63b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bXddhCA2bk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bXddhCA2bk.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bbZ1hzo62z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bbZ1hzo62z.verified.txt index 718f90c129..61c73bf4f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bbZ1hzo62z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bbZ1hzo62z.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bkRaWa4KBI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bkRaWa4KBI.verified.txt index 15878dc8ef..83efbf94d1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bkRaWa4KBI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/bkRaWa4KBI.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c28q0sGcCL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c28q0sGcCL.verified.txt index d6143a2519..afb3a23aef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c28q0sGcCL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c28q0sGcCL.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c3TT09DnKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c3TT09DnKl.verified.txt index 6063119f09..7aebab58b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c3TT09DnKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/c3TT09DnKl.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCYxjmht9t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCYxjmht9t.verified.txt index cfd80950a6..0e93aa6558 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCYxjmht9t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCYxjmht9t.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCwywzjRWf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCwywzjRWf.verified.txt index f20e3631fd..732f1d988f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCwywzjRWf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cCwywzjRWf.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ce82vTL7WE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ce82vTL7WE.verified.txt index c91bc434fc..fe49c0cd87 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ce82vTL7WE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ce82vTL7WE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cgyb3Z1MNu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cgyb3Z1MNu.verified.txt index 6cda8d68f6..06994eb8da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cgyb3Z1MNu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cgyb3Z1MNu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cjKn08z80L.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cjKn08z80L.verified.txt index c17d08dd7b..8c0f41f203 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cjKn08z80L.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cjKn08z80L.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ckL3tklASo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ckL3tklASo.verified.txt index 976d75a811..783ee43f25 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ckL3tklASo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ckL3tklASo.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cweFBjQXPi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cweFBjQXPi.verified.txt index bdc6f1a575..c77291046b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cweFBjQXPi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/cweFBjQXPi.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dAgWjdgDUL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dAgWjdgDUL.verified.txt index fff41d091b..5be33e2009 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dAgWjdgDUL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dAgWjdgDUL.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dQcYTBwxmD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dQcYTBwxmD.verified.txt index 3996c305ec..b8b2fc83c6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dQcYTBwxmD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dQcYTBwxmD.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dTLky56KCx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dTLky56KCx.verified.txt index 5728904c20..0df1f217cb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dTLky56KCx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dTLky56KCx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dctvtQKUed.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dctvtQKUed.verified.txt index 1fc15078df..e34c1a1655 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dctvtQKUed.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dctvtQKUed.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dlliqRFG8F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dlliqRFG8F.verified.txt index b087f3a620..f5e17458cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dlliqRFG8F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dlliqRFG8F.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/doB99AkL6u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/doB99AkL6u.verified.txt index 1c2f0dd484..d91a635044 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/doB99AkL6u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/doB99AkL6u.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dozvtqmXTf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dozvtqmXTf.verified.txt index bc95ee277c..2f0288eaab 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dozvtqmXTf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/dozvtqmXTf.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/e5w3qMBSUV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/e5w3qMBSUV.verified.txt index 8a3a1cb9c2..10f1ed940d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/e5w3qMBSUV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/e5w3qMBSUV.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eC9vCgYOWk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eC9vCgYOWk.verified.txt index 35d153c3b4..56a59bd464 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eC9vCgYOWk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eC9vCgYOWk.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGA5iLYrBa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGA5iLYrBa.verified.txt index b1804f5bc2..1d0ad46776 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGA5iLYrBa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGA5iLYrBa.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGknqt2HLN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGknqt2HLN.verified.txt index 83edd53622..447c870d1c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGknqt2HLN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eGknqt2HLN.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eMTuX13uJG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eMTuX13uJG.verified.txt index 7704953aa4..811fc3e453 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eMTuX13uJG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/eMTuX13uJG.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/edQRdUJhOW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/edQRdUJhOW.verified.txt index ca01604d25..5ebb945a65 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/edQRdUJhOW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/edQRdUJhOW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ejIFJCoUNA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ejIFJCoUNA.verified.txt index acf6cf45ec..68ba30c373 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ejIFJCoUNA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ejIFJCoUNA.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/evEmsereRx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/evEmsereRx.verified.txt index 1f5f30f0c6..a862ee3c86 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/evEmsereRx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/evEmsereRx.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezHOpJ7fUj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezHOpJ7fUj.verified.txt index 4e963b974e..5278e11d63 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezHOpJ7fUj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezHOpJ7fUj.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezRUaCxvJz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezRUaCxvJz.verified.txt index 5c5675bc14..8e9ed95aec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezRUaCxvJz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ezRUaCxvJz.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f33sdUZvTD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f33sdUZvTD.verified.txt index f0893e2c53..5c42d29294 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f33sdUZvTD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f33sdUZvTD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f4E4rb8ZNP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f4E4rb8ZNP.verified.txt index 948228c525..86063c5be5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f4E4rb8ZNP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f4E4rb8ZNP.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8BEBcAxXH.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8BEBcAxXH.verified.txt index d33117c775..934c2b8c95 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8BEBcAxXH.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8BEBcAxXH.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8GfgtBpEy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8GfgtBpEy.verified.txt index de284d73e1..ef991bc136 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8GfgtBpEy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/f8GfgtBpEy.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fBsIsd9NEC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fBsIsd9NEC.verified.txt index 44504b07eb..21185d00f1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fBsIsd9NEC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fBsIsd9NEC.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fEVDUjY0o4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fEVDUjY0o4.verified.txt index a49f73ccee..dc682cd22e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fEVDUjY0o4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fEVDUjY0o4.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fNBZi3EAxz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fNBZi3EAxz.verified.txt index 3dfc1667d8..5321a459f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fNBZi3EAxz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fNBZi3EAxz.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fTe1zpBEKG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fTe1zpBEKG.verified.txt index 66347c0914..62d0fdd886 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fTe1zpBEKG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fTe1zpBEKG.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fbY411cXaQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fbY411cXaQ.verified.txt index 004d03e19d..21c3d25205 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fbY411cXaQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fbY411cXaQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fe1G3hjBI7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fe1G3hjBI7.verified.txt index 96236a7757..6a9b414ffd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fe1G3hjBI7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fe1G3hjBI7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fiHEMJtEsE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fiHEMJtEsE.verified.txt index 86c3bc526e..057fc3097f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fiHEMJtEsE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/fiHEMJtEsE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftCvNHLbGt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftCvNHLbGt.verified.txt index 381eb7cf70..607a2b4d14 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftCvNHLbGt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftCvNHLbGt.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftvGXa4dWE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftvGXa4dWE.verified.txt index 5bda56ab2a..62f2d7af9d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftvGXa4dWE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ftvGXa4dWE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/g32LIqIkv7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/g32LIqIkv7.verified.txt index d9bddbd627..a206a32e2c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/g32LIqIkv7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/g32LIqIkv7.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gKDRuR0huT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gKDRuR0huT.verified.txt index e1dcf8e043..35fd177cd3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gKDRuR0huT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gKDRuR0huT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gYgXvUXMCp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gYgXvUXMCp.verified.txt index 4c5257c484..70e71601c8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gYgXvUXMCp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gYgXvUXMCp.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ga0wMsAonO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ga0wMsAonO.verified.txt index b5d02ab080..48cb0f412d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ga0wMsAonO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ga0wMsAonO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gkp9EIvkaa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gkp9EIvkaa.verified.txt index fd73eadf9c..9de842c25c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gkp9EIvkaa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gkp9EIvkaa.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gtkWuS4mxC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gtkWuS4mxC.verified.txt index 0d71c7d79a..14919e5220 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gtkWuS4mxC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gtkWuS4mxC.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gzmrfxjvCP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gzmrfxjvCP.verified.txt index 9dcdb286b7..c6874e780e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gzmrfxjvCP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/gzmrfxjvCP.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h4SvTp4jSu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h4SvTp4jSu.verified.txt index e0ea6bd0be..ceac2e1248 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h4SvTp4jSu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h4SvTp4jSu.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h7ClEQLrXD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h7ClEQLrXD.verified.txt index 8fdc933c8d..6368829f48 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h7ClEQLrXD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/h7ClEQLrXD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hFwcREtVxI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hFwcREtVxI.verified.txt index ae2def0166..b8fb83301c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hFwcREtVxI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hFwcREtVxI.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hM00cICNF7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hM00cICNF7.verified.txt index ad5c198149..a34be29d06 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hM00cICNF7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hM00cICNF7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hhqwRoieBm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hhqwRoieBm.verified.txt index 3f215b1fde..acd2ddfd85 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hhqwRoieBm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hhqwRoieBm.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hiuywL54ka.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hiuywL54ka.verified.txt index 08db8389f2..53fe56eed7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hiuywL54ka.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hiuywL54ka.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hjyaHa29Jz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hjyaHa29Jz.verified.txt index a2fd418fff..be28767631 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hjyaHa29Jz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hjyaHa29Jz.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hkwUcdbmgj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hkwUcdbmgj.verified.txt index a341b50888..4d89473e45 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hkwUcdbmgj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hkwUcdbmgj.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hndLiJbd4Z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hndLiJbd4Z.verified.txt index 6852bd88fa..646f37d398 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hndLiJbd4Z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hndLiJbd4Z.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hxY0NP06cd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hxY0NP06cd.verified.txt index 38f2c1c238..27fafd6923 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hxY0NP06cd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/hxY0NP06cd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i1n2cAvbLN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i1n2cAvbLN.verified.txt index 1fac1be1a2..7ac905ac30 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i1n2cAvbLN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i1n2cAvbLN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i53vKZdcnE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i53vKZdcnE.verified.txt index 5647912a4d..31c67c494c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i53vKZdcnE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/i53vKZdcnE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iEIoC0JIq5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iEIoC0JIq5.verified.txt index ff14c16edb..8e11c5031d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iEIoC0JIq5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iEIoC0JIq5.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iHYaBR6vwE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iHYaBR6vwE.verified.txt index 9125b13744..5b0af49d69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iHYaBR6vwE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iHYaBR6vwE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iLpbKMC6Xx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iLpbKMC6Xx.verified.txt index f4107b05d9..79a86d9771 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iLpbKMC6Xx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iLpbKMC6Xx.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iRFBrriNwb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iRFBrriNwb.verified.txt index 8a2cc81335..5a7ff14c84 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iRFBrriNwb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iRFBrriNwb.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iS1nna8CAC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iS1nna8CAC.verified.txt index 519c7748b3..ff140c53ac 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iS1nna8CAC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iS1nna8CAC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iZ7ClMlKcC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iZ7ClMlKcC.verified.txt index f8fe91731a..3ecb296b0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iZ7ClMlKcC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iZ7ClMlKcC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iamZENi5GA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iamZENi5GA.verified.txt index a7d6e25496..cc2e7ae051 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iamZENi5GA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iamZENi5GA.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ilzLRsLJfo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ilzLRsLJfo.verified.txt index 84262b3e9b..e74d08644e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ilzLRsLJfo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ilzLRsLJfo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iq57t3NYGm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iq57t3NYGm.verified.txt index b60b6d8d4b..592753b4dc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iq57t3NYGm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/iq57t3NYGm.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/isLc6nM5Tv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/isLc6nM5Tv.verified.txt index a489a5de07..faa52b1f80 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/isLc6nM5Tv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/isLc6nM5Tv.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ixnB9gKHUC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ixnB9gKHUC.verified.txt index d05e7ae6c2..40a500db3a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ixnB9gKHUC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ixnB9gKHUC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/j8yvULf0nt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/j8yvULf0nt.verified.txt index 64e62bc761..5599235444 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/j8yvULf0nt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/j8yvULf0nt.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jGRIn427Rq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jGRIn427Rq.verified.txt index 0645228655..3415e34802 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jGRIn427Rq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jGRIn427Rq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jLSQYXoUZ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jLSQYXoUZ7.verified.txt index d74e28cdaa..9185adf62f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jLSQYXoUZ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jLSQYXoUZ7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ja7E8gtQYK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ja7E8gtQYK.verified.txt index e307c1f62b..6f28ef2bd8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ja7E8gtQYK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ja7E8gtQYK.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ji3RViDCgB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ji3RViDCgB.verified.txt index a25e64e9bc..78ddd456b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ji3RViDCgB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ji3RViDCgB.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jvXDKz4NAu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jvXDKz4NAu.verified.txt index adf6917146..5f3018c817 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jvXDKz4NAu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/jvXDKz4NAu.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/k1zq0pGwsL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/k1zq0pGwsL.verified.txt index ded9414d98..c9bafa11de 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/k1zq0pGwsL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/k1zq0pGwsL.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kHkNlfdv8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kHkNlfdv8y.verified.txt index 9171c47580..d16ed3075a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kHkNlfdv8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kHkNlfdv8y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kOeYQKLiTt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kOeYQKLiTt.verified.txt index 48a7ebff6b..a2609d1be1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kOeYQKLiTt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kOeYQKLiTt.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kPeQkL6w72.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kPeQkL6w72.verified.txt index ba5cd15695..eaa37bb2be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kPeQkL6w72.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/kPeQkL6w72.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ki9j6Vpq22.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ki9j6Vpq22.verified.txt index 075ddd882a..4c8e7a5f45 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ki9j6Vpq22.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ki9j6Vpq22.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/knLQXzoEom.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/knLQXzoEom.verified.txt index dce8644177..20fe1fb037 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/knLQXzoEom.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/knLQXzoEom.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ko4vyEOPdE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ko4vyEOPdE.verified.txt index d818eb4295..c1c7693663 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ko4vyEOPdE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ko4vyEOPdE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l1jw2uJGZg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l1jw2uJGZg.verified.txt index 1fdb7e1834..0add473573 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l1jw2uJGZg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l1jw2uJGZg.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l4e6XelAgq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l4e6XelAgq.verified.txt index ec1d3c2c86..1265867198 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l4e6XelAgq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l4e6XelAgq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l9FvsWjdUQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l9FvsWjdUQ.verified.txt index 7aa4462762..b5aae9464b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l9FvsWjdUQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/l9FvsWjdUQ.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lCFOThKDBj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lCFOThKDBj.verified.txt index 1a9abfb692..0a3331c4d3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lCFOThKDBj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lCFOThKDBj.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lDSTWX4oqG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lDSTWX4oqG.verified.txt index c26f8a0916..3997ec9aa5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lDSTWX4oqG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lDSTWX4oqG.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lE9ybfWQrn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lE9ybfWQrn.verified.txt index 6c51f6b417..1a0c34642d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lE9ybfWQrn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lE9ybfWQrn.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lLir8SMe7M.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lLir8SMe7M.verified.txt index b2606c2bcc..2549eda18e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lLir8SMe7M.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lLir8SMe7M.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lQc2P8tXnM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lQc2P8tXnM.verified.txt index 24c7cdc367..bd6c59c1c4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lQc2P8tXnM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lQc2P8tXnM.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lbeQldPn11.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lbeQldPn11.verified.txt index 2e8e5b49ed..459952ec2e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lbeQldPn11.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lbeQldPn11.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lreSkFcGTB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lreSkFcGTB.verified.txt index 315411a133..826d9fc88c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lreSkFcGTB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lreSkFcGTB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lxjsvrr5pZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lxjsvrr5pZ.verified.txt index 9c58f05931..50959c9c03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lxjsvrr5pZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/lxjsvrr5pZ.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/m8oLii3zRi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/m8oLii3zRi.verified.txt index 2266cb9ac2..f786b5df8c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/m8oLii3zRi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/m8oLii3zRi.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mD8MIMFKXL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mD8MIMFKXL.verified.txt index cbe420fefa..45e3f765ca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mD8MIMFKXL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mD8MIMFKXL.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mEk9VnsQLA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mEk9VnsQLA.verified.txt index b04804a11b..7ca1a415be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mEk9VnsQLA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mEk9VnsQLA.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mJ6I1elEKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mJ6I1elEKl.verified.txt index 7789626fb0..96ac50d6e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mJ6I1elEKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mJ6I1elEKl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mKU2FtqWwc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mKU2FtqWwc.verified.txt index d7af3d2b82..446b8bc710 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mKU2FtqWwc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mKU2FtqWwc.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mMxWk4g3rN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mMxWk4g3rN.verified.txt index 4baedcf448..b921f169c1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mMxWk4g3rN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mMxWk4g3rN.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mOEBZdBIAJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mOEBZdBIAJ.verified.txt index 5f3118f463..99a6e21051 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mOEBZdBIAJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/mOEBZdBIAJ.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/moZLFMo14E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/moZLFMo14E.verified.txt index 902b2cf319..7778a87101 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/moZLFMo14E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/moZLFMo14E.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/n3FTCPtxrx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/n3FTCPtxrx.verified.txt index dd6bddf934..07b474fe64 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/n3FTCPtxrx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/n3FTCPtxrx.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nWW4yQptVw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nWW4yQptVw.verified.txt index 3097c093a0..ff25c46f23 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nWW4yQptVw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nWW4yQptVw.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nlOjqjs5gK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nlOjqjs5gK.verified.txt index 2e5c9116b8..7589f6a1fc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nlOjqjs5gK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nlOjqjs5gK.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/npOkmTwfve.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/npOkmTwfve.verified.txt index ae3a4defe6..f2c9c514ca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/npOkmTwfve.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/npOkmTwfve.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nweFjpXFsL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nweFjpXFsL.verified.txt index eb81d3d539..29b5b5e67c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nweFjpXFsL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/nweFjpXFsL.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/o2otLTg8Vl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/o2otLTg8Vl.verified.txt index 14371c31a4..5cc855ec33 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/o2otLTg8Vl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/o2otLTg8Vl.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oAGgO9fKDY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oAGgO9fKDY.verified.txt index 5ea1036418..e1c3533a43 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oAGgO9fKDY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oAGgO9fKDY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oE22J9gYls.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oE22J9gYls.verified.txt index 8ac46feeb0..2b4cd6482c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oE22J9gYls.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oE22J9gYls.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oQTi0amgPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oQTi0amgPS.verified.txt index d60b57228d..ad243b8d7e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oQTi0amgPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oQTi0amgPS.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oV4NuQJ94t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oV4NuQJ94t.verified.txt index 6755e16767..6a83d7c5fa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oV4NuQJ94t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/oV4NuQJ94t.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ob9wFUFWgV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ob9wFUFWgV.verified.txt index 8d5e693e6a..b1482102c9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ob9wFUFWgV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ob9wFUFWgV.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogC3zFKxHT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogC3zFKxHT.verified.txt index 936a3ee2aa..688532cb16 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogC3zFKxHT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogC3zFKxHT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogYbfmTqDU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogYbfmTqDU.verified.txt index 65946337e7..96ce5431ec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogYbfmTqDU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ogYbfmTqDU.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/olJhMnzuPz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/olJhMnzuPz.verified.txt index dc8377fc02..1665ab63da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/olJhMnzuPz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/olJhMnzuPz.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ono9JkTnAN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ono9JkTnAN.verified.txt index cfe823d936..c2ce33a7e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ono9JkTnAN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ono9JkTnAN.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pJAWTfaxjm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pJAWTfaxjm.verified.txt index 7d87b9480a..fdbec9e669 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pJAWTfaxjm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pJAWTfaxjm.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pLhdZIuHaQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pLhdZIuHaQ.verified.txt index ade7c73155..4800a0f21b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pLhdZIuHaQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pLhdZIuHaQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pMOF1Mk72u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pMOF1Mk72u.verified.txt index 24ae0b48c6..9b257adf47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pMOF1Mk72u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pMOF1Mk72u.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pWRLqETADC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pWRLqETADC.verified.txt index fb12d01eb7..634993a5cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pWRLqETADC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pWRLqETADC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pZUfYns8zh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pZUfYns8zh.verified.txt index b6f12de7dd..b0e3e5c22e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pZUfYns8zh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pZUfYns8zh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjlj4RSZp8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjlj4RSZp8.verified.txt index e2ccfe80cf..86b31ea1d5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjlj4RSZp8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjlj4RSZp8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjuiUy9p39.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjuiUy9p39.verified.txt index 3b6fd31eb4..1d2c2edba9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjuiUy9p39.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/pjuiUy9p39.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/prJkAE9w0g.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/prJkAE9w0g.verified.txt index 7fc9b70d78..d4f65ff579 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/prJkAE9w0g.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/prJkAE9w0g.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/puxvvYTSLO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/puxvvYTSLO.verified.txt index 982edd831d..0e8ba76f0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/puxvvYTSLO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/puxvvYTSLO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/py7LKTErz2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/py7LKTErz2.verified.txt index c53072a157..a4aba0c125 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/py7LKTErz2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/py7LKTErz2.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q1SqYtVxW6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q1SqYtVxW6.verified.txt index 0208ad5d2d..4d6d650aaa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q1SqYtVxW6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q1SqYtVxW6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q6DAdX5fCm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q6DAdX5fCm.verified.txt index b071ff4c0f..b71684016d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q6DAdX5fCm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/q6DAdX5fCm.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFU7Z1nijR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFU7Z1nijR.verified.txt index 88f1af515d..b595b07b19 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFU7Z1nijR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFU7Z1nijR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFoSkj7T13.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFoSkj7T13.verified.txt index 153f938393..e62c4cb985 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFoSkj7T13.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qFoSkj7T13.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJTnnQqF2F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJTnnQqF2F.verified.txt index b478fb7df2..4b3dfadc66 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJTnnQqF2F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJTnnQqF2F.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJamRkTXNF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJamRkTXNF.verified.txt index a361541de6..16766207bd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJamRkTXNF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qJamRkTXNF.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qKD0Cb8gIA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qKD0Cb8gIA.verified.txt index 53bc972585..586eb6d872 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qKD0Cb8gIA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qKD0Cb8gIA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qLOlAXYfVi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qLOlAXYfVi.verified.txt index 97d9b57c9b..35dd26d5b7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qLOlAXYfVi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qLOlAXYfVi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qOmsdLjitR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qOmsdLjitR.verified.txt index 5b05663f6e..f94c603966 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qOmsdLjitR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qOmsdLjitR.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qRU3nCwt2Q.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qRU3nCwt2Q.verified.txt index 304e1247b9..ddf1bada04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qRU3nCwt2Q.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qRU3nCwt2Q.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qXtlb4zWul.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qXtlb4zWul.verified.txt index f2120139a6..92b2c02633 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qXtlb4zWul.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qXtlb4zWul.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoe1Sy7pmx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoe1Sy7pmx.verified.txt index f72cf75f1b..bdbbec8b1d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoe1Sy7pmx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoe1Sy7pmx.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoqTMPwuTk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoqTMPwuTk.verified.txt index 44488170de..6d2f431980 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoqTMPwuTk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qoqTMPwuTk.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qrZcZG7jy7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qrZcZG7jy7.verified.txt index a75476bb8d..c07eb4ee7f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qrZcZG7jy7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qrZcZG7jy7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qumUHsSrPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qumUHsSrPn.verified.txt index 280ebd92cc..30f2d4c3fe 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qumUHsSrPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qumUHsSrPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qwaXv9NxiD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qwaXv9NxiD.verified.txt index eb954f9493..e5137eded1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qwaXv9NxiD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/qwaXv9NxiD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rBAWglEJn8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rBAWglEJn8.verified.txt index 9d61096578..a1ebdf4da4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rBAWglEJn8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rBAWglEJn8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rM8XQKOGui.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rM8XQKOGui.verified.txt index 3241632e40..58afa0504c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rM8XQKOGui.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rM8XQKOGui.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rMw8A9V28h.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rMw8A9V28h.verified.txt index 3f83d886e3..5d266046bc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rMw8A9V28h.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rMw8A9V28h.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rQkruMLukG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rQkruMLukG.verified.txt index 9c02967c69..5335715170 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rQkruMLukG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rQkruMLukG.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rWqAPGZL5x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rWqAPGZL5x.verified.txt index 9c59cc89c5..7ae74caf2d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rWqAPGZL5x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rWqAPGZL5x.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/reeO7MFnmp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/reeO7MFnmp.verified.txt index 07b76f9a60..5ffe2c841a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/reeO7MFnmp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/reeO7MFnmp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rjKVwCkFkr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rjKVwCkFkr.verified.txt index a9b4d92a2c..2669ea927e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rjKVwCkFkr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rjKVwCkFkr.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rkBgJGfViS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rkBgJGfViS.verified.txt index bb08a05646..69cfa7cb65 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rkBgJGfViS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rkBgJGfViS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rnBQvycZ6J.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rnBQvycZ6J.verified.txt index 4ff2318471..4065a29dd1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rnBQvycZ6J.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rnBQvycZ6J.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rtAPDHfJfM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rtAPDHfJfM.verified.txt index 2cdf76cf23..853ae84a9d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rtAPDHfJfM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/rtAPDHfJfM.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s2DiwTa018.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s2DiwTa018.verified.txt index a93837e64d..fef7651c5a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s2DiwTa018.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s2DiwTa018.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s7fJpcky7C.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s7fJpcky7C.verified.txt index 7cb70d77d6..6d31d4298f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s7fJpcky7C.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/s7fJpcky7C.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sDmT7Ipq8w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sDmT7Ipq8w.verified.txt index 3295de7bd6..0ce049e20a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sDmT7Ipq8w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sDmT7Ipq8w.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sF3MH2BTEb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sF3MH2BTEb.verified.txt index a8ddbc8a67..93a9993edb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sF3MH2BTEb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sF3MH2BTEb.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNBhPvC0ZD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNBhPvC0ZD.verified.txt index 56d4874172..62cdf020f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNBhPvC0ZD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNBhPvC0ZD.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNjpHmOrZx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNjpHmOrZx.verified.txt index 87b9e7cb54..c7ab232b95 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNjpHmOrZx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sNjpHmOrZx.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sW6z1OQoty.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sW6z1OQoty.verified.txt index 831027b3fe..25261170f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sW6z1OQoty.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sW6z1OQoty.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/saA0rCxOId.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/saA0rCxOId.verified.txt index 5a81c1a262..82e3e7060c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/saA0rCxOId.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/saA0rCxOId.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sqUxc6SwA4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sqUxc6SwA4.verified.txt index a7edf21c4b..bcd0659cca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sqUxc6SwA4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/sqUxc6SwA4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t2oZftMHf7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t2oZftMHf7.verified.txt index a54cd93133..0ffa5ee178 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t2oZftMHf7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t2oZftMHf7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t88runt2vt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t88runt2vt.verified.txt index 805ac549f3..1a9bdd704f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t88runt2vt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/t88runt2vt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tZxLYsMc7s.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tZxLYsMc7s.verified.txt index 2c278f557d..d81638d1e6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tZxLYsMc7s.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tZxLYsMc7s.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/taNk0UiCPi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/taNk0UiCPi.verified.txt index 3900c17e9c..0a5b31b07d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/taNk0UiCPi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/taNk0UiCPi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tbwwbOwGRx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tbwwbOwGRx.verified.txt index 9a9720d90a..6ddc919307 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tbwwbOwGRx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tbwwbOwGRx.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/td2WppMSEZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/td2WppMSEZ.verified.txt index 537ee61f4a..aa15926b9b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/td2WppMSEZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/td2WppMSEZ.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tep4bS6Kf1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tep4bS6Kf1.verified.txt index 71a23a2e69..da4e11d294 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tep4bS6Kf1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tep4bS6Kf1.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/thnPc0KPMs.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/thnPc0KPMs.verified.txt index a61abce82f..0c7373a2fd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/thnPc0KPMs.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/thnPc0KPMs.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tiGNpHQWuQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tiGNpHQWuQ.verified.txt index d079a7cfb6..56ef7af7a0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tiGNpHQWuQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/tiGNpHQWuQ.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u4T9anXN0f.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u4T9anXN0f.verified.txt index cbc932d091..10c6b7617a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u4T9anXN0f.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u4T9anXN0f.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u8OrI8K7dy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u8OrI8K7dy.verified.txt index b49c78d14c..7a977ee26b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u8OrI8K7dy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/u8OrI8K7dy.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uJJwODw0ux.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uJJwODw0ux.verified.txt index 533b61f5ca..f0c265d1a9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uJJwODw0ux.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uJJwODw0ux.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_None other) + public readonly global::System.Boolean Equals(public_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKnQqNmYCb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKnQqNmYCb.verified.txt index 0d031079b6..2553c8cb21 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKnQqNmYCb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKnQqNmYCb.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKxa9dnwxN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKxa9dnwxN.verified.txt index 46c8d75ec7..79bb4f1fad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKxa9dnwxN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uKxa9dnwxN.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uRqUliBkSB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uRqUliBkSB.verified.txt index a7ebd12cbe..5e5aa40766 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uRqUliBkSB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uRqUliBkSB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ulnJRmMBQP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ulnJRmMBQP.verified.txt index 3db305c7b4..5a86d0082c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ulnJRmMBQP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/ulnJRmMBQP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/urMPdAgW9D.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/urMPdAgW9D.verified.txt index c930b9cc5c..d693532dee 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/urMPdAgW9D.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/urMPdAgW9D.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uzddWFB8hX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uzddWFB8hX.verified.txt index 98fcb341ff..7675ce8471 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uzddWFB8hX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/uzddWFB8hX.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/v1Rhgo3OFM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/v1Rhgo3OFM.verified.txt index 045a599d40..450e58656f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/v1Rhgo3OFM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/v1Rhgo3OFM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vFikwMxO6k.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vFikwMxO6k.verified.txt index 3db2e3a2cf..36e47740fa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vFikwMxO6k.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vFikwMxO6k.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vLwvkrUp8m.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vLwvkrUp8m.verified.txt index aaf3959494..138a52e186 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vLwvkrUp8m.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vLwvkrUp8m.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vZw6KmmxXh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vZw6KmmxXh.verified.txt index d1fd498beb..3f96c62c72 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vZw6KmmxXh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vZw6KmmxXh.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vjSFj06YzO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vjSFj06YzO.verified.txt index 615c0ca4f7..173b9b07f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vjSFj06YzO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vjSFj06YzO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vuivF4RGSI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vuivF4RGSI.verified.txt index d710a29b7a..0de097caa8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vuivF4RGSI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vuivF4RGSI.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vzFNnv2Src.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vzFNnv2Src.verified.txt index f352dc2570..dfbd25b1cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vzFNnv2Src.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/vzFNnv2Src.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w7Te0wz04x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w7Te0wz04x.verified.txt index 90e869ecc0..7e54e81b25 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w7Te0wz04x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w7Te0wz04x.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w8O5xjEfnc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w8O5xjEfnc.verified.txt index c901ed6945..6494112266 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w8O5xjEfnc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/w8O5xjEfnc.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wXe7KG12UV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wXe7KG12UV.verified.txt index 7f432522df..08ab8f31c3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wXe7KG12UV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wXe7KG12UV.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/whzkVog54E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/whzkVog54E.verified.txt index 37e269638d..5df12535c3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/whzkVog54E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/whzkVog54E.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wkgn6vRUUp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wkgn6vRUUp.verified.txt index 383324921c..b7038aad15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wkgn6vRUUp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wkgn6vRUUp.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wnlERr3VMl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wnlERr3VMl.verified.txt index 83f19674ca..30b299ccfd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wnlERr3VMl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wnlERr3VMl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wsGKCM8fa3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wsGKCM8fa3.verified.txt index 31804de0f9..63391563aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wsGKCM8fa3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wsGKCM8fa3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wxYGk3yJSZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wxYGk3yJSZ.verified.txt index cfba5cb669..1a0b50a9c8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wxYGk3yJSZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wxYGk3yJSZ.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wyPF9G8U9F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wyPF9G8U9F.verified.txt index 88c640500e..5c0616d070 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wyPF9G8U9F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/wyPF9G8U9F.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdDoA2n0F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdDoA2n0F.verified.txt index ef4c2a9034..c524d3d158 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdDoA2n0F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdDoA2n0F.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdSmLTgEe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdSmLTgEe.verified.txt index 922167f430..823f07f657 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdSmLTgEe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xAdSmLTgEe.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xE96VIg4tq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xE96VIg4tq.verified.txt index 19f6620358..2fa0a2a056 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xE96VIg4tq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xE96VIg4tq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xK8UDd7XMx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xK8UDd7XMx.verified.txt index 52e817f0c2..557eadf43a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xK8UDd7XMx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xK8UDd7XMx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xNrbVapWwv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xNrbVapWwv.verified.txt index ae83f359bf..aba02f799b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xNrbVapWwv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xNrbVapWwv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xVvNSbbu5y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xVvNSbbu5y.verified.txt index c88e1776be..76fff75684 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xVvNSbbu5y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xVvNSbbu5y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xdivY90KyF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xdivY90KyF.verified.txt index 671e1a6bbb..235ca8b6f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xdivY90KyF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xdivY90KyF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xfdH2rbsMD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xfdH2rbsMD.verified.txt index 0ae29c571d..8e92ae08d9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xfdH2rbsMD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xfdH2rbsMD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xrqw8zdbit.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xrqw8zdbit.verified.txt index ab141d7700..9eff38b97b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xrqw8zdbit.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xrqw8zdbit.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xtJmjxTvLO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xtJmjxTvLO.verified.txt index 1621267380..1138503d88 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xtJmjxTvLO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/xtJmjxTvLO.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yCvPYHA5zF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yCvPYHA5zF.verified.txt index e8c9914929..52f636a4e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yCvPYHA5zF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yCvPYHA5zF.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yQu5xEnWkt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yQu5xEnWkt.verified.txt index 0ec46d0e91..ff93c04567 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yQu5xEnWkt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yQu5xEnWkt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yjQiBx2yHn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yjQiBx2yHn.verified.txt index ced6155e8c..a86bd65e68 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yjQiBx2yHn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yjQiBx2yHn.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yn2lfElICd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yn2lfElICd.verified.txt index 3577a86837..069016c528 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yn2lfElICd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yn2lfElICd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yr8hAU7bv9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yr8hAU7bv9.verified.txt index d799745893..636883a21d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yr8hAU7bv9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/yr8hAU7bv9.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z5GMR6FT65.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z5GMR6FT65.verified.txt index c914ee799e..7f3d504ae0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z5GMR6FT65.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z5GMR6FT65.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z9IRzE0Kf5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z9IRzE0Kf5.verified.txt index c7bbeaa205..81b9c6022f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z9IRzE0Kf5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/z9IRzE0Kf5.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zHwuRVqHjC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zHwuRVqHjC.verified.txt index 362c794499..732045117a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zHwuRVqHjC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zHwuRVqHjC.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zIETLgBv7L.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zIETLgBv7L.verified.txt index 1cf63fb47e..a0dcf0c524 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zIETLgBv7L.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zIETLgBv7L.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zLA7TqTKPz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zLA7TqTKPz.verified.txt index 767c5d0268..a934d0da7d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zLA7TqTKPz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zLA7TqTKPz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zYVWOnWkq4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zYVWOnWkq4.verified.txt index f596354d10..711ba2260d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zYVWOnWkq4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zYVWOnWkq4.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zZFVDd1nZN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zZFVDd1nZN.verified.txt index 4782aee860..e3ce534b79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zZFVDd1nZN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zZFVDd1nZN.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zdGbJHTnbv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zdGbJHTnbv.verified.txt index 7be2719f36..d0758c1cd4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zdGbJHTnbv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zdGbJHTnbv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zh3XlzyPIq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zh3XlzyPIq.verified.txt index 1b065d645b..b241f96acf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zh3XlzyPIq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zh3XlzyPIq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zlx9l08vEo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zlx9l08vEo.verified.txt index 78d9f9a8ea..57eb91df70 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zlx9l08vEo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zlx9l08vEo.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zoP3vqAnI1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zoP3vqAnI1.verified.txt index e5c8a13ada..58fec5445a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zoP3vqAnI1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zoP3vqAnI1.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zxcjLWzZLy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zxcjLWzZLy.verified.txt index 6c23c5c6ef..1778925d03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zxcjLWzZLy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zxcjLWzZLy.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zyZWVRfeKK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zyZWVRfeKK.verified.txt index 427ed11e7a..bd870bfdf0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zyZWVRfeKK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-fr/zyZWVRfeKK.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/11k4c6CGtU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/11k4c6CGtU.verified.txt index 929bf5455e..f18dd748a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/11k4c6CGtU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/11k4c6CGtU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2FJcSOSpS2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2FJcSOSpS2.verified.txt index a013fdff9f..d731f13de2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2FJcSOSpS2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2FJcSOSpS2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2MarLpFSXq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2MarLpFSXq.verified.txt index 6c7df3b505..fa041ef87d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2MarLpFSXq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2MarLpFSXq.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2f2UPcJxE1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2f2UPcJxE1.verified.txt index 87ddc5800e..7c5ffa2ad6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2f2UPcJxE1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/2f2UPcJxE1.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/3uhGLNkcza.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/3uhGLNkcza.verified.txt index bc9eda4fee..b9f920b9f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/3uhGLNkcza.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/3uhGLNkcza.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/47oS0HylDj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/47oS0HylDj.verified.txt index 53c255ad4e..861ec41fbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/47oS0HylDj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/47oS0HylDj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/4B4V3nXRbi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/4B4V3nXRbi.verified.txt index c1a3de63a1..ede9b3b963 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/4B4V3nXRbi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/4B4V3nXRbi.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6NEJzhAHNe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6NEJzhAHNe.verified.txt index 50bf1acbae..88b8f103bf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6NEJzhAHNe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6NEJzhAHNe.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6lXSbuIj9v.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6lXSbuIj9v.verified.txt index 0692dd4dcb..d2bd00a6ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6lXSbuIj9v.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/6lXSbuIj9v.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7bosH5Owyd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7bosH5Owyd.verified.txt index 7b45ddf801..4d35fd4886 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7bosH5Owyd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7bosH5Owyd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7fOituc2Xb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7fOituc2Xb.verified.txt index 762e439eaf..4e83d79950 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7fOituc2Xb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/7fOituc2Xb.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/86UhQdQQt6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/86UhQdQQt6.verified.txt index 2a12ff8121..8c72399b44 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/86UhQdQQt6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/86UhQdQQt6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/BU0UUvzzuK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/BU0UUvzzuK.verified.txt index 6b241fde64..e61a25b48a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/BU0UUvzzuK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/BU0UUvzzuK.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CIpk6HUes4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CIpk6HUes4.verified.txt index c7e29411d0..594b0ae02b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CIpk6HUes4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CIpk6HUes4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CQMHho7gsu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CQMHho7gsu.verified.txt index 6b438d28d5..0278da5171 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CQMHho7gsu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CQMHho7gsu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CljAURVTMy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CljAURVTMy.verified.txt index 66d3891f6b..57ccc3c08b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CljAURVTMy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/CljAURVTMy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/DKrgSbis93.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/DKrgSbis93.verified.txt index f41c9b773d..1e3472c26a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/DKrgSbis93.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/DKrgSbis93.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Gneqedonte.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Gneqedonte.verified.txt index 2010c30afe..6bf494b5f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Gneqedonte.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Gneqedonte.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/GqkxwENyM0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/GqkxwENyM0.verified.txt index 08f5059178..9fb4892d29 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/GqkxwENyM0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/GqkxwENyM0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Ixz9CGLLpC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Ixz9CGLLpC.verified.txt index b2691ddfe9..de090f826a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Ixz9CGLLpC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Ixz9CGLLpC.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/J2x3kJ7Vuf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/J2x3kJ7Vuf.verified.txt index a563c17749..169e38d261 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/J2x3kJ7Vuf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/J2x3kJ7Vuf.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LGZJJpm1uq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LGZJJpm1uq.verified.txt index 3a66a42470..ec5b4a6e5c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LGZJJpm1uq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LGZJJpm1uq.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LrT2a1VJPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LrT2a1VJPn.verified.txt index 20cf870b5f..144cb24815 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LrT2a1VJPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/LrT2a1VJPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/MY3XtRzu8x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/MY3XtRzu8x.verified.txt index 5e9cd08925..aea2c55680 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/MY3XtRzu8x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/MY3XtRzu8x.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/OmZRklyqlE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/OmZRklyqlE.verified.txt index 2b3a0bc8a6..f8a41079cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/OmZRklyqlE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/OmZRklyqlE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/PoaNRmbqSN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/PoaNRmbqSN.verified.txt index 2ef4e1e93c..f0b7cc2f55 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/PoaNRmbqSN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/PoaNRmbqSN.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QK0pbKa6cP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QK0pbKa6cP.verified.txt index e5a5f563bd..284df1a624 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QK0pbKa6cP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QK0pbKa6cP.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QXgcj72buY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QXgcj72buY.verified.txt index e038349646..fbb2659041 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QXgcj72buY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/QXgcj72buY.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Qhxij72iOv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Qhxij72iOv.verified.txt index 619d9b7262..6517bffcf1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Qhxij72iOv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/Qhxij72iOv.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/RSvHJzWcVx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/RSvHJzWcVx.verified.txt index dc47b09640..8763852f02 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/RSvHJzWcVx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/RSvHJzWcVx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/TxGznMqzl8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/TxGznMqzl8.verified.txt index 8033c704af..f4423f3ea0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/TxGznMqzl8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/TxGznMqzl8.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/U1kmAlbHnW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/U1kmAlbHnW.verified.txt index 64448ace95..3727a657d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/U1kmAlbHnW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/U1kmAlbHnW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/UY4TVAzonK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/UY4TVAzonK.verified.txt index 19c15b22e9..aabdc4b289 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/UY4TVAzonK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/UY4TVAzonK.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WMVLzBfTuM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WMVLzBfTuM.verified.txt index 3af8e57ddb..a1adcc0522 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WMVLzBfTuM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WMVLzBfTuM.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WhPLsKKG2Q.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WhPLsKKG2Q.verified.txt index 4be4e65311..05503be40c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WhPLsKKG2Q.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/WhPLsKKG2Q.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YH8EVIXD2t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YH8EVIXD2t.verified.txt index 631d16bdef..51b33a6f9e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YH8EVIXD2t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YH8EVIXD2t.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YQ4C8lGTTp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YQ4C8lGTTp.verified.txt index 22620264aa..d8914f3bd5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YQ4C8lGTTp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YQ4C8lGTTp.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YWmAyKOz6K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YWmAyKOz6K.verified.txt index cba6e3f8ff..bade53127e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YWmAyKOz6K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/YWmAyKOz6K.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dAgWjdgDUL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dAgWjdgDUL.verified.txt index fff41d091b..5be33e2009 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dAgWjdgDUL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dAgWjdgDUL.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dQcYTBwxmD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dQcYTBwxmD.verified.txt index 3996c305ec..b8b2fc83c6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dQcYTBwxmD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/dQcYTBwxmD.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/e5w3qMBSUV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/e5w3qMBSUV.verified.txt index 8a3a1cb9c2..10f1ed940d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/e5w3qMBSUV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/e5w3qMBSUV.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gKDRuR0huT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gKDRuR0huT.verified.txt index e1dcf8e043..35fd177cd3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gKDRuR0huT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gKDRuR0huT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gYgXvUXMCp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gYgXvUXMCp.verified.txt index 4c5257c484..70e71601c8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gYgXvUXMCp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/gYgXvUXMCp.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hjyaHa29Jz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hjyaHa29Jz.verified.txt index a2fd418fff..be28767631 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hjyaHa29Jz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hjyaHa29Jz.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hndLiJbd4Z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hndLiJbd4Z.verified.txt index 6852bd88fa..646f37d398 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hndLiJbd4Z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/hndLiJbd4Z.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ilzLRsLJfo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ilzLRsLJfo.verified.txt index 84262b3e9b..e74d08644e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ilzLRsLJfo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ilzLRsLJfo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/k1zq0pGwsL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/k1zq0pGwsL.verified.txt index ded9414d98..c9bafa11de 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/k1zq0pGwsL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/k1zq0pGwsL.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/kOeYQKLiTt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/kOeYQKLiTt.verified.txt index 48a7ebff6b..a2609d1be1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/kOeYQKLiTt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/kOeYQKLiTt.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/l4e6XelAgq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/l4e6XelAgq.verified.txt index ec1d3c2c86..1265867198 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/l4e6XelAgq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/l4e6XelAgq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/lCFOThKDBj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/lCFOThKDBj.verified.txt index 1a9abfb692..0a3331c4d3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/lCFOThKDBj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/lCFOThKDBj.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mEk9VnsQLA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mEk9VnsQLA.verified.txt index b04804a11b..7ca1a415be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mEk9VnsQLA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mEk9VnsQLA.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mJ6I1elEKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mJ6I1elEKl.verified.txt index 7789626fb0..96ac50d6e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mJ6I1elEKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/mJ6I1elEKl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/nlOjqjs5gK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/nlOjqjs5gK.verified.txt index 2e5c9116b8..7589f6a1fc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/nlOjqjs5gK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/nlOjqjs5gK.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/npOkmTwfve.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/npOkmTwfve.verified.txt index ae3a4defe6..f2c9c514ca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/npOkmTwfve.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/npOkmTwfve.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/o2otLTg8Vl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/o2otLTg8Vl.verified.txt index 14371c31a4..5cc855ec33 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/o2otLTg8Vl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/o2otLTg8Vl.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ogYbfmTqDU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ogYbfmTqDU.verified.txt index 65946337e7..96ce5431ec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ogYbfmTqDU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/ogYbfmTqDU.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pLhdZIuHaQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pLhdZIuHaQ.verified.txt index ade7c73155..4800a0f21b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pLhdZIuHaQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pLhdZIuHaQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pMOF1Mk72u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pMOF1Mk72u.verified.txt index 24ae0b48c6..9b257adf47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pMOF1Mk72u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pMOF1Mk72u.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pjlj4RSZp8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pjlj4RSZp8.verified.txt index e2ccfe80cf..86b31ea1d5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pjlj4RSZp8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/pjlj4RSZp8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/qumUHsSrPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/qumUHsSrPn.verified.txt index 280ebd92cc..30f2d4c3fe 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/qumUHsSrPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/qumUHsSrPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/t2oZftMHf7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/t2oZftMHf7.verified.txt index a54cd93133..0ffa5ee178 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/t2oZftMHf7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/t2oZftMHf7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/taNk0UiCPi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/taNk0UiCPi.verified.txt index 3900c17e9c..0a5b31b07d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/taNk0UiCPi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/taNk0UiCPi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/thnPc0KPMs.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/thnPc0KPMs.verified.txt index a61abce82f..0c7373a2fd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/thnPc0KPMs.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/thnPc0KPMs.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/uJJwODw0ux.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/uJJwODw0ux.verified.txt index 533b61f5ca..f0c265d1a9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/uJJwODw0ux.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/uJJwODw0ux.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_None other) + public readonly global::System.Boolean Equals(public_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/v1Rhgo3OFM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/v1Rhgo3OFM.verified.txt index 045a599d40..450e58656f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/v1Rhgo3OFM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/v1Rhgo3OFM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/w8O5xjEfnc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/w8O5xjEfnc.verified.txt index c901ed6945..6494112266 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/w8O5xjEfnc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/w8O5xjEfnc.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/xAdDoA2n0F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/xAdDoA2n0F.verified.txt index ef4c2a9034..c524d3d158 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/xAdDoA2n0F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/xAdDoA2n0F.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/z5GMR6FT65.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/z5GMR6FT65.verified.txt index c914ee799e..7f3d504ae0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/z5GMR6FT65.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/z5GMR6FT65.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/zYVWOnWkq4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/zYVWOnWkq4.verified.txt index f596354d10..711ba2260d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/zYVWOnWkq4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0-us/zYVWOnWkq4.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/06T2RNzfTz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/06T2RNzfTz.verified.txt index b88f65c808..bbae6e3e20 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/06T2RNzfTz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/06T2RNzfTz.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0CWC1Me6cd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0CWC1Me6cd.verified.txt index ad0e672fea..28905d49c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0CWC1Me6cd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0CWC1Me6cd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0EObiIXDZN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0EObiIXDZN.verified.txt index bbda8c3a85..a4a2140c97 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0EObiIXDZN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0EObiIXDZN.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0UrWNfXMbn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0UrWNfXMbn.verified.txt index 4333a0280b..e199895664 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0UrWNfXMbn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0UrWNfXMbn.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0crDi3Beji.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0crDi3Beji.verified.txt index bcac92a017..74bdd0810e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0crDi3Beji.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0crDi3Beji.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0dkknAM71l.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0dkknAM71l.verified.txt index 16393cd1a6..e580ad534f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0dkknAM71l.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0dkknAM71l.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0pnsI1bxxI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0pnsI1bxxI.verified.txt index ed7c784453..b01d7f41e2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0pnsI1bxxI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0pnsI1bxxI.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0tPklTLL8f.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0tPklTLL8f.verified.txt index c025cd109c..abf6b03375 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0tPklTLL8f.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/0tPklTLL8f.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/10Vh7rKhPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/10Vh7rKhPS.verified.txt index 5c591db099..38e67132f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/10Vh7rKhPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/10Vh7rKhPS.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/11k4c6CGtU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/11k4c6CGtU.verified.txt index 929bf5455e..f18dd748a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/11k4c6CGtU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/11k4c6CGtU.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/18luqBmqNm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/18luqBmqNm.verified.txt index 8f9a1df711..c3335942c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/18luqBmqNm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/18luqBmqNm.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1A2Z3313ZM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1A2Z3313ZM.verified.txt index cec9912d9f..a035f70ad0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1A2Z3313ZM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1A2Z3313ZM.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1DvWsvoDe4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1DvWsvoDe4.verified.txt index 968a44df6f..2d20924a69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1DvWsvoDe4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1DvWsvoDe4.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LNccvUgIN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LNccvUgIN.verified.txt index 60de7888b6..bb7158eead 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LNccvUgIN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LNccvUgIN.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LZ5UZXlZA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LZ5UZXlZA.verified.txt index 625d664421..0dcf0a703e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LZ5UZXlZA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1LZ5UZXlZA.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1h0XbQEjc6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1h0XbQEjc6.verified.txt index 3973c2c51b..2497031d30 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1h0XbQEjc6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1h0XbQEjc6.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1hT7MEls6D.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1hT7MEls6D.verified.txt index b6bdce7cdd..c972acb496 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1hT7MEls6D.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1hT7MEls6D.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1nooLrDZvg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1nooLrDZvg.verified.txt index 6b38d90b70..6ce06984fb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1nooLrDZvg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1nooLrDZvg.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1rcK59ZC2E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1rcK59ZC2E.verified.txt index caabb0679d..6fb8f432f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1rcK59ZC2E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/1rcK59ZC2E.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/22b5GFPsJy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/22b5GFPsJy.verified.txt index 4d252e8dbb..986393996f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/22b5GFPsJy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/22b5GFPsJy.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/25cFSQsgYv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/25cFSQsgYv.verified.txt index cadd8a646e..502fbd22e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/25cFSQsgYv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/25cFSQsgYv.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BFPwNYFHx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BFPwNYFHx.verified.txt index d0f758df17..e74b8c30ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BFPwNYFHx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BFPwNYFHx.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BK45BQugr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BK45BQugr.verified.txt index 42ecb5c795..0138f34723 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BK45BQugr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2BK45BQugr.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2DcJnHQ1Wc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2DcJnHQ1Wc.verified.txt index 96cc3f7679..b530119a86 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2DcJnHQ1Wc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2DcJnHQ1Wc.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2FJcSOSpS2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2FJcSOSpS2.verified.txt index a013fdff9f..d731f13de2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2FJcSOSpS2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2FJcSOSpS2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2GQW6JDMp3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2GQW6JDMp3.verified.txt index d414420b41..6d436472b6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2GQW6JDMp3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2GQW6JDMp3.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2IaDcpwLSY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2IaDcpwLSY.verified.txt index 306cad987c..dbe0717d20 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2IaDcpwLSY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2IaDcpwLSY.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2MarLpFSXq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2MarLpFSXq.verified.txt index 6c7df3b505..fa041ef87d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2MarLpFSXq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2MarLpFSXq.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2YzWsnBVxR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2YzWsnBVxR.verified.txt index b655c8f550..3b4fb6a33e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2YzWsnBVxR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2YzWsnBVxR.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2f2UPcJxE1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2f2UPcJxE1.verified.txt index 87ddc5800e..7c5ffa2ad6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2f2UPcJxE1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2f2UPcJxE1.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2h4RxJmd8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2h4RxJmd8y.verified.txt index ccbd79463b..e950ca85aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2h4RxJmd8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2h4RxJmd8y.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2krEjBjZe4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2krEjBjZe4.verified.txt index 0f72480c2a..fc8e8c0c8d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2krEjBjZe4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2krEjBjZe4.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2pqNE4KsND.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2pqNE4KsND.verified.txt index cf780c863c..10f81182fc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2pqNE4KsND.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2pqNE4KsND.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2uTfcY6oRr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2uTfcY6oRr.verified.txt index 1d3bf56e78..c341cf38df 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2uTfcY6oRr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/2uTfcY6oRr.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/30gVby1BW2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/30gVby1BW2.verified.txt index a8a0a6b92a..7133c26da5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/30gVby1BW2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/30gVby1BW2.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/368iKp7FQ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/368iKp7FQ7.verified.txt index ae2ba703dd..061efc4344 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/368iKp7FQ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/368iKp7FQ7.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3G0vZbWoKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3G0vZbWoKl.verified.txt index 8d2299cdb7..16d2af0b92 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3G0vZbWoKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3G0vZbWoKl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3HolOeXE6X.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3HolOeXE6X.verified.txt index b5d4f9e65b..5a4c34cf18 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3HolOeXE6X.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3HolOeXE6X.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3P7ClCy8Kv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3P7ClCy8Kv.verified.txt index 09b2d6c853..aa72cf5f6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3P7ClCy8Kv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3P7ClCy8Kv.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3QFEobjwmC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3QFEobjwmC.verified.txt index cfc57f0993..38619ddff0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3QFEobjwmC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3QFEobjwmC.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3T2fWsQsO5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3T2fWsQsO5.verified.txt index aa6197da5e..dc04e0168e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3T2fWsQsO5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3T2fWsQsO5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3XQUHAFlgc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3XQUHAFlgc.verified.txt index 5332982f05..2ddffdf14f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3XQUHAFlgc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3XQUHAFlgc.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3hesiYBAJ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3hesiYBAJ7.verified.txt index cd514e97d2..8728975693 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3hesiYBAJ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3hesiYBAJ7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3mBWDp16rd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3mBWDp16rd.verified.txt index 4503c28303..3b9088b40e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3mBWDp16rd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3mBWDp16rd.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3oAabmt2UZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3oAabmt2UZ.verified.txt index 243d84867a..691804956e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3oAabmt2UZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3oAabmt2UZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3uhGLNkcza.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3uhGLNkcza.verified.txt index bc9eda4fee..b9f920b9f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3uhGLNkcza.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/3uhGLNkcza.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/47oS0HylDj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/47oS0HylDj.verified.txt index 53c255ad4e..861ec41fbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/47oS0HylDj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/47oS0HylDj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4B4V3nXRbi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4B4V3nXRbi.verified.txt index c1a3de63a1..ede9b3b963 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4B4V3nXRbi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4B4V3nXRbi.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4EsYZXHdpa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4EsYZXHdpa.verified.txt index 41528483d2..c2fda78ee9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4EsYZXHdpa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4EsYZXHdpa.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4WKuwCUGdK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4WKuwCUGdK.verified.txt index ac046f410e..31a6485062 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4WKuwCUGdK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4WKuwCUGdK.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4q2mjH8hmG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4q2mjH8hmG.verified.txt index 28cfc10006..ca7675c82c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4q2mjH8hmG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4q2mjH8hmG.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4qxtVFqAJk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4qxtVFqAJk.verified.txt index 4657d7f412..1c05ae3106 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4qxtVFqAJk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/4qxtVFqAJk.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/510b35AtxB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/510b35AtxB.verified.txt index 1f4c653c72..f2c6c6227f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/510b35AtxB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/510b35AtxB.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/58rLEsr70X.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/58rLEsr70X.verified.txt index f250f7d076..55cc4cad27 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/58rLEsr70X.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/58rLEsr70X.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5CW9iedEFJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5CW9iedEFJ.verified.txt index e2fd63b46b..e24ef4d2aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5CW9iedEFJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5CW9iedEFJ.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5K5b1VcrOP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5K5b1VcrOP.verified.txt index 6a88706f74..5b56875719 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5K5b1VcrOP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5K5b1VcrOP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5Q17yuMKm7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5Q17yuMKm7.verified.txt index 77350fbe4b..0f98bfa354 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5Q17yuMKm7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5Q17yuMKm7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5nLb3uhXMT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5nLb3uhXMT.verified.txt index b27c1bddd7..58a84e573c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5nLb3uhXMT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5nLb3uhXMT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5sjm3kR56w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5sjm3kR56w.verified.txt index c02fae52ba..99ca66fe04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5sjm3kR56w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5sjm3kR56w.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5tYC5pmt1i.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5tYC5pmt1i.verified.txt index fff2f714b6..28f16b160c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5tYC5pmt1i.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5tYC5pmt1i.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5yEuJJbZXt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5yEuJJbZXt.verified.txt index e11261da3c..d345d5c864 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5yEuJJbZXt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/5yEuJJbZXt.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/64FEIwrsss.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/64FEIwrsss.verified.txt index bd0ab91d7c..7d3de27d04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/64FEIwrsss.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/64FEIwrsss.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/68YYwrC6sB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/68YYwrC6sB.verified.txt index 44896ef07f..78dea486e8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/68YYwrC6sB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/68YYwrC6sB.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6HeO7LLgVh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6HeO7LLgVh.verified.txt index 0409a7dc6c..47984b873c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6HeO7LLgVh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6HeO7LLgVh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6IDnvwmhCN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6IDnvwmhCN.verified.txt index ba4e7b5e76..65ce7d2e5e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6IDnvwmhCN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6IDnvwmhCN.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6NEJzhAHNe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6NEJzhAHNe.verified.txt index 50bf1acbae..88b8f103bf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6NEJzhAHNe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6NEJzhAHNe.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6RqxkujVrD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6RqxkujVrD.verified.txt index a5b3adbd0a..ba1bddafef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6RqxkujVrD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6RqxkujVrD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6bYGHXyaQe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6bYGHXyaQe.verified.txt index dd3a9be9c5..58695bcd6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6bYGHXyaQe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6bYGHXyaQe.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6lXSbuIj9v.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6lXSbuIj9v.verified.txt index 0692dd4dcb..d2bd00a6ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6lXSbuIj9v.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6lXSbuIj9v.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6w1vPiY8I8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6w1vPiY8I8.verified.txt index 1ffa22bdf7..d48c855db8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6w1vPiY8I8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6w1vPiY8I8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6xsKtx6pBG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6xsKtx6pBG.verified.txt index b13e4436da..2473f9872c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6xsKtx6pBG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/6xsKtx6pBG.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/71fqHwwBM3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/71fqHwwBM3.verified.txt index a3f72e9d35..2178dcaee5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/71fqHwwBM3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/71fqHwwBM3.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7HwoUhfzjA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7HwoUhfzjA.verified.txt index 88a6d85eb6..10d322efc5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7HwoUhfzjA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7HwoUhfzjA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Ng6xBtzx9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Ng6xBtzx9.verified.txt index 25933c6369..88541e8739 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Ng6xBtzx9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Ng6xBtzx9.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Q8dBJ3wmv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Q8dBJ3wmv.verified.txt index d5c6c2b078..61ca4465bb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Q8dBJ3wmv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Q8dBJ3wmv.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7QcebP2DRA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7QcebP2DRA.verified.txt index 8cf5879270..67bed7ae84 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7QcebP2DRA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7QcebP2DRA.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Xcf56RyAr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Xcf56RyAr.verified.txt index 4c99e2f968..5247dace7a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Xcf56RyAr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7Xcf56RyAr.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7bosH5Owyd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7bosH5Owyd.verified.txt index 7b45ddf801..4d35fd4886 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7bosH5Owyd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7bosH5Owyd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7fOituc2Xb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7fOituc2Xb.verified.txt index 762e439eaf..4e83d79950 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7fOituc2Xb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/7fOituc2Xb.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8243ZMXNu5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8243ZMXNu5.verified.txt index 69579a1135..5bfc9325e2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8243ZMXNu5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8243ZMXNu5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/86UhQdQQt6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/86UhQdQQt6.verified.txt index 2a12ff8121..8c72399b44 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/86UhQdQQt6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/86UhQdQQt6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8CopokDRUo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8CopokDRUo.verified.txt index 467bb1be93..87c8bb1897 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8CopokDRUo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8CopokDRUo.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8MqPAOtm6t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8MqPAOtm6t.verified.txt index 3f21ac365b..becf6798cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8MqPAOtm6t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8MqPAOtm6t.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8NQVN4RqfT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8NQVN4RqfT.verified.txt index fdacda4fe0..48caca4a0d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8NQVN4RqfT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8NQVN4RqfT.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8O4oVXT8II.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8O4oVXT8II.verified.txt index 1555584ee5..1fb2d0630d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8O4oVXT8II.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8O4oVXT8II.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8UVFjZCJT0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8UVFjZCJT0.verified.txt index 0a1a1059e3..c0545fbb7b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8UVFjZCJT0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8UVFjZCJT0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8u0sAu1Eqm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8u0sAu1Eqm.verified.txt index c21c03ce9d..25707bb9f0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8u0sAu1Eqm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8u0sAu1Eqm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8uGeVyBsIB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8uGeVyBsIB.verified.txt index dbe6a6893e..8b16ef5164 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8uGeVyBsIB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/8uGeVyBsIB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/90qAmH8XZh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/90qAmH8XZh.verified.txt index ae3493320a..d9ac199cec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/90qAmH8XZh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/90qAmH8XZh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/93msjLYrPQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/93msjLYrPQ.verified.txt index b2c76d3b7b..c5d5c5dbea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/93msjLYrPQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/93msjLYrPQ.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/94CUpmUuvI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/94CUpmUuvI.verified.txt index d425718411..a83353ee79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/94CUpmUuvI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/94CUpmUuvI.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/96d8Q2ZqRd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/96d8Q2ZqRd.verified.txt index 10e18559dc..01b281afbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/96d8Q2ZqRd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/96d8Q2ZqRd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/97KpbL0FdR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/97KpbL0FdR.verified.txt index 2685f2bb48..2ce28b4375 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/97KpbL0FdR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/97KpbL0FdR.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9E6gLBcHIu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9E6gLBcHIu.verified.txt index 0d7faf1754..c5624b3767 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9E6gLBcHIu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9E6gLBcHIu.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9EpRRcfGyD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9EpRRcfGyD.verified.txt index dfea481d6c..7a745fd249 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9EpRRcfGyD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9EpRRcfGyD.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9JIAVifG4N.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9JIAVifG4N.verified.txt index aa633d65b8..cf862870ba 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9JIAVifG4N.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9JIAVifG4N.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9KzNVPKfyb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9KzNVPKfyb.verified.txt index 5ce91501b7..77b84e4986 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9KzNVPKfyb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9KzNVPKfyb.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9Y12quQzSn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9Y12quQzSn.verified.txt index 43920fc4cd..4fce9bccc9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9Y12quQzSn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9Y12quQzSn.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9tI1cnGakf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9tI1cnGakf.verified.txt index 50e5aa7047..5aaadcc37e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9tI1cnGakf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/9tI1cnGakf.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3LDARdFrZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3LDARdFrZ.verified.txt index 10c1867678..d7666393a9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3LDARdFrZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3LDARdFrZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3USVyZwFP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3USVyZwFP.verified.txt index 8ba4174dd8..2974ccb7f5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3USVyZwFP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A3USVyZwFP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A6dgrlP5XX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A6dgrlP5XX.verified.txt index f54829ebc8..7026c49fbd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A6dgrlP5XX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/A6dgrlP5XX.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AGUOBcbY4A.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AGUOBcbY4A.verified.txt index c20b25f0f5..5fbebc594e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AGUOBcbY4A.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AGUOBcbY4A.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AUAEAOhv0K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AUAEAOhv0K.verified.txt index 37a554dbd5..e4775bc164 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AUAEAOhv0K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AUAEAOhv0K.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AZTEicLUf8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AZTEicLUf8.verified.txt index 6fed76d258..25caa59efb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AZTEicLUf8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AZTEicLUf8.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AqPrNfEGu1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AqPrNfEGu1.verified.txt index f923a68061..93dcbae6e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AqPrNfEGu1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/AqPrNfEGu1.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/B6oAHeCpjv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/B6oAHeCpjv.verified.txt index 2e44e91a2c..3cda84088b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/B6oAHeCpjv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/B6oAHeCpjv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BCDkkorwLD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BCDkkorwLD.verified.txt index 84b001ed64..15723b97c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BCDkkorwLD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BCDkkorwLD.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BFDyBAn3es.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BFDyBAn3es.verified.txt index 98de96e3f8..e9f320277f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BFDyBAn3es.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BFDyBAn3es.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BU0UUvzzuK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BU0UUvzzuK.verified.txt index 6b241fde64..e61a25b48a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BU0UUvzzuK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BU0UUvzzuK.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BVedeMNqmq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BVedeMNqmq.verified.txt index f59bada533..7c0511a824 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BVedeMNqmq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BVedeMNqmq.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BjllcI68Mq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BjllcI68Mq.verified.txt index f0c8f82d95..1a315c6153 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BjllcI68Mq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BjllcI68Mq.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BoUPxEqWpx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BoUPxEqWpx.verified.txt index 302b52faaa..d62df0e349 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BoUPxEqWpx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/BoUPxEqWpx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bs7Onq0J0u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bs7Onq0J0u.verified.txt index 5981363a85..0cd425d7a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bs7Onq0J0u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bs7Onq0J0u.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bw4RQ5cmww.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bw4RQ5cmww.verified.txt index 267345df12..8becafc5df 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bw4RQ5cmww.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Bw4RQ5cmww.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ByxRkek1XT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ByxRkek1XT.verified.txt index 900ce4f967..b09987fcf9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ByxRkek1XT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ByxRkek1XT.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/C6N34ePBjP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/C6N34ePBjP.verified.txt index 57a6554514..55e01fe4e4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/C6N34ePBjP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/C6N34ePBjP.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CBLHvotK4Y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CBLHvotK4Y.verified.txt index a0651be987..3ea308c4e3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CBLHvotK4Y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CBLHvotK4Y.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CIpk6HUes4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CIpk6HUes4.verified.txt index c7e29411d0..594b0ae02b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CIpk6HUes4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CIpk6HUes4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CM6dqqGbT5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CM6dqqGbT5.verified.txt index 29eca706a2..5a2e7097c2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CM6dqqGbT5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CM6dqqGbT5.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CNZZORvmiq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CNZZORvmiq.verified.txt index b9b5421877..1fd7cec65e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CNZZORvmiq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CNZZORvmiq.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_None other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/COszDm7iPT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/COszDm7iPT.verified.txt index ffb81e6433..e45702f760 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/COszDm7iPT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/COszDm7iPT.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CQMHho7gsu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CQMHho7gsu.verified.txt index 6b438d28d5..0278da5171 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CQMHho7gsu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CQMHho7gsu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CRwevTxrKM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CRwevTxrKM.verified.txt index 6fd75a2b16..c86d22d4a2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CRwevTxrKM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CRwevTxrKM.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ChSNzH0nQf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ChSNzH0nQf.verified.txt index e184e13464..29c04be596 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ChSNzH0nQf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ChSNzH0nQf.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CljAURVTMy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CljAURVTMy.verified.txt index 66d3891f6b..57ccc3c08b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CljAURVTMy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CljAURVTMy.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CrCmZ1rFQQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CrCmZ1rFQQ.verified.txt index 27402f5b61..315ae400be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CrCmZ1rFQQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/CrCmZ1rFQQ.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D32fvJ2fXc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D32fvJ2fXc.verified.txt index 988430570a..aece50f3b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D32fvJ2fXc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D32fvJ2fXc.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D9RbhZiWwB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D9RbhZiWwB.verified.txt index 06e8b9e12c..4d2f485e47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D9RbhZiWwB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/D9RbhZiWwB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DFn3iuttpy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DFn3iuttpy.verified.txt index e6531227b5..c34dcfcd0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DFn3iuttpy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DFn3iuttpy.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DKrgSbis93.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DKrgSbis93.verified.txt index f41c9b773d..1e3472c26a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DKrgSbis93.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DKrgSbis93.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DWUGR1IukQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DWUGR1IukQ.verified.txt index 2cf86009c7..0eb02f7f01 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DWUGR1IukQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DWUGR1IukQ.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DcJ4YUqTxO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DcJ4YUqTxO.verified.txt index 4da3db1f78..86477f4043 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DcJ4YUqTxO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DcJ4YUqTxO.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DkoijShLy5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DkoijShLy5.verified.txt index f256e3ee5f..2991229546 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DkoijShLy5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DkoijShLy5.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DmVi2A1jh2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DmVi2A1jh2.verified.txt index 57dc7efeaf..26d53b692d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DmVi2A1jh2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DmVi2A1jh2.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Dvpv1gBrUQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Dvpv1gBrUQ.verified.txt index f76087361a..d66b535527 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Dvpv1gBrUQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Dvpv1gBrUQ.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DwiaPjLFwd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DwiaPjLFwd.verified.txt index 69fd751290..becc9a36e4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DwiaPjLFwd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/DwiaPjLFwd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EJHYFCuWsI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EJHYFCuWsI.verified.txt index 888179b16b..875896108c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EJHYFCuWsI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EJHYFCuWsI.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EjHVFORRmC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EjHVFORRmC.verified.txt index c5d5415e1b..21e9a6d4a6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EjHVFORRmC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EjHVFORRmC.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EpTtyqZnrq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EpTtyqZnrq.verified.txt index 74e50f5c2b..df3494aa47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EpTtyqZnrq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/EpTtyqZnrq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/F2ETlJ3TUM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/F2ETlJ3TUM.verified.txt index f1f22a4ff1..a474f4f0f5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/F2ETlJ3TUM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/F2ETlJ3TUM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FNBWotecr1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FNBWotecr1.verified.txt index b8e3cb2f92..238345a3cf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FNBWotecr1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FNBWotecr1.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FaNpjhWJnp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FaNpjhWJnp.verified.txt index 07829e88f9..6722d67b52 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FaNpjhWJnp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/FaNpjhWJnp.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/G1iz87Qh9v.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/G1iz87Qh9v.verified.txt index 760ab889e4..4997f278da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/G1iz87Qh9v.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/G1iz87Qh9v.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GAiFkQgtr9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GAiFkQgtr9.verified.txt index 49ab6d9293..7986cb32a2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GAiFkQgtr9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GAiFkQgtr9.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GFR12F2PgU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GFR12F2PgU.verified.txt index 5990f09627..846955c14a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GFR12F2PgU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GFR12F2PgU.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GGYsXO7NgY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GGYsXO7NgY.verified.txt index 277bc98a89..a09f9d7dd7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GGYsXO7NgY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GGYsXO7NgY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GNISh38TPA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GNISh38TPA.verified.txt index db0b656311..9ca14c51c6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GNISh38TPA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GNISh38TPA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GVdzVxyQF6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GVdzVxyQF6.verified.txt index 48f144bc82..76fe7bd252 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GVdzVxyQF6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GVdzVxyQF6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GbsChMfTbx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GbsChMfTbx.verified.txt index cb612ea22d..0e2846de15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GbsChMfTbx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GbsChMfTbx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gflk3zNGGZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gflk3zNGGZ.verified.txt index f2b9fda0a7..53c951af2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gflk3zNGGZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gflk3zNGGZ.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gh9VzxAfwQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gh9VzxAfwQ.verified.txt index 0d980f61ea..61cb6d2ce7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gh9VzxAfwQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gh9VzxAfwQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gneqedonte.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gneqedonte.verified.txt index 2010c30afe..6bf494b5f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gneqedonte.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gneqedonte.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GqkxwENyM0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GqkxwENyM0.verified.txt index 08f5059178..9fb4892d29 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GqkxwENyM0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/GqkxwENyM0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gr0OHLjXmU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gr0OHLjXmU.verified.txt index f9eab2f193..50aa1c5362 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gr0OHLjXmU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gr0OHLjXmU.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gw3oYjlkA3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gw3oYjlkA3.verified.txt index 9e58ec04c2..c569869cc5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gw3oYjlkA3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Gw3oYjlkA3.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HEWBDtS4rd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HEWBDtS4rd.verified.txt index bac82ae1af..1f5d955c6a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HEWBDtS4rd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HEWBDtS4rd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HUMS9Qwus4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HUMS9Qwus4.verified.txt index e8c9bea469..3e92b50586 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HUMS9Qwus4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HUMS9Qwus4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HgenO1WVxu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HgenO1WVxu.verified.txt index 5c152b4af4..e5b482392c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HgenO1WVxu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HgenO1WVxu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Hi7G9hl99c.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Hi7G9hl99c.verified.txt index e6715dbd55..6ac334683d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Hi7G9hl99c.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Hi7G9hl99c.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HyJgcfbHDZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HyJgcfbHDZ.verified.txt index d190a0ae0a..dd4e9e1c2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HyJgcfbHDZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HyJgcfbHDZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HzjTooszyT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HzjTooszyT.verified.txt index cb99b87822..a73a76b6d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HzjTooszyT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/HzjTooszyT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/I9QdnSKGsb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/I9QdnSKGsb.verified.txt index 508499715c..b1dd29ebdb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/I9QdnSKGsb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/I9QdnSKGsb.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ILL19WnisW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ILL19WnisW.verified.txt index 618d193426..f234929a03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ILL19WnisW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ILL19WnisW.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IU2j2AGjJy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IU2j2AGjJy.verified.txt index 655f01e485..12557d14ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IU2j2AGjJy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IU2j2AGjJy.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IcUtLq2cFK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IcUtLq2cFK.verified.txt index f7b58ca72a..25ad3a6f27 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IcUtLq2cFK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IcUtLq2cFK.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IexqvlCaDQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IexqvlCaDQ.verified.txt index 85f908cbf7..b15911b9ef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IexqvlCaDQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IexqvlCaDQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IgU7pSd2b3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IgU7pSd2b3.verified.txt index 2f05ea58d2..5136130882 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IgU7pSd2b3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IgU7pSd2b3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IhpvIgo996.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IhpvIgo996.verified.txt index e71de61d45..d92576f5de 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IhpvIgo996.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IhpvIgo996.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IpxlDCHwip.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IpxlDCHwip.verified.txt index 0dd1e9cd9e..517b1b4295 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IpxlDCHwip.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IpxlDCHwip.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IsRA5z9I1k.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IsRA5z9I1k.verified.txt index c492384c7c..d3134b9cff 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IsRA5z9I1k.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/IsRA5z9I1k.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Iwz4l9qDX0.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Iwz4l9qDX0.verified.txt index 7c9baebeb0..0c5761c608 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Iwz4l9qDX0.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Iwz4l9qDX0.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Ixz9CGLLpC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Ixz9CGLLpC.verified.txt index b2691ddfe9..de090f826a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Ixz9CGLLpC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Ixz9CGLLpC.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/J2x3kJ7Vuf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/J2x3kJ7Vuf.verified.txt index a563c17749..169e38d261 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/J2x3kJ7Vuf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/J2x3kJ7Vuf.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JFBRcrjEWE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JFBRcrjEWE.verified.txt index 468bd8a0d1..bd0a3cb7ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JFBRcrjEWE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JFBRcrjEWE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_None other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JH8bTC0lAN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JH8bTC0lAN.verified.txt index d30ac62eb4..b181321b5a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JH8bTC0lAN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JH8bTC0lAN.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JKGj0F7zh9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JKGj0F7zh9.verified.txt index fc232dc3db..86ee46d833 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JKGj0F7zh9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/JKGj0F7zh9.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jpd7SModHy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jpd7SModHy.verified.txt index 929d0bedd4..215031c625 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jpd7SModHy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jpd7SModHy.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jq9C6Uxpys.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jq9C6Uxpys.verified.txt index 04c4b764a3..5e5cb705aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jq9C6Uxpys.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Jq9C6Uxpys.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/K0hpgPcosp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/K0hpgPcosp.verified.txt index 36d9d1c774..1f4d5ed8ea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/K0hpgPcosp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/K0hpgPcosp.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KIyW41F6r6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KIyW41F6r6.verified.txt index 6d4be01d4d..4c3b91fce0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KIyW41F6r6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KIyW41F6r6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KSbl2FesJc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KSbl2FesJc.verified.txt index 3abde85d6f..6800f0f0f0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KSbl2FesJc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KSbl2FesJc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KcixvfqGrv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KcixvfqGrv.verified.txt index f912a2c5c7..ffa6dc0f3d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KcixvfqGrv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KcixvfqGrv.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KvZt0ajBE2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KvZt0ajBE2.verified.txt index dff771acc9..feb00f2d79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KvZt0ajBE2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KvZt0ajBE2.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KxI2Xy8cPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KxI2Xy8cPS.verified.txt index 06d48efd93..463951013b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KxI2Xy8cPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/KxI2Xy8cPS.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L2R0Fdeoqj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L2R0Fdeoqj.verified.txt index da2052e2d1..f3e2a1c8c9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L2R0Fdeoqj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L2R0Fdeoqj.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L5lrZ836KM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L5lrZ836KM.verified.txt index 25ee62330a..e757193c49 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L5lrZ836KM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/L5lrZ836KM.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LGZJJpm1uq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LGZJJpm1uq.verified.txt index 3a66a42470..ec5b4a6e5c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LGZJJpm1uq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LGZJJpm1uq.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LJUqwkNpMv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LJUqwkNpMv.verified.txt index fca1734edd..95dd9df48c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LJUqwkNpMv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LJUqwkNpMv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LW2tnWBeEw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LW2tnWBeEw.verified.txt index a88312e2e9..58147465d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LW2tnWBeEw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LW2tnWBeEw.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LpJxBQJvXV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LpJxBQJvXV.verified.txt index a274d3a10b..b29ef1fb60 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LpJxBQJvXV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LpJxBQJvXV.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LrT2a1VJPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LrT2a1VJPn.verified.txt index 20cf870b5f..144cb24815 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LrT2a1VJPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/LrT2a1VJPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M1t2y2UE8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M1t2y2UE8y.verified.txt index 244ecbd699..00ca9c90e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M1t2y2UE8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M1t2y2UE8y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M2bpxEl5IX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M2bpxEl5IX.verified.txt index 17f4d0c647..5171ca4593 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M2bpxEl5IX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M2bpxEl5IX.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M4NqZwdXw7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M4NqZwdXw7.verified.txt index 410f4c7105..12f7c7c48a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M4NqZwdXw7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M4NqZwdXw7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M7p8sbE3VI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M7p8sbE3VI.verified.txt index 26c00d12c1..8c40a0b22c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M7p8sbE3VI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/M7p8sbE3VI.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MY3XtRzu8x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MY3XtRzu8x.verified.txt index 5e9cd08925..aea2c55680 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MY3XtRzu8x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MY3XtRzu8x.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -384,10 +382,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mb8N0iGKMY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mb8N0iGKMY.verified.txt index c14f239238..1349063634 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mb8N0iGKMY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mb8N0iGKMY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mm2925bgtf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mm2925bgtf.verified.txt index ea7da6edde..8d22aa20f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mm2925bgtf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mm2925bgtf.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mnn3wVQyPT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mnn3wVQyPT.verified.txt index b989061da6..176b87e7b0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mnn3wVQyPT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mnn3wVQyPT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mqb1Y0oeGG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mqb1Y0oeGG.verified.txt index ad35d9c29f..a8d26a44a1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mqb1Y0oeGG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Mqb1Y0oeGG.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MrYuHPMv8V.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MrYuHPMv8V.verified.txt index 036c6fed45..ebdfff36b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MrYuHPMv8V.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/MrYuHPMv8V.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NA3ZnOKVDG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NA3ZnOKVDG.verified.txt index 7203d135dd..132279eb17 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NA3ZnOKVDG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NA3ZnOKVDG.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NBM2jrtjUt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NBM2jrtjUt.verified.txt index ac8de03b09..e8001ae5ea 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NBM2jrtjUt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NBM2jrtjUt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NDycAe2PMg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NDycAe2PMg.verified.txt index 7911bd5e5e..accbdb3a87 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NDycAe2PMg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NDycAe2PMg.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NG5PKVM1i8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NG5PKVM1i8.verified.txt index 1d1e0916e5..5f2f0f0c7d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NG5PKVM1i8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NG5PKVM1i8.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NGOTNmWxHE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NGOTNmWxHE.verified.txt index e7642d4624..818d73642b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NGOTNmWxHE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NGOTNmWxHE.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NWdbHdqTCk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NWdbHdqTCk.verified.txt index d43bada4be..4d01dff006 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NWdbHdqTCk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NWdbHdqTCk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NactUp7zA8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NactUp7zA8.verified.txt index ac9597e3da..d523b34ab5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NactUp7zA8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/NactUp7zA8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O0BEOb5WWh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O0BEOb5WWh.verified.txt index 470006acda..9d52798eaa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O0BEOb5WWh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O0BEOb5WWh.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O4k87fg44n.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O4k87fg44n.verified.txt index 45c0fcecc2..a600cf084a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O4k87fg44n.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/O4k87fg44n.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OGgQrxiJWS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OGgQrxiJWS.verified.txt index b1310f8cae..3e9b3dc101 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OGgQrxiJWS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OGgQrxiJWS.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OYbSWpy3QY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OYbSWpy3QY.verified.txt index 8b975133a7..9d50b7ccf5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OYbSWpy3QY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OYbSWpy3QY.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OdHZSaUec6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OdHZSaUec6.verified.txt index 5d94472e0e..a4316122ae 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OdHZSaUec6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OdHZSaUec6.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OjTi3HCxBo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OjTi3HCxBo.verified.txt index 0fc232a183..eb35c574c5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OjTi3HCxBo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OjTi3HCxBo.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OmZRklyqlE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OmZRklyqlE.verified.txt index 2b3a0bc8a6..f8a41079cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OmZRklyqlE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OmZRklyqlE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OpqpTR5Cfw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OpqpTR5Cfw.verified.txt index f1e853bc57..8e0ad9cabb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OpqpTR5Cfw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OpqpTR5Cfw.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Orfrz26F6p.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Orfrz26F6p.verified.txt index f0004c4619..a744439305 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Orfrz26F6p.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Orfrz26F6p.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OvvLaH9ciz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OvvLaH9ciz.verified.txt index 166e406b35..6cc56fad3f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OvvLaH9ciz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/OvvLaH9ciz.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/P38PxflHyU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/P38PxflHyU.verified.txt index ab105e770e..f236cd48af 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/P38PxflHyU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/P38PxflHyU.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PGGOpb6LGM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PGGOpb6LGM.verified.txt index c4079d8cc1..3fefa4ecca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PGGOpb6LGM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PGGOpb6LGM.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PTpzjKquN2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PTpzjKquN2.verified.txt index f870655929..ef61e28397 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PTpzjKquN2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PTpzjKquN2.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PXabnXFmkt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PXabnXFmkt.verified.txt index 9056824577..1d51c414ad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PXabnXFmkt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PXabnXFmkt.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PoaNRmbqSN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PoaNRmbqSN.verified.txt index 2ef4e1e93c..f0b7cc2f55 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PoaNRmbqSN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PoaNRmbqSN.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PotQ6D23Ho.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PotQ6D23Ho.verified.txt index dd662509b8..bfc411d616 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PotQ6D23Ho.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PotQ6D23Ho.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PvSh3xfKNr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PvSh3xfKNr.verified.txt index 9a22048dee..c75345a6b4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PvSh3xfKNr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/PvSh3xfKNr.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pw9SxJyXzg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pw9SxJyXzg.verified.txt index 2f108a48c7..d95ca7d885 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pw9SxJyXzg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pw9SxJyXzg.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pzgea5Ve0w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pzgea5Ve0w.verified.txt index 3c94d873c1..935517fd83 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pzgea5Ve0w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Pzgea5Ve0w.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q0Mq3bhsum.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q0Mq3bhsum.verified.txt index c23a94b0f8..0a4d5a3cc7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q0Mq3bhsum.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q0Mq3bhsum.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q8OFEgFlen.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q8OFEgFlen.verified.txt index 8b0f23f0a6..125cc2ed2f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q8OFEgFlen.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Q8OFEgFlen.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QEUSa16DTz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QEUSa16DTz.verified.txt index dd774eebbf..ba395124da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QEUSa16DTz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QEUSa16DTz.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QFbd4pSPuE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QFbd4pSPuE.verified.txt index 7cd9fad1c9..16be214735 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QFbd4pSPuE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QFbd4pSPuE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QIBhW6m5CJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QIBhW6m5CJ.verified.txt index ba3b391cc1..82253b5b99 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QIBhW6m5CJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QIBhW6m5CJ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QK0pbKa6cP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QK0pbKa6cP.verified.txt index e5a5f563bd..284df1a624 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QK0pbKa6cP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QK0pbKa6cP.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QKQfFAiHK3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QKQfFAiHK3.verified.txt index 7e7c599c24..adbbae7dd5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QKQfFAiHK3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QKQfFAiHK3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QP1xf9TOLm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QP1xf9TOLm.verified.txt index 22c29357e0..43b5795313 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QP1xf9TOLm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QP1xf9TOLm.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QS5g7tNsec.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QS5g7tNsec.verified.txt index 6bd036afcc..ab1c5da3b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QS5g7tNsec.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QS5g7tNsec.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QSjyO91mPO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QSjyO91mPO.verified.txt index 43a0482c33..5b42717879 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QSjyO91mPO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QSjyO91mPO.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QXgcj72buY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QXgcj72buY.verified.txt index e038349646..fbb2659041 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QXgcj72buY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QXgcj72buY.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYiOTtsnlp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYiOTtsnlp.verified.txt index bcb76428d4..2ba0dce34d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYiOTtsnlp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYiOTtsnlp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYjaeKkCrb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYjaeKkCrb.verified.txt index 503350f02d..ed8e687b12 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYjaeKkCrb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYjaeKkCrb.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYpxxqI6dm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYpxxqI6dm.verified.txt index 787ce5b076..9e2aacef66 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYpxxqI6dm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QYpxxqI6dm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qhxij72iOv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qhxij72iOv.verified.txt index 619d9b7262..6517bffcf1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qhxij72iOv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qhxij72iOv.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qln8PADpKp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qln8PADpKp.verified.txt index d6b3dfbd80..60139d8fde 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qln8PADpKp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qln8PADpKp.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QltroljHXp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QltroljHXp.verified.txt index f5fdc89beb..1af313ee44 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QltroljHXp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/QltroljHXp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qn3vbsWr8n.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qn3vbsWr8n.verified.txt index 85b11b7706..cd09bca343 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qn3vbsWr8n.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Qn3vbsWr8n.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R0E5Jw9CA1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R0E5Jw9CA1.verified.txt index 5bd912ce56..506a32d4f8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R0E5Jw9CA1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R0E5Jw9CA1.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R1tSxHqFWR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R1tSxHqFWR.verified.txt index 2faae67513..d8db8595cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R1tSxHqFWR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/R1tSxHqFWR.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RFydcSrrCY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RFydcSrrCY.verified.txt index 58cd2914c9..02202f4491 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RFydcSrrCY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RFydcSrrCY.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RSvHJzWcVx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RSvHJzWcVx.verified.txt index dc47b09640..8763852f02 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RSvHJzWcVx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RSvHJzWcVx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RTVo1L1S2u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RTVo1L1S2u.verified.txt index 1dbad46cfa..4bdc459529 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RTVo1L1S2u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RTVo1L1S2u.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RWJ3Sfbkvu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RWJ3Sfbkvu.verified.txt index 6f0e6692e7..0012dd4f82 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RWJ3Sfbkvu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/RWJ3Sfbkvu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rb2WW2LEIf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rb2WW2LEIf.verified.txt index cd98593abe..70f298db50 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rb2WW2LEIf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rb2WW2LEIf.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rj61S1p4Cs.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rj61S1p4Cs.verified.txt index 5d288d2c47..b201329222 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rj61S1p4Cs.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Rj61S1p4Cs.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/S6kTKimLen.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/S6kTKimLen.verified.txt index 9a00b02fc9..71d698e5b2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/S6kTKimLen.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/S6kTKimLen.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SEofJbUjIt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SEofJbUjIt.verified.txt index 02f1265f64..1db112bc05 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SEofJbUjIt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SEofJbUjIt.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SGXzWPLMoG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SGXzWPLMoG.verified.txt index 9ce7827db3..0260f347a7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SGXzWPLMoG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SGXzWPLMoG.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Double Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SKiA26rgZo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SKiA26rgZo.verified.txt index 69a838d666..0745a57791 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SKiA26rgZo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SKiA26rgZo.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/STSsLEMKD8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/STSsLEMKD8.verified.txt index 992d1a3a9b..70c192d749 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/STSsLEMKD8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/STSsLEMKD8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SaRnK4FOpb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SaRnK4FOpb.verified.txt index 752d48ed8b..80270ef822 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SaRnK4FOpb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SaRnK4FOpb.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ShlrzFT0jF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ShlrzFT0jF.verified.txt index fa7dd8407d..deba5dba29 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ShlrzFT0jF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ShlrzFT0jF.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SjBV0t0Bz5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SjBV0t0Bz5.verified.txt index 5bad0bfdb8..f852219d6d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SjBV0t0Bz5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SjBV0t0Bz5.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SoTNs8IENd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SoTNs8IENd.verified.txt index 46b55d4ff3..093e6e14cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SoTNs8IENd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/SoTNs8IENd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/St5iPsOfp9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/St5iPsOfp9.verified.txt index a5c810ea67..a049ece532 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/St5iPsOfp9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/St5iPsOfp9.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Syy4m946O7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Syy4m946O7.verified.txt index ee0885b117..0f9a20d8b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Syy4m946O7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Syy4m946O7.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/T97m7kTtiO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/T97m7kTtiO.verified.txt index 9f2dc9f9ac..7c7d1222ab 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/T97m7kTtiO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/T97m7kTtiO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TLejc0vivf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TLejc0vivf.verified.txt index 32478c9158..ed4ffb6352 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TLejc0vivf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TLejc0vivf.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TMSWRtjLNE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TMSWRtjLNE.verified.txt index 85b3c44a2d..adc2dbe63d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TMSWRtjLNE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TMSWRtjLNE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Thad6nEDD5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Thad6nEDD5.verified.txt index 989e21660e..56d7bfbfec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Thad6nEDD5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Thad6nEDD5.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TxGznMqzl8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TxGznMqzl8.verified.txt index 8033c704af..f4423f3ea0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TxGznMqzl8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/TxGznMqzl8.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Tzj6ixyhFT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Tzj6ixyhFT.verified.txt index 0dfc53c0fc..c5a50d0351 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Tzj6ixyhFT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Tzj6ixyhFT.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/U1kmAlbHnW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/U1kmAlbHnW.verified.txt index 64448ace95..3727a657d7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/U1kmAlbHnW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/U1kmAlbHnW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UGO2JRZLwy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UGO2JRZLwy.verified.txt index 581703ee47..a93770b1d6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UGO2JRZLwy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UGO2JRZLwy.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UK13zlv5RG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UK13zlv5RG.verified.txt index 5e05381ac9..39eca263e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UK13zlv5RG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UK13zlv5RG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UMDF9cNbZt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UMDF9cNbZt.verified.txt index bdf91b9dd3..6be16ca039 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UMDF9cNbZt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UMDF9cNbZt.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UPBfoIRiMu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UPBfoIRiMu.verified.txt index a043ea6483..36372a2ee4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UPBfoIRiMu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UPBfoIRiMu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UY4TVAzonK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UY4TVAzonK.verified.txt index 19c15b22e9..aabdc4b289 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UY4TVAzonK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UY4TVAzonK.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Decimal Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UcYHMaBSbR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UcYHMaBSbR.verified.txt index c1bdab8e0a..a6e93ea185 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UcYHMaBSbR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UcYHMaBSbR.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UfU9I8I2y8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UfU9I8I2y8.verified.txt index b22255c313..4f0bc97b03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UfU9I8I2y8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UfU9I8I2y8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uhx1npmK9K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uhx1npmK9K.verified.txt index 02bba367ec..f34fa37f0f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uhx1npmK9K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uhx1npmK9K.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uo93eWjnAg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uo93eWjnAg.verified.txt index 82a903e6e6..09da0d5dae 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uo93eWjnAg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Uo93eWjnAg.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UoFOACfBnq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UoFOACfBnq.verified.txt index 33170bd0a5..8140d9a318 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UoFOACfBnq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/UoFOACfBnq.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/V4MmKA6xMl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/V4MmKA6xMl.verified.txt index f681063c03..f86ca1fae9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/V4MmKA6xMl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/V4MmKA6xMl.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VBnnCDpbsi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VBnnCDpbsi.verified.txt index 25ed4defb2..9e50063be0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VBnnCDpbsi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VBnnCDpbsi.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaKKm35S95.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaKKm35S95.verified.txt index 044545fdb5..784b7f3401 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaKKm35S95.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaKKm35S95.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaeumdU1ie.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaeumdU1ie.verified.txt index 1dd739c154..42c2de2c1f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaeumdU1ie.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VaeumdU1ie.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VfmDAdXzKM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VfmDAdXzKM.verified.txt index 373c624627..5a4fe97c2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VfmDAdXzKM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VfmDAdXzKM.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VhYMLsMLrL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VhYMLsMLrL.verified.txt index 6d2aabf9ea..c58cb70378 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VhYMLsMLrL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VhYMLsMLrL.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VvAJ9zwTgL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VvAJ9zwTgL.verified.txt index 8512338559..60f1c90f2a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VvAJ9zwTgL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VvAJ9zwTgL.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VxhYgsyVWB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VxhYgsyVWB.verified.txt index 31e6bd2175..0a8a917d69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VxhYgsyVWB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/VxhYgsyVWB.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W2jax7Jp8j.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W2jax7Jp8j.verified.txt index 595db0fa3b..c4f4adbb4a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W2jax7Jp8j.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W2jax7Jp8j.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W9Iz8LDSU6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W9Iz8LDSU6.verified.txt index 4e3ba3258a..4b1d502113 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W9Iz8LDSU6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/W9Iz8LDSU6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WEmd7N8AWm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WEmd7N8AWm.verified.txt index d3abc2bec4..cc1fff1db6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WEmd7N8AWm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WEmd7N8AWm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WHpY18dDBC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WHpY18dDBC.verified.txt index 7e1c46a44c..78184fa6b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WHpY18dDBC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WHpY18dDBC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WMVLzBfTuM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WMVLzBfTuM.verified.txt index 3af8e57ddb..a1adcc0522 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WMVLzBfTuM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WMVLzBfTuM.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WRw2ROnY9A.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WRw2ROnY9A.verified.txt index fb449a88d0..870838ac53 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WRw2ROnY9A.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WRw2ROnY9A.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WV6ag2NqHY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WV6ag2NqHY.verified.txt index b79581ec75..d67e377fcc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WV6ag2NqHY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WV6ag2NqHY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WXk0jNegxG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WXk0jNegxG.verified.txt index b9ac316734..986b9a79a5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WXk0jNegxG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WXk0jNegxG.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WhPLsKKG2Q.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WhPLsKKG2Q.verified.txt index 4be4e65311..05503be40c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WhPLsKKG2Q.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WhPLsKKG2Q.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WvGMnz5BEv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WvGMnz5BEv.verified.txt index 27dafee9b2..a29ee3db61 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WvGMnz5BEv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WvGMnz5BEv.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WzWV0pZmd4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WzWV0pZmd4.verified.txt index a45fcf0eea..bedec76c3f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WzWV0pZmd4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/WzWV0pZmd4.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X1X2lIs5BY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X1X2lIs5BY.verified.txt index 884d27180a..29c0fa331c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X1X2lIs5BY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X1X2lIs5BY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X2OeoMxfYQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X2OeoMxfYQ.verified.txt index 43746b999f..40e782c224 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X2OeoMxfYQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/X2OeoMxfYQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XMSN7TAOzP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XMSN7TAOzP.verified.txt index 2b7c68e02f..1ceff0c177 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XMSN7TAOzP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XMSN7TAOzP.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XSCVXLUIBn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XSCVXLUIBn.verified.txt index 4157bde647..099ef44941 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XSCVXLUIBn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XSCVXLUIBn.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XdmgypPx1z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XdmgypPx1z.verified.txt index 0e16ef2921..c5058bea98 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XdmgypPx1z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XdmgypPx1z.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XrmNw9ZJJ4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XrmNw9ZJJ4.verified.txt index 75d74d5c6e..4130dd3a32 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XrmNw9ZJJ4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XrmNw9ZJJ4.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XuWvEBMI74.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XuWvEBMI74.verified.txt index c619d09eb3..7fce5f12a5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XuWvEBMI74.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/XuWvEBMI74.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y2FIAvdeJd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y2FIAvdeJd.verified.txt index 1fe6749f00..32982e3c15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y2FIAvdeJd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y2FIAvdeJd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y953PXGMpp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y953PXGMpp.verified.txt index fc8b1613cf..6e912a471d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y953PXGMpp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Y953PXGMpp.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YGPrGOzJ1Z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YGPrGOzJ1Z.verified.txt index bd76494eb8..708ae4a79a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YGPrGOzJ1Z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YGPrGOzJ1Z.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YH8EVIXD2t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YH8EVIXD2t.verified.txt index 631d16bdef..51b33a6f9e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YH8EVIXD2t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YH8EVIXD2t.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YLETiC8egS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YLETiC8egS.verified.txt index 5af7f20411..91545e90f6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YLETiC8egS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YLETiC8egS.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YQ4C8lGTTp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YQ4C8lGTTp.verified.txt index 22620264aa..d8914f3bd5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YQ4C8lGTTp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YQ4C8lGTTp.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YWmAyKOz6K.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YWmAyKOz6K.verified.txt index cba6e3f8ff..bade53127e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YWmAyKOz6K.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YWmAyKOz6K.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -264,10 +262,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YcFI3Qezx8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YcFI3Qezx8.verified.txt index e879e05531..cad7ecf3fd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YcFI3Qezx8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YcFI3Qezx8.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YdJV3xN5f2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YdJV3xN5f2.verified.txt index f16823b38d..199918e5c4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YdJV3xN5f2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YdJV3xN5f2.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_None other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YmajZMirSq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YmajZMirSq.verified.txt index dd1b721b31..51ead5e810 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YmajZMirSq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YmajZMirSq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YsTXLEcU9e.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YsTXLEcU9e.verified.txt index 895c5db8e3..903db86483 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YsTXLEcU9e.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/YsTXLEcU9e.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Z8Pm73nJJG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Z8Pm73nJJG.verified.txt index 5f87cc53d6..0b7f1fa42f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Z8Pm73nJJG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/Z8Pm73nJJG.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZeQaA7MiO7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZeQaA7MiO7.verified.txt index 0e638b4fa0..d4ea6dbda6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZeQaA7MiO7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZeQaA7MiO7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZthSFYIJGF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZthSFYIJGF.verified.txt index 9901f55892..10e52b2857 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZthSFYIJGF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ZthSFYIJGF.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a5oBj4NMck.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a5oBj4NMck.verified.txt index b58861ceba..dde150ad14 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a5oBj4NMck.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a5oBj4NMck.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a9ZatkB5Rh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a9ZatkB5Rh.verified.txt index 65e5e95a61..23b79c1ddc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a9ZatkB5Rh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/a9ZatkB5Rh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/aXvLbB33o2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/aXvLbB33o2.verified.txt index d9dd5b3a0c..9d421015db 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/aXvLbB33o2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/aXvLbB33o2.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/adj4aYHt0N.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/adj4aYHt0N.verified.txt index 15f2294a7f..7fe63ec1f4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/adj4aYHt0N.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/adj4aYHt0N.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/afL8pQx47b.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/afL8pQx47b.verified.txt index 4176541eb4..7b228ae663 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/afL8pQx47b.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/afL8pQx47b.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ah4BJRkac6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ah4BJRkac6.verified.txt index 1934f15e62..01aa9a3c17 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ah4BJRkac6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ah4BJRkac6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ahssFnjtxv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ahssFnjtxv.verified.txt index 06bfbe5118..b166b102e5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ahssFnjtxv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ahssFnjtxv.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/avbmj03kZz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/avbmj03kZz.verified.txt index 05063f21af..03a331e792 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/avbmj03kZz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/avbmj03kZz.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/azYqyDbI89.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/azYqyDbI89.verified.txt index 714bf92f99..17e26f049d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/azYqyDbI89.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/azYqyDbI89.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/b1L0gWBHIr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/b1L0gWBHIr.verified.txt index b1d42ed22b..29a3c02b8d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/b1L0gWBHIr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/b1L0gWBHIr.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bCdroQZubL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bCdroQZubL.verified.txt index 74def340c9..aa921e98ce 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bCdroQZubL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bCdroQZubL.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bGXLKzz8DB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bGXLKzz8DB.verified.txt index 6fbf5383f6..2f779948ad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bGXLKzz8DB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bGXLKzz8DB.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bXddhCA2bk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bXddhCA2bk.verified.txt index 4cbd130162..3e1d13f63b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bXddhCA2bk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bXddhCA2bk.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bbZ1hzo62z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bbZ1hzo62z.verified.txt index 718f90c129..61c73bf4f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bbZ1hzo62z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bbZ1hzo62z.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bkRaWa4KBI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bkRaWa4KBI.verified.txt index 15878dc8ef..83efbf94d1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bkRaWa4KBI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/bkRaWa4KBI.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c28q0sGcCL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c28q0sGcCL.verified.txt index d6143a2519..afb3a23aef 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c28q0sGcCL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c28q0sGcCL.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c3TT09DnKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c3TT09DnKl.verified.txt index 6063119f09..7aebab58b1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c3TT09DnKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/c3TT09DnKl.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCYxjmht9t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCYxjmht9t.verified.txt index cfd80950a6..0e93aa6558 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCYxjmht9t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCYxjmht9t.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCwywzjRWf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCwywzjRWf.verified.txt index f20e3631fd..732f1d988f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCwywzjRWf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cCwywzjRWf.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ce82vTL7WE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ce82vTL7WE.verified.txt index c91bc434fc..fe49c0cd87 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ce82vTL7WE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ce82vTL7WE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cgyb3Z1MNu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cgyb3Z1MNu.verified.txt index 6cda8d68f6..06994eb8da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cgyb3Z1MNu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cgyb3Z1MNu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cjKn08z80L.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cjKn08z80L.verified.txt index c17d08dd7b..8c0f41f203 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cjKn08z80L.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cjKn08z80L.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ckL3tklASo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ckL3tklASo.verified.txt index 976d75a811..783ee43f25 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ckL3tklASo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ckL3tklASo.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cweFBjQXPi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cweFBjQXPi.verified.txt index bdc6f1a575..c77291046b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cweFBjQXPi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/cweFBjQXPi.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dAgWjdgDUL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dAgWjdgDUL.verified.txt index fff41d091b..5be33e2009 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dAgWjdgDUL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dAgWjdgDUL.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dQcYTBwxmD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dQcYTBwxmD.verified.txt index 3996c305ec..b8b2fc83c6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dQcYTBwxmD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dQcYTBwxmD.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dTLky56KCx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dTLky56KCx.verified.txt index 5728904c20..0df1f217cb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dTLky56KCx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dTLky56KCx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dctvtQKUed.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dctvtQKUed.verified.txt index 1fc15078df..e34c1a1655 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dctvtQKUed.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dctvtQKUed.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dlliqRFG8F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dlliqRFG8F.verified.txt index b087f3a620..f5e17458cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dlliqRFG8F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dlliqRFG8F.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/doB99AkL6u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/doB99AkL6u.verified.txt index 1c2f0dd484..d91a635044 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/doB99AkL6u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/doB99AkL6u.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dozvtqmXTf.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dozvtqmXTf.verified.txt index bc95ee277c..2f0288eaab 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dozvtqmXTf.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/dozvtqmXTf.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/e5w3qMBSUV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/e5w3qMBSUV.verified.txt index 8a3a1cb9c2..10f1ed940d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/e5w3qMBSUV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/e5w3qMBSUV.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eC9vCgYOWk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eC9vCgYOWk.verified.txt index 35d153c3b4..56a59bd464 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eC9vCgYOWk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eC9vCgYOWk.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGA5iLYrBa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGA5iLYrBa.verified.txt index b1804f5bc2..1d0ad46776 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGA5iLYrBa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGA5iLYrBa.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGknqt2HLN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGknqt2HLN.verified.txt index 83edd53622..447c870d1c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGknqt2HLN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eGknqt2HLN.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eMTuX13uJG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eMTuX13uJG.verified.txt index 7704953aa4..811fc3e453 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eMTuX13uJG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/eMTuX13uJG.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/edQRdUJhOW.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/edQRdUJhOW.verified.txt index ca01604d25..5ebb945a65 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/edQRdUJhOW.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/edQRdUJhOW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ejIFJCoUNA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ejIFJCoUNA.verified.txt index acf6cf45ec..68ba30c373 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ejIFJCoUNA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ejIFJCoUNA.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/evEmsereRx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/evEmsereRx.verified.txt index 1f5f30f0c6..a862ee3c86 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/evEmsereRx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/evEmsereRx.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezHOpJ7fUj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezHOpJ7fUj.verified.txt index 4e963b974e..5278e11d63 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezHOpJ7fUj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezHOpJ7fUj.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezRUaCxvJz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezRUaCxvJz.verified.txt index 5c5675bc14..8e9ed95aec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezRUaCxvJz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ezRUaCxvJz.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f33sdUZvTD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f33sdUZvTD.verified.txt index f0893e2c53..5c42d29294 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f33sdUZvTD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f33sdUZvTD.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f4E4rb8ZNP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f4E4rb8ZNP.verified.txt index 948228c525..86063c5be5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f4E4rb8ZNP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f4E4rb8ZNP.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8BEBcAxXH.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8BEBcAxXH.verified.txt index d33117c775..934c2b8c95 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8BEBcAxXH.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8BEBcAxXH.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8GfgtBpEy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8GfgtBpEy.verified.txt index de284d73e1..ef991bc136 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8GfgtBpEy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/f8GfgtBpEy.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fBsIsd9NEC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fBsIsd9NEC.verified.txt index 44504b07eb..21185d00f1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fBsIsd9NEC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fBsIsd9NEC.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fEVDUjY0o4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fEVDUjY0o4.verified.txt index a49f73ccee..dc682cd22e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fEVDUjY0o4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fEVDUjY0o4.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fNBZi3EAxz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fNBZi3EAxz.verified.txt index 3dfc1667d8..5321a459f3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fNBZi3EAxz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fNBZi3EAxz.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fTe1zpBEKG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fTe1zpBEKG.verified.txt index 66347c0914..62d0fdd886 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fTe1zpBEKG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fTe1zpBEKG.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fbY411cXaQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fbY411cXaQ.verified.txt index 004d03e19d..21c3d25205 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fbY411cXaQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fbY411cXaQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fe1G3hjBI7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fe1G3hjBI7.verified.txt index 96236a7757..6a9b414ffd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fe1G3hjBI7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fe1G3hjBI7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fiHEMJtEsE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fiHEMJtEsE.verified.txt index 86c3bc526e..057fc3097f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fiHEMJtEsE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/fiHEMJtEsE.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftCvNHLbGt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftCvNHLbGt.verified.txt index 381eb7cf70..607a2b4d14 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftCvNHLbGt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftCvNHLbGt.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftvGXa4dWE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftvGXa4dWE.verified.txt index 5bda56ab2a..62f2d7af9d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftvGXa4dWE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ftvGXa4dWE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/g32LIqIkv7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/g32LIqIkv7.verified.txt index d9bddbd627..a206a32e2c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/g32LIqIkv7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/g32LIqIkv7.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gKDRuR0huT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gKDRuR0huT.verified.txt index e1dcf8e043..35fd177cd3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gKDRuR0huT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gKDRuR0huT.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gYgXvUXMCp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gYgXvUXMCp.verified.txt index 4c5257c484..70e71601c8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gYgXvUXMCp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gYgXvUXMCp.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ga0wMsAonO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ga0wMsAonO.verified.txt index b5d02ab080..48cb0f412d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ga0wMsAonO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ga0wMsAonO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gkp9EIvkaa.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gkp9EIvkaa.verified.txt index fd73eadf9c..9de842c25c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gkp9EIvkaa.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gkp9EIvkaa.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gtkWuS4mxC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gtkWuS4mxC.verified.txt index 0d71c7d79a..14919e5220 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gtkWuS4mxC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gtkWuS4mxC.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gzmrfxjvCP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gzmrfxjvCP.verified.txt index 9dcdb286b7..c6874e780e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gzmrfxjvCP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/gzmrfxjvCP.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h4SvTp4jSu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h4SvTp4jSu.verified.txt index e0ea6bd0be..ceac2e1248 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h4SvTp4jSu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h4SvTp4jSu.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h7ClEQLrXD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h7ClEQLrXD.verified.txt index 8fdc933c8d..6368829f48 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h7ClEQLrXD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/h7ClEQLrXD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hFwcREtVxI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hFwcREtVxI.verified.txt index ae2def0166..b8fb83301c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hFwcREtVxI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hFwcREtVxI.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hM00cICNF7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hM00cICNF7.verified.txt index ad5c198149..a34be29d06 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hM00cICNF7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hM00cICNF7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hhqwRoieBm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hhqwRoieBm.verified.txt index 3f215b1fde..acd2ddfd85 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hhqwRoieBm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hhqwRoieBm.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hiuywL54ka.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hiuywL54ka.verified.txt index 08db8389f2..53fe56eed7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hiuywL54ka.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hiuywL54ka.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hjyaHa29Jz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hjyaHa29Jz.verified.txt index a2fd418fff..be28767631 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hjyaHa29Jz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hjyaHa29Jz.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hkwUcdbmgj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hkwUcdbmgj.verified.txt index a341b50888..4d89473e45 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hkwUcdbmgj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hkwUcdbmgj.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hndLiJbd4Z.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hndLiJbd4Z.verified.txt index 6852bd88fa..646f37d398 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hndLiJbd4Z.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hndLiJbd4Z.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hxY0NP06cd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hxY0NP06cd.verified.txt index 38f2c1c238..27fafd6923 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hxY0NP06cd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/hxY0NP06cd.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i1n2cAvbLN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i1n2cAvbLN.verified.txt index 1fac1be1a2..7ac905ac30 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i1n2cAvbLN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i1n2cAvbLN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i53vKZdcnE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i53vKZdcnE.verified.txt index 5647912a4d..31c67c494c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i53vKZdcnE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/i53vKZdcnE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iEIoC0JIq5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iEIoC0JIq5.verified.txt index ff14c16edb..8e11c5031d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iEIoC0JIq5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iEIoC0JIq5.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iHYaBR6vwE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iHYaBR6vwE.verified.txt index 9125b13744..5b0af49d69 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iHYaBR6vwE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iHYaBR6vwE.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -380,10 +378,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iLpbKMC6Xx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iLpbKMC6Xx.verified.txt index f4107b05d9..79a86d9771 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iLpbKMC6Xx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iLpbKMC6Xx.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iRFBrriNwb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iRFBrriNwb.verified.txt index 8a2cc81335..5a7ff14c84 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iRFBrriNwb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iRFBrriNwb.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -288,10 +287,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iS1nna8CAC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iS1nna8CAC.verified.txt index 519c7748b3..ff140c53ac 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iS1nna8CAC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iS1nna8CAC.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iZ7ClMlKcC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iZ7ClMlKcC.verified.txt index f8fe91731a..3ecb296b0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iZ7ClMlKcC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iZ7ClMlKcC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iamZENi5GA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iamZENi5GA.verified.txt index a7d6e25496..cc2e7ae051 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iamZENi5GA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iamZENi5GA.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ilzLRsLJfo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ilzLRsLJfo.verified.txt index 84262b3e9b..e74d08644e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ilzLRsLJfo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ilzLRsLJfo.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iq57t3NYGm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iq57t3NYGm.verified.txt index b60b6d8d4b..592753b4dc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iq57t3NYGm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/iq57t3NYGm.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/isLc6nM5Tv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/isLc6nM5Tv.verified.txt index a489a5de07..faa52b1f80 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/isLc6nM5Tv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/isLc6nM5Tv.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ixnB9gKHUC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ixnB9gKHUC.verified.txt index d05e7ae6c2..40a500db3a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ixnB9gKHUC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ixnB9gKHUC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/j8yvULf0nt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/j8yvULf0nt.verified.txt index 64e62bc761..5599235444 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/j8yvULf0nt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/j8yvULf0nt.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jGRIn427Rq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jGRIn427Rq.verified.txt index 0645228655..3415e34802 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jGRIn427Rq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jGRIn427Rq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jLSQYXoUZ7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jLSQYXoUZ7.verified.txt index d74e28cdaa..9185adf62f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jLSQYXoUZ7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jLSQYXoUZ7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -273,10 +272,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ja7E8gtQYK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ja7E8gtQYK.verified.txt index e307c1f62b..6f28ef2bd8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ja7E8gtQYK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ja7E8gtQYK.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ji3RViDCgB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ji3RViDCgB.verified.txt index a25e64e9bc..78ddd456b3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ji3RViDCgB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ji3RViDCgB.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jvXDKz4NAu.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jvXDKz4NAu.verified.txt index adf6917146..5f3018c817 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jvXDKz4NAu.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/jvXDKz4NAu.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/k1zq0pGwsL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/k1zq0pGwsL.verified.txt index ded9414d98..c9bafa11de 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/k1zq0pGwsL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/k1zq0pGwsL.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kHkNlfdv8y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kHkNlfdv8y.verified.txt index 9171c47580..d16ed3075a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kHkNlfdv8y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kHkNlfdv8y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kOeYQKLiTt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kOeYQKLiTt.verified.txt index 48a7ebff6b..a2609d1be1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kOeYQKLiTt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kOeYQKLiTt.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kPeQkL6w72.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kPeQkL6w72.verified.txt index ba5cd15695..eaa37bb2be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kPeQkL6w72.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/kPeQkL6w72.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ki9j6Vpq22.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ki9j6Vpq22.verified.txt index 075ddd882a..4c8e7a5f45 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ki9j6Vpq22.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ki9j6Vpq22.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/knLQXzoEom.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/knLQXzoEom.verified.txt index dce8644177..20fe1fb037 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/knLQXzoEom.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/knLQXzoEom.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ko4vyEOPdE.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ko4vyEOPdE.verified.txt index d818eb4295..c1c7693663 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ko4vyEOPdE.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ko4vyEOPdE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l1jw2uJGZg.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l1jw2uJGZg.verified.txt index 1fdb7e1834..0add473573 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l1jw2uJGZg.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l1jw2uJGZg.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int16 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l4e6XelAgq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l4e6XelAgq.verified.txt index ec1d3c2c86..1265867198 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l4e6XelAgq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l4e6XelAgq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l9FvsWjdUQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l9FvsWjdUQ.verified.txt index 7aa4462762..b5aae9464b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l9FvsWjdUQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/l9FvsWjdUQ.verified.txt @@ -122,7 +122,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lCFOThKDBj.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lCFOThKDBj.verified.txt index 1a9abfb692..0a3331c4d3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lCFOThKDBj.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lCFOThKDBj.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.String Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lDSTWX4oqG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lDSTWX4oqG.verified.txt index c26f8a0916..3997ec9aa5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lDSTWX4oqG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lDSTWX4oqG.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lE9ybfWQrn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lE9ybfWQrn.verified.txt index 6c51f6b417..1a0c34642d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lE9ybfWQrn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lE9ybfWQrn.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -392,10 +390,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lLir8SMe7M.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lLir8SMe7M.verified.txt index b2606c2bcc..2549eda18e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lLir8SMe7M.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lLir8SMe7M.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lQc2P8tXnM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lQc2P8tXnM.verified.txt index 24c7cdc367..bd6c59c1c4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lQc2P8tXnM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lQc2P8tXnM.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lbeQldPn11.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lbeQldPn11.verified.txt index 2e8e5b49ed..459952ec2e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lbeQldPn11.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lbeQldPn11.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lreSkFcGTB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lreSkFcGTB.verified.txt index 315411a133..826d9fc88c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lreSkFcGTB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lreSkFcGTB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lxjsvrr5pZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lxjsvrr5pZ.verified.txt index 9c58f05931..50959c9c03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lxjsvrr5pZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/lxjsvrr5pZ.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/m8oLii3zRi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/m8oLii3zRi.verified.txt index 2266cb9ac2..f786b5df8c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/m8oLii3zRi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/m8oLii3zRi.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mD8MIMFKXL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mD8MIMFKXL.verified.txt index cbe420fefa..45e3f765ca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mD8MIMFKXL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mD8MIMFKXL.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mEk9VnsQLA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mEk9VnsQLA.verified.txt index b04804a11b..7ca1a415be 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mEk9VnsQLA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mEk9VnsQLA.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mJ6I1elEKl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mJ6I1elEKl.verified.txt index 7789626fb0..96ac50d6e7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mJ6I1elEKl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mJ6I1elEKl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mKU2FtqWwc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mKU2FtqWwc.verified.txt index d7af3d2b82..446b8bc710 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mKU2FtqWwc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mKU2FtqWwc.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mMxWk4g3rN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mMxWk4g3rN.verified.txt index 4baedcf448..b921f169c1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mMxWk4g3rN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mMxWk4g3rN.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mOEBZdBIAJ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mOEBZdBIAJ.verified.txt index 5f3118f463..99a6e21051 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mOEBZdBIAJ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/mOEBZdBIAJ.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.DateTime Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/moZLFMo14E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/moZLFMo14E.verified.txt index 902b2cf319..7778a87101 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/moZLFMo14E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/moZLFMo14E.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/n3FTCPtxrx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/n3FTCPtxrx.verified.txt index dd6bddf934..07b474fe64 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/n3FTCPtxrx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/n3FTCPtxrx.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nWW4yQptVw.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nWW4yQptVw.verified.txt index 3097c093a0..ff25c46f23 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nWW4yQptVw.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nWW4yQptVw.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nlOjqjs5gK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nlOjqjs5gK.verified.txt index 2e5c9116b8..7589f6a1fc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nlOjqjs5gK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nlOjqjs5gK.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/npOkmTwfve.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/npOkmTwfve.verified.txt index ae3a4defe6..f2c9c514ca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/npOkmTwfve.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/npOkmTwfve.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nweFjpXFsL.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nweFjpXFsL.verified.txt index eb81d3d539..29b5b5e67c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nweFjpXFsL.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/nweFjpXFsL.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/o2otLTg8Vl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/o2otLTg8Vl.verified.txt index 14371c31a4..5cc855ec33 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/o2otLTg8Vl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/o2otLTg8Vl.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -341,10 +339,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oAGgO9fKDY.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oAGgO9fKDY.verified.txt index 5ea1036418..e1c3533a43 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oAGgO9fKDY.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oAGgO9fKDY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oE22J9gYls.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oE22J9gYls.verified.txt index 8ac46feeb0..2b4cd6482c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oE22J9gYls.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oE22J9gYls.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oQTi0amgPS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oQTi0amgPS.verified.txt index d60b57228d..ad243b8d7e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oQTi0amgPS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oQTi0amgPS.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -337,10 +335,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oV4NuQJ94t.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oV4NuQJ94t.verified.txt index 6755e16767..6a83d7c5fa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oV4NuQJ94t.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/oV4NuQJ94t.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ob9wFUFWgV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ob9wFUFWgV.verified.txt index 8d5e693e6a..b1482102c9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ob9wFUFWgV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ob9wFUFWgV.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -394,10 +392,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogC3zFKxHT.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogC3zFKxHT.verified.txt index 936a3ee2aa..688532cb16 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogC3zFKxHT.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogC3zFKxHT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogYbfmTqDU.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogYbfmTqDU.verified.txt index 65946337e7..96ce5431ec 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogYbfmTqDU.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ogYbfmTqDU.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/olJhMnzuPz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/olJhMnzuPz.verified.txt index dc8377fc02..1665ab63da 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/olJhMnzuPz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/olJhMnzuPz.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ono9JkTnAN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ono9JkTnAN.verified.txt index cfe823d936..c2ce33a7e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ono9JkTnAN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ono9JkTnAN.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -389,10 +387,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pJAWTfaxjm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pJAWTfaxjm.verified.txt index 7d87b9480a..fdbec9e669 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pJAWTfaxjm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pJAWTfaxjm.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pLhdZIuHaQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pLhdZIuHaQ.verified.txt index ade7c73155..4800a0f21b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pLhdZIuHaQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pLhdZIuHaQ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pMOF1Mk72u.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pMOF1Mk72u.verified.txt index 24ae0b48c6..9b257adf47 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pMOF1Mk72u.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pMOF1Mk72u.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pWRLqETADC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pWRLqETADC.verified.txt index fb12d01eb7..634993a5cd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pWRLqETADC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pWRLqETADC.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pZUfYns8zh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pZUfYns8zh.verified.txt index b6f12de7dd..b0e3e5c22e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pZUfYns8zh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pZUfYns8zh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -280,10 +278,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjlj4RSZp8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjlj4RSZp8.verified.txt index e2ccfe80cf..86b31ea1d5 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjlj4RSZp8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjlj4RSZp8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjuiUy9p39.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjuiUy9p39.verified.txt index 3b6fd31eb4..1d2c2edba9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjuiUy9p39.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/pjuiUy9p39.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +282,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/prJkAE9w0g.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/prJkAE9w0g.verified.txt index 7fc9b70d78..d4f65ff579 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/prJkAE9w0g.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/prJkAE9w0g.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/puxvvYTSLO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/puxvvYTSLO.verified.txt index 982edd831d..0e8ba76f0b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/puxvvYTSLO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/puxvvYTSLO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/py7LKTErz2.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/py7LKTErz2.verified.txt index c53072a157..a4aba0c125 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/py7LKTErz2.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/py7LKTErz2.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q1SqYtVxW6.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q1SqYtVxW6.verified.txt index 0208ad5d2d..4d6d650aaa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q1SqYtVxW6.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q1SqYtVxW6.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q6DAdX5fCm.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q6DAdX5fCm.verified.txt index b071ff4c0f..b71684016d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q6DAdX5fCm.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/q6DAdX5fCm.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFU7Z1nijR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFU7Z1nijR.verified.txt index 88f1af515d..b595b07b19 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFU7Z1nijR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFU7Z1nijR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFoSkj7T13.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFoSkj7T13.verified.txt index 153f938393..e62c4cb985 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFoSkj7T13.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qFoSkj7T13.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ public System.Char Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterchar right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJTnnQqF2F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJTnnQqF2F.verified.txt index b478fb7df2..4b3dfadc66 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJTnnQqF2F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJTnnQqF2F.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJamRkTXNF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJamRkTXNF.verified.txt index a361541de6..16766207bd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJamRkTXNF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qJamRkTXNF.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qKD0Cb8gIA.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qKD0Cb8gIA.verified.txt index 53bc972585..586eb6d872 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qKD0Cb8gIA.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qKD0Cb8gIA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qLOlAXYfVi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qLOlAXYfVi.verified.txt index 97d9b57c9b..35dd26d5b7 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qLOlAXYfVi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qLOlAXYfVi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qOmsdLjitR.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qOmsdLjitR.verified.txt index 5b05663f6e..f94c603966 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qOmsdLjitR.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qOmsdLjitR.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qRU3nCwt2Q.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qRU3nCwt2Q.verified.txt index 304e1247b9..ddf1bada04 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qRU3nCwt2Q.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qRU3nCwt2Q.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qXtlb4zWul.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qXtlb4zWul.verified.txt index f2120139a6..92b2c02633 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qXtlb4zWul.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qXtlb4zWul.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -256,10 +254,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring left, internal_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterstring right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoe1Sy7pmx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoe1Sy7pmx.verified.txt index f72cf75f1b..bdbbec8b1d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoe1Sy7pmx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoe1Sy7pmx.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoqTMPwuTk.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoqTMPwuTk.verified.txt index 44488170de..6d2f431980 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoqTMPwuTk.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qoqTMPwuTk.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qrZcZG7jy7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qrZcZG7jy7.verified.txt index a75476bb8d..c07eb4ee7f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qrZcZG7jy7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qrZcZG7jy7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qumUHsSrPn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qumUHsSrPn.verified.txt index 280ebd92cc..30f2d4c3fe 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qumUHsSrPn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qumUHsSrPn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qwaXv9NxiD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qwaXv9NxiD.verified.txt index eb954f9493..e5137eded1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qwaXv9NxiD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/qwaXv9NxiD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rBAWglEJn8.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rBAWglEJn8.verified.txt index 9d61096578..a1ebdf4da4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rBAWglEJn8.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rBAWglEJn8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rM8XQKOGui.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rM8XQKOGui.verified.txt index 3241632e40..58afa0504c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rM8XQKOGui.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rM8XQKOGui.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rMw8A9V28h.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rMw8A9V28h.verified.txt index 3f83d886e3..5d266046bc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rMw8A9V28h.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rMw8A9V28h.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rQkruMLukG.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rQkruMLukG.verified.txt index 9c02967c69..5335715170 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rQkruMLukG.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rQkruMLukG.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rWqAPGZL5x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rWqAPGZL5x.verified.txt index 9c59cc89c5..7ae74caf2d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rWqAPGZL5x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rWqAPGZL5x.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -393,10 +391,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort left, public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConvertershort right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/reeO7MFnmp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/reeO7MFnmp.verified.txt index 07b76f9a60..5ffe2c841a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/reeO7MFnmp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/reeO7MFnmp.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rjKVwCkFkr.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rjKVwCkFkr.verified.txt index a9b4d92a2c..2669ea927e 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rjKVwCkFkr.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rjKVwCkFkr.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -381,10 +379,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rkBgJGfViS.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rkBgJGfViS.verified.txt index bb08a05646..69cfa7cb65 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rkBgJGfViS.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rkBgJGfViS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rnBQvycZ6J.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rnBQvycZ6J.verified.txt index 4ff2318471..4065a29dd1 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rnBQvycZ6J.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rnBQvycZ6J.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rtAPDHfJfM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rtAPDHfJfM.verified.txt index 2cdf76cf23..853ae84a9d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rtAPDHfJfM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/rtAPDHfJfM.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s2DiwTa018.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s2DiwTa018.verified.txt index a93837e64d..fef7651c5a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s2DiwTa018.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s2DiwTa018.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s7fJpcky7C.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s7fJpcky7C.verified.txt index 7cb70d77d6..6d31d4298f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s7fJpcky7C.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/s7fJpcky7C.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sDmT7Ipq8w.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sDmT7Ipq8w.verified.txt index 3295de7bd6..0ce049e20a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sDmT7Ipq8w.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sDmT7Ipq8w.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sF3MH2BTEb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sF3MH2BTEb.verified.txt index a8ddbc8a67..93a9993edb 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sF3MH2BTEb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sF3MH2BTEb.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNBhPvC0ZD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNBhPvC0ZD.verified.txt index 56d4874172..62cdf020f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNBhPvC0ZD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNBhPvC0ZD.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNjpHmOrZx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNjpHmOrZx.verified.txt index 87b9e7cb54..c7ab232b95 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNjpHmOrZx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sNjpHmOrZx.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sW6z1OQoty.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sW6z1OQoty.verified.txt index 831027b3fe..25261170f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sW6z1OQoty.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sW6z1OQoty.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -269,10 +268,31 @@ public System.Boolean Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/saA0rCxOId.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/saA0rCxOId.verified.txt index 5a81c1a262..82e3e7060c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/saA0rCxOId.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/saA0rCxOId.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sqUxc6SwA4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sqUxc6SwA4.verified.txt index a7edf21c4b..bcd0659cca 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sqUxc6SwA4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/sqUxc6SwA4.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t2oZftMHf7.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t2oZftMHf7.verified.txt index a54cd93133..0ffa5ee178 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t2oZftMHf7.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t2oZftMHf7.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t88runt2vt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t88runt2vt.verified.txt index 805ac549f3..1a9bdd704f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t88runt2vt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/t88runt2vt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tZxLYsMc7s.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tZxLYsMc7s.verified.txt index 2c278f557d..d81638d1e6 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tZxLYsMc7s.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tZxLYsMc7s.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/taNk0UiCPi.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/taNk0UiCPi.verified.txt index 3900c17e9c..0a5b31b07d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/taNk0UiCPi.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/taNk0UiCPi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tbwwbOwGRx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tbwwbOwGRx.verified.txt index 9a9720d90a..6ddc919307 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tbwwbOwGRx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tbwwbOwGRx.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/td2WppMSEZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/td2WppMSEZ.verified.txt index 537ee61f4a..aa15926b9b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/td2WppMSEZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/td2WppMSEZ.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tep4bS6Kf1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tep4bS6Kf1.verified.txt index 71a23a2e69..da4e11d294 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tep4bS6Kf1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tep4bS6Kf1.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/thnPc0KPMs.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/thnPc0KPMs.verified.txt index a61abce82f..0c7373a2fd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/thnPc0KPMs.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/thnPc0KPMs.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tiGNpHQWuQ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tiGNpHQWuQ.verified.txt index d079a7cfb6..56ef7af7a0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tiGNpHQWuQ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/tiGNpHQWuQ.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -268,10 +267,31 @@ public System.Guid Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null && right == (internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid left, internal_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_Guid right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u4T9anXN0f.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u4T9anXN0f.verified.txt index cbc932d091..10c6b7617a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u4T9anXN0f.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u4T9anXN0f.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u8OrI8K7dy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u8OrI8K7dy.verified.txt index b49c78d14c..7a977ee26b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u8OrI8K7dy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/u8OrI8K7dy.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -296,10 +294,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uJJwODw0ux.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uJJwODw0ux.verified.txt index 533b61f5ca..f0c265d1a9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uJJwODw0ux.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uJJwODw0ux.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_None other) + public readonly global::System.Boolean Equals(public_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKnQqNmYCb.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKnQqNmYCb.verified.txt index 0d031079b6..2553c8cb21 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKnQqNmYCb.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKnQqNmYCb.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKxa9dnwxN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKxa9dnwxN.verified.txt index 46c8d75ec7..79bb4f1fad 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKxa9dnwxN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uKxa9dnwxN.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -390,10 +388,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uRqUliBkSB.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uRqUliBkSB.verified.txt index a7ebd12cbe..5e5aa40766 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uRqUliBkSB.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uRqUliBkSB.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ulnJRmMBQP.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ulnJRmMBQP.verified.txt index 3db305c7b4..5a86d0082c 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ulnJRmMBQP.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/ulnJRmMBQP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/urMPdAgW9D.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/urMPdAgW9D.verified.txt index c930b9cc5c..d693532dee 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/urMPdAgW9D.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/urMPdAgW9D.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uzddWFB8hX.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uzddWFB8hX.verified.txt index 98fcb341ff..7675ce8471 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uzddWFB8hX.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/uzddWFB8hX.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/v1Rhgo3OFM.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/v1Rhgo3OFM.verified.txt index 045a599d40..450e58656f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/v1Rhgo3OFM.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/v1Rhgo3OFM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -275,10 +274,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vFikwMxO6k.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vFikwMxO6k.verified.txt index 3db2e3a2cf..36e47740fa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vFikwMxO6k.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vFikwMxO6k.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vLwvkrUp8m.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vLwvkrUp8m.verified.txt index aaf3959494..138a52e186 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vLwvkrUp8m.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vLwvkrUp8m.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(public_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(public_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vZw6KmmxXh.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vZw6KmmxXh.verified.txt index d1fd498beb..3f96c62c72 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vZw6KmmxXh.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vZw6KmmxXh.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vjSFj06YzO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vjSFj06YzO.verified.txt index 615c0ca4f7..173b9b07f9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vjSFj06YzO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vjSFj06YzO.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -274,10 +273,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTime right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vuivF4RGSI.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vuivF4RGSI.verified.txt index d710a29b7a..0de097caa8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vuivF4RGSI.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vuivF4RGSI.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vzFNnv2Src.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vzFNnv2Src.verified.txt index f352dc2570..dfbd25b1cc 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vzFNnv2Src.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/vzFNnv2Src.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w7Te0wz04x.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w7Te0wz04x.verified.txt index 90e869ecc0..7e54e81b25 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w7Te0wz04x.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w7Te0wz04x.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdouble right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w8O5xjEfnc.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w8O5xjEfnc.verified.txt index c901ed6945..6494112266 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w8O5xjEfnc.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/w8O5xjEfnc.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wXe7KG12UV.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wXe7KG12UV.verified.txt index 7f432522df..08ab8f31c3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wXe7KG12UV.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wXe7KG12UV.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/whzkVog54E.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/whzkVog54E.verified.txt index 37e269638d..5df12535c3 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/whzkVog54E.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/whzkVog54E.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -279,10 +278,31 @@ public System.Single Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wkgn6vRUUp.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wkgn6vRUUp.verified.txt index 383324921c..b7038aad15 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wkgn6vRUUp.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wkgn6vRUUp.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(internal_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wnlERr3VMl.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wnlERr3VMl.verified.txt index 83f19674ca..30b299ccfd 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wnlERr3VMl.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wnlERr3VMl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wsGKCM8fa3.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wsGKCM8fa3.verified.txt index 31804de0f9..63391563aa 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wsGKCM8fa3.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wsGKCM8fa3.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -277,10 +276,31 @@ public System.Int32 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wxYGk3yJSZ.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wxYGk3yJSZ.verified.txt index cfba5cb669..1a0b50a9c8 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wxYGk3yJSZ.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wxYGk3yJSZ.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wyPF9G8U9F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wyPF9G8U9F.verified.txt index 88c640500e..5c0616d070 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wyPF9G8U9F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/wyPF9G8U9F.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new public_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdDoA2n0F.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdDoA2n0F.verified.txt index ef4c2a9034..c524d3d158 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdDoA2n0F.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdDoA2n0F.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdSmLTgEe.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdSmLTgEe.verified.txt index 922167f430..823f07f657 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdSmLTgEe.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xAdSmLTgEe.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xE96VIg4tq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xE96VIg4tq.verified.txt index 19f6620358..2fa0a2a056 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xE96VIg4tq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xE96VIg4tq.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xK8UDd7XMx.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xK8UDd7XMx.verified.txt index 52e817f0c2..557eadf43a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xK8UDd7XMx.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xK8UDd7XMx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xNrbVapWwv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xNrbVapWwv.verified.txt index ae83f359bf..aba02f799b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xNrbVapWwv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xNrbVapWwv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -284,10 +283,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterfloat right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xVvNSbbu5y.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xVvNSbbu5y.verified.txt index c88e1776be..76fff75684 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xVvNSbbu5y.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xVvNSbbu5y.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xdivY90KyF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xdivY90KyF.verified.txt index 671e1a6bbb..235ca8b6f2 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xdivY90KyF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xdivY90KyF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null && right == (internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter left, internal_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverter right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xfdH2rbsMD.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xfdH2rbsMD.verified.txt index 0ae29c571d..8e92ae08d9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xfdH2rbsMD.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xfdH2rbsMD.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xrqw8zdbit.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xrqw8zdbit.verified.txt index ab141d7700..9eff38b97b 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xrqw8zdbit.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xrqw8zdbit.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -388,10 +386,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xtJmjxTvLO.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xtJmjxTvLO.verified.txt index 1621267380..1138503d88 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xtJmjxTvLO.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/xtJmjxTvLO.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -270,10 +269,31 @@ public System.DateTimeOffset Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null && right == (public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yCvPYHA5zF.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yCvPYHA5zF.verified.txt index e8c9914929..52f636a4e9 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yCvPYHA5zF.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yCvPYHA5zF.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yQu5xEnWkt.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yQu5xEnWkt.verified.txt index 0ec46d0e91..ff93c04567 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yQu5xEnWkt.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yQu5xEnWkt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new internal_readonly_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yjQiBx2yHn.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yjQiBx2yHn.verified.txt index ced6155e8c..a86bd65e68 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yjQiBx2yHn.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yjQiBx2yHn.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new internal_readonly_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_readonly_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yn2lfElICd.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yn2lfElICd.verified.txt index 3577a86837..069016c528 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yn2lfElICd.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yn2lfElICd.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yr8hAU7bv9.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yr8hAU7bv9.verified.txt index d799745893..636883a21d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yr8hAU7bv9.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/yr8hAU7bv9.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_recordConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z5GMR6FT65.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z5GMR6FT65.verified.txt index c914ee799e..7f3d504ae0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z5GMR6FT65.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z5GMR6FT65.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null && right == (internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal left, internal_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterdecimal right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z9IRzE0Kf5.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z9IRzE0Kf5.verified.txt index c7bbeaa205..81b9c6022f 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z9IRzE0Kf5.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/z9IRzE0Kf5.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Int64 Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterlong right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zHwuRVqHjC.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zHwuRVqHjC.verified.txt index 362c794499..732045117a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zHwuRVqHjC.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zHwuRVqHjC.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zIETLgBv7L.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zIETLgBv7L.verified.txt index 1cf63fb47e..a0dcf0c524 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zIETLgBv7L.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zIETLgBv7L.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -385,10 +383,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterSystem_DateTimeOffset right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zLA7TqTKPz.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zLA7TqTKPz.verified.txt index 767c5d0268..a934d0da7d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zLA7TqTKPz.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zLA7TqTKPz.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, internal_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zYVWOnWkq4.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zYVWOnWkq4.verified.txt index f596354d10..711ba2260d 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zYVWOnWkq4.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zYVWOnWkq4.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new public_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zZFVDd1nZN.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zZFVDd1nZN.verified.txt index 4782aee860..e3ce534b79 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zZFVDd1nZN.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zZFVDd1nZN.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zdGbJHTnbv.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zdGbJHTnbv.verified.txt index 7be2719f36..d0758c1cd4 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zdGbJHTnbv.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zdGbJHTnbv.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -282,10 +281,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null && right == (internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint left, internal_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterint right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zh3XlzyPIq.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zh3XlzyPIq.verified.txt index 1b065d645b..b241f96acf 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zh3XlzyPIq.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zh3XlzyPIq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -283,10 +282,31 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zlx9l08vEo.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zlx9l08vEo.verified.txt index 78d9f9a8ea..57eb91df70 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zlx9l08vEo.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zlx9l08vEo.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_readonly_partial_record_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zoP3vqAnI1.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zoP3vqAnI1.verified.txt index e5c8a13ada..58fec5445a 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zoP3vqAnI1.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zoP3vqAnI1.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool(value); } - - public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) + public readonly global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -300,10 +298,22 @@ namespace Whatever mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance.GetHashCode() : 0) + { + } + + static bool DoCompare(internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool left, internal_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbool right) { - public EfCoreValueComparer() : base((left, right) => (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zxcjLWzZLy.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zxcjLWzZLy.verified.txt index 6c23c5c6ef..1778925d03 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zxcjLWzZLy.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zxcjLWzZLy.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); @@ -278,10 +277,31 @@ public System.Byte Value mappingHints ) { } } - public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer - { - public EfCoreValueComparer() : base((left, right) => (left == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null && right == (public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte)null) || object.ReferenceEquals(left, right) || (!left._isInitialized && !right._isInitialized) || (left._isInitialized && right._isInitialized && left.Equals(right)), instance => instance._isInitialized ? instance._value.GetHashCode() : 0) { } + public class EfCoreValueComparer : global::Microsoft.EntityFrameworkCore.ChangeTracking.ValueComparer + { + public EfCoreValueComparer() : base( + (left, right) => DoCompare(left, right), + instance => instance._isInitialized ? instance._value.GetHashCode() : 0) + { } + + static bool DoCompare(public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte left, public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson___Conversions_EfCoreValueConverter___Conversions_DapperTypeHandler___Conversions_LinqToDbValueConverterbyte right) + { + // if both null, then they're equal + if (left is null) return right is null; + + // if only right is null, then they're not equal + if (right is null) return false; + + // if they're both the same reference, then they're equal + if (ReferenceEquals(left, right)) return true; + + // if neither are initialized, then they're equal + if(!left._isInitialized && !right._isInitialized) return true; + + return left._isInitialized && right._isInitialized && left._value.Equals(right._value); + } + } public class LinqToDbValueConverter : global::LinqToDB.Common.ValueConverter { diff --git a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zyZWVRfeKK.verified.txt b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zyZWVRfeKK.verified.txt index 427ed11e7a..bd870bfdf0 100644 --- a/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zyZWVRfeKK.verified.txt +++ b/tests/SnapshotTests/GenerationPermutations/snapshots/snap-v7.0/zyZWVRfeKK.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(public_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/01nS6lAGyH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/01nS6lAGyH.verified.txt index 99d6ebfd78..ba84df01d7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/01nS6lAGyH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/01nS6lAGyH.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsondecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsondecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsondecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/05U3aNH2DA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/05U3aNH2DA.verified.txt index 9209cbb1aa..b82c0350d9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/05U3aNH2DA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/05U3aNH2DA.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0NQaOismR6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0NQaOismR6.verified.txt index 59d8cd077b..728612757e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0NQaOismR6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0NQaOismR6.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0TG0lh6tni.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0TG0lh6tni.verified.txt index 9ae25ecf9b..73dc2362df 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0TG0lh6tni.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0TG0lh6tni.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0ULWm5g5hd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0ULWm5g5hd.verified.txt index f394a96916..a6dc840353 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0ULWm5g5hd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0ULWm5g5hd.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0bsVOaLjNE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0bsVOaLjNE.verified.txt index d67d690a27..2dfa2188aa 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0bsVOaLjNE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0bsVOaLjNE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_None other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0visg0NEH0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0visg0NEH0.verified.txt index 62fbaa91ce..f0af120d01 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0visg0NEH0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/0visg0NEH0.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonestring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/11JxKbRfHw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/11JxKbRfHw.verified.txt index b96c28e765..0dab9c3414 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/11JxKbRfHw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/11JxKbRfHw.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1LjfySz758.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1LjfySz758.verified.txt index e8752da6fb..6d9012f0f9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1LjfySz758.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1LjfySz758.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1SpdJin7KK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1SpdJin7KK.verified.txt index f957ee7f88..6529412505 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1SpdJin7KK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1SpdJin7KK.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1XgoZFkQxj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1XgoZFkQxj.verified.txt index deba7d8cf3..8f03facad7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1XgoZFkQxj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1XgoZFkQxj.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1bOBrXgs5u.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1bOBrXgs5u.verified.txt index b9d3eb04a7..c465102efd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1bOBrXgs5u.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1bOBrXgs5u.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1nsDuhmTMa.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1nsDuhmTMa.verified.txt index b933f48be8..43e365633e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1nsDuhmTMa.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1nsDuhmTMa.verified.txt @@ -124,7 +124,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1rQYIQt8I6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1rQYIQt8I6.verified.txt index 84e07a1b31..09f0ca96ba 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1rQYIQt8I6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1rQYIQt8I6.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1uVrUJV7gK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1uVrUJV7gK.verified.txt index 2a71169eb9..d04e9a8e19 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1uVrUJV7gK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1uVrUJV7gK.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1udKbEuQaT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1udKbEuQaT.verified.txt index 99dd14c6da..2d1a6b99f6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1udKbEuQaT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/1udKbEuQaT.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonebyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/24tALnqxO0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/24tALnqxO0.verified.txt index 261e5b811d..c0a3d35898 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/24tALnqxO0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/24tALnqxO0.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NoneSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/25sE0glzX4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/25sE0glzX4.verified.txt index cb43115050..a1f8b01aa9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/25sE0glzX4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/25sE0glzX4.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/29RhOCqDmk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/29RhOCqDmk.verified.txt index 28fcbe740d..010acb41b0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/29RhOCqDmk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/29RhOCqDmk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2EgR9NsgZ7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2EgR9NsgZ7.verified.txt index 927b82281b..07e176e3a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2EgR9NsgZ7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2EgR9NsgZ7.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2GerEwGiOj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2GerEwGiOj.verified.txt index 37bab8f2e4..e5ebf571ce 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2GerEwGiOj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2GerEwGiOj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2KtBdBnyIY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2KtBdBnyIY.verified.txt index 5e9d663cf8..8c3a711c06 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2KtBdBnyIY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2KtBdBnyIY.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2XBv7DNqeD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2XBv7DNqeD.verified.txt index 2a795ce740..a2dccffcde 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2XBv7DNqeD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2XBv7DNqeD.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2saBSJBnfI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2saBSJBnfI.verified.txt index 0f7ae8e398..3232059f79 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2saBSJBnfI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2saBSJBnfI.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2shBdNsnOO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2shBdNsnOO.verified.txt index 3fca297d0f..c742d32318 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2shBdNsnOO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2shBdNsnOO.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2wB3hlJGg4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2wB3hlJGg4.verified.txt index 8ff74bcf58..74f4500189 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2wB3hlJGg4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2wB3hlJGg4.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2yQa8Qn8mX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2yQa8Qn8mX.verified.txt index 1fccf9fb87..179746d1ba 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2yQa8Qn8mX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/2yQa8Qn8mX.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/30fRtba4R2.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/30fRtba4R2.verified.txt index 646b7750b5..5b9170ddb3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/30fRtba4R2.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/30fRtba4R2.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonestring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/32g9j14HNc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/32g9j14HNc.verified.txt index 5d8de1ef1a..5e25710fc0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/32g9j14HNc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/32g9j14HNc.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/35NT6bo5Af.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/35NT6bo5Af.verified.txt index f6376eda22..78b9efc28d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/35NT6bo5Af.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/35NT6bo5Af.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3HXMKvfPVj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3HXMKvfPVj.verified.txt index 2754eb3b3c..e81f7deef8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3HXMKvfPVj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3HXMKvfPVj.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3KuMSHl39n.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3KuMSHl39n.verified.txt index f96b420d6c..a4a15d3f5f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3KuMSHl39n.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3KuMSHl39n.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3NdeazgAje.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3NdeazgAje.verified.txt index 93c9ec2a80..3a085b8f2e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3NdeazgAje.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3NdeazgAje.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3b42iA3Un7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3b42iA3Un7.verified.txt index e6f4c33505..90804c02bf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3b42iA3Un7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3b42iA3Un7.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3iwsAByMlf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3iwsAByMlf.verified.txt index e484f0228b..2bf28cd9c0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3iwsAByMlf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/3iwsAByMlf.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/43JQT5JBIl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/43JQT5JBIl.verified.txt index f74008d0d1..0027cc493c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/43JQT5JBIl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/43JQT5JBIl.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4B2JBnaV6e.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4B2JBnaV6e.verified.txt index 905cd6972d..3b40909bcf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4B2JBnaV6e.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4B2JBnaV6e.verified.txt @@ -122,7 +122,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4CgOm8yXl7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4CgOm8yXl7.verified.txt index 5eab345a3a..538190ab6f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4CgOm8yXl7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4CgOm8yXl7.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4FpBuIsXlH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4FpBuIsXlH.verified.txt index b21ba1bd09..c77273a2fd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4FpBuIsXlH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4FpBuIsXlH.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4JNS7O0k9y.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4JNS7O0k9y.verified.txt index 5eb4cb4d9e..993a91f4f7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4JNS7O0k9y.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4JNS7O0k9y.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4NZqTZQOzi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4NZqTZQOzi.verified.txt index f3f73ed039..b20775ad9b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4NZqTZQOzi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4NZqTZQOzi.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4OehSdKrMZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4OehSdKrMZ.verified.txt index b481b0994a..e38968d4f4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4OehSdKrMZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4OehSdKrMZ.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4PMPKoQ5XB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4PMPKoQ5XB.verified.txt index 9331e70f79..bf1521e7e4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4PMPKoQ5XB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4PMPKoQ5XB.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4Q7Irup1Tm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4Q7Irup1Tm.verified.txt index 71dbce5670..3cce2699c2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4Q7Irup1Tm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4Q7Irup1Tm.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonefloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonefloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonefloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonefloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4UZZXyTRag.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4UZZXyTRag.verified.txt index b1c6873c24..e1f94c208f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4UZZXyTRag.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4UZZXyTRag.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4a2RAZJfq0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4a2RAZJfq0.verified.txt index 13d973905c..f977dbba37 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4a2RAZJfq0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4a2RAZJfq0.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4betbAbMkf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4betbAbMkf.verified.txt index f8edb62104..9a2eee8706 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4betbAbMkf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4betbAbMkf.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4kGIDthlbI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4kGIDthlbI.verified.txt index 6e5fcc6fcf..1f66e20be4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4kGIDthlbI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4kGIDthlbI.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4uvZ3W3Ed3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4uvZ3W3Ed3.verified.txt index 56584fd51f..131720139f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4uvZ3W3Ed3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4uvZ3W3Ed3.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4w1vBoRiTe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4w1vBoRiTe.verified.txt index 24a0e6b2b5..bd5426ffab 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4w1vBoRiTe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4w1vBoRiTe.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4xiswjgDTl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4xiswjgDTl.verified.txt index 2b703c4d89..b296ffb5bd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4xiswjgDTl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/4xiswjgDTl.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/57amG5p7Zh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/57amG5p7Zh.verified.txt index b1f02a945d..f4bef83868 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/57amG5p7Zh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/57amG5p7Zh.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5A04RifKRv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5A04RifKRv.verified.txt index a32177e4c0..63635a62ba 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5A04RifKRv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5A04RifKRv.verified.txt @@ -123,7 +123,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5GC06WmBSB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5GC06WmBSB.verified.txt index 943e095f74..e60231e2c4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5GC06WmBSB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5GC06WmBSB.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5Jdwip14W4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5Jdwip14W4.verified.txt index 14dce0a7ec..334721e63d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5Jdwip14W4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5Jdwip14W4.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5RPC2XJSen.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5RPC2XJSen.verified.txt index 50a0d44129..aeb7028fcc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5RPC2XJSen.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5RPC2XJSen.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsondecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5V99Lcne7q.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5V99Lcne7q.verified.txt index 68ac28b99b..62befa66ef 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5V99Lcne7q.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5V99Lcne7q.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5kXkn9IHpc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5kXkn9IHpc.verified.txt index 65d81ba242..292d22a641 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5kXkn9IHpc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5kXkn9IHpc.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5yZBUetNHU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5yZBUetNHU.verified.txt index fddc62b0db..daa9874990 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5yZBUetNHU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5yZBUetNHU.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5z6KWwvR5A.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5z6KWwvR5A.verified.txt index 5277af9618..3c2a845183 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5z6KWwvR5A.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/5z6KWwvR5A.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonechar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/60dOpSNvpD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/60dOpSNvpD.verified.txt index 8ebf063b59..3373ccb6e8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/60dOpSNvpD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/60dOpSNvpD.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/61M15eKnGF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/61M15eKnGF.verified.txt index 64379c29e2..5d9dd98027 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/61M15eKnGF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/61M15eKnGF.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6MtJ1imNf0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6MtJ1imNf0.verified.txt index 17229f9020..26c96c4635 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6MtJ1imNf0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6MtJ1imNf0.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VTf9OhuIi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VTf9OhuIi.verified.txt index 73f9747c78..2b3cdb65c1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VTf9OhuIi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VTf9OhuIi.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VUo8LmV97.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VUo8LmV97.verified.txt index 78e2dc7c38..7eb73c47bb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VUo8LmV97.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6VUo8LmV97.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6gfdRZoPfL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6gfdRZoPfL.verified.txt index 770e2a7b69..3e2daee9c5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6gfdRZoPfL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6gfdRZoPfL.verified.txt @@ -123,7 +123,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6lBLHds4lW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6lBLHds4lW.verified.txt index 9f05c52d6a..a2d424d08f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6lBLHds4lW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6lBLHds4lW.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6mkkokrpIq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6mkkokrpIq.verified.txt index eeabfbeccb..3a7d00a093 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6mkkokrpIq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6mkkokrpIq.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6oQr4cPQSB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6oQr4cPQSB.verified.txt index e362554c81..b1969aecfd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6oQr4cPQSB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6oQr4cPQSB.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6odZhoWZP6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6odZhoWZP6.verified.txt index c709caa0b0..04f4ea5d24 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6odZhoWZP6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6odZhoWZP6.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6xk0nJVC7C.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6xk0nJVC7C.verified.txt index b23583555c..3fe05f48b6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6xk0nJVC7C.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/6xk0nJVC7C.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7194p6VVkq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7194p6VVkq.verified.txt index 9fef6621a7..b5269b2c58 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7194p6VVkq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7194p6VVkq.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/726HwxtBav.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/726HwxtBav.verified.txt index 76a4073af8..dad79b08a2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/726HwxtBav.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/726HwxtBav.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/76YwAqrY7q.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/76YwAqrY7q.verified.txt index 27c620c216..c30849c1c3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/76YwAqrY7q.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/76YwAqrY7q.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/78rjo33QbB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/78rjo33QbB.verified.txt index 74bbd92a7a..2491f41fc8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/78rjo33QbB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/78rjo33QbB.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7IjUdNtVdF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7IjUdNtVdF.verified.txt index 938ae06dc7..215511bbfb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7IjUdNtVdF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7IjUdNtVdF.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7M0zQyhG0M.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7M0zQyhG0M.verified.txt index 38bd3a3769..4563419a27 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7M0zQyhG0M.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7M0zQyhG0M.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7NTq4cwMyG.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7NTq4cwMyG.verified.txt index 5f07532580..266df2cfe1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7NTq4cwMyG.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7NTq4cwMyG.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7PS6H0KWQg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7PS6H0KWQg.verified.txt index 092038b0a4..a6c8bab106 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7PS6H0KWQg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7PS6H0KWQg.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7afpwI4d8w.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7afpwI4d8w.verified.txt index eaa660a23a..4c68d0837d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7afpwI4d8w.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7afpwI4d8w.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7hiNp5tlXd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7hiNp5tlXd.verified.txt index e156b0d058..d8ca4033ce 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7hiNp5tlXd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7hiNp5tlXd.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7i1UITRxeb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7i1UITRxeb.verified.txt index b03979124d..858c6a5f3e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7i1UITRxeb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7i1UITRxeb.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7jGEqsR2FP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7jGEqsR2FP.verified.txt index 1953375068..ba1ad9e7c2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7jGEqsR2FP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7jGEqsR2FP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Noneshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7pBPvt6QE6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7pBPvt6QE6.verified.txt index 4d3af4a8b2..26c1fbd6f6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7pBPvt6QE6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7pBPvt6QE6.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7uqQBgLZTb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7uqQBgLZTb.verified.txt index 0aff85f25b..29009777c1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7uqQBgLZTb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/7uqQBgLZTb.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/81sYCnm9HE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/81sYCnm9HE.verified.txt index 0630267706..2a1c8b300f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/81sYCnm9HE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/81sYCnm9HE.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/84kQUzvdUF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/84kQUzvdUF.verified.txt index dfce12bccb..5da8c295bf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/84kQUzvdUF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/84kQUzvdUF.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/87kTVsVkZP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/87kTVsVkZP.verified.txt index 477a318ac3..afd193f648 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/87kTVsVkZP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/87kTVsVkZP.verified.txt @@ -123,7 +123,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8BrC3JEWFz.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8BrC3JEWFz.verified.txt index 9dbd7094da..13c183e190 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8BrC3JEWFz.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8BrC3JEWFz.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ENbP5SdYg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ENbP5SdYg.verified.txt index 51771643a3..d2f9a45855 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ENbP5SdYg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ENbP5SdYg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8LPIbZxwoE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8LPIbZxwoE.verified.txt index 237707760f..05f7f6a69c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8LPIbZxwoE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8LPIbZxwoE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_None(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ZmE2uHTIg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ZmE2uHTIg.verified.txt index 8a410243ac..3d999b87a0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ZmE2uHTIg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8ZmE2uHTIg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8fjx3qMok1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8fjx3qMok1.verified.txt index 53a4ad83ca..a07a72ccd4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8fjx3qMok1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8fjx3qMok1.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8riru9hqK8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8riru9hqK8.verified.txt index 2d5f3c5e26..b946aba586 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8riru9hqK8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8riru9hqK8.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8vkgLLOLHe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8vkgLLOLHe.verified.txt index 4b3066c8c8..dec39633cf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8vkgLLOLHe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/8vkgLLOLHe.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9Ov1HfJ9U0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9Ov1HfJ9U0.verified.txt index 9f469422c9..eb2ff608d9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9Ov1HfJ9U0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9Ov1HfJ9U0.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9dQy1Yh3pQ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9dQy1Yh3pQ.verified.txt index 9e1ed72def..895e52c738 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9dQy1Yh3pQ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9dQy1Yh3pQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9qYLjm3eNc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9qYLjm3eNc.verified.txt index ec172c2d10..450ba6da39 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9qYLjm3eNc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9qYLjm3eNc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9vnWwbHGuB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9vnWwbHGuB.verified.txt index 81df981077..fa9a1b42e1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9vnWwbHGuB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9vnWwbHGuB.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9zdedBrnlO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9zdedBrnlO.verified.txt index e628fc4796..bfad8362dc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9zdedBrnlO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/9zdedBrnlO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/A1RTs8eaFm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/A1RTs8eaFm.verified.txt index fbc80fda0f..b8f3cca4d3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/A1RTs8eaFm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/A1RTs8eaFm.verified.txt @@ -123,7 +123,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AAKrpJSSVE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AAKrpJSSVE.verified.txt index 9e4d134cf9..4c57f4fdcc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AAKrpJSSVE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AAKrpJSSVE.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AJWzuJoTcL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AJWzuJoTcL.verified.txt index 1513510964..b7171c0986 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AJWzuJoTcL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AJWzuJoTcL.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ATmKrZjZ0a.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ATmKrZjZ0a.verified.txt index 44972af15c..92eaf29751 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ATmKrZjZ0a.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ATmKrZjZ0a.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AcU3pnSMtA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AcU3pnSMtA.verified.txt index 5b5cdb4ca0..97c97313c7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AcU3pnSMtA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AcU3pnSMtA.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NoneSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Acogmgq2tt.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Acogmgq2tt.verified.txt index 28c72c020f..ad417f6a14 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Acogmgq2tt.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Acogmgq2tt.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AjcFadY5II.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AjcFadY5II.verified.txt index 1c2c519b73..3a7cb381a1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AjcFadY5II.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/AjcFadY5II.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/B60eiOSGcX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/B60eiOSGcX.verified.txt index d629afa29c..cb43da272f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/B60eiOSGcX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/B60eiOSGcX.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BDhbKgtBkn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BDhbKgtBkn.verified.txt index c6283c3ac8..df8b54261d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BDhbKgtBkn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BDhbKgtBkn.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BWXPsMaPX2.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BWXPsMaPX2.verified.txt index 122a35c161..249b629404 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BWXPsMaPX2.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BWXPsMaPX2.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ba6Ah7G9BT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ba6Ah7G9BT.verified.txt index 482cf667f3..b42b425886 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ba6Ah7G9BT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ba6Ah7G9BT.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BbUYWGSZ7t.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BbUYWGSZ7t.verified.txt index 259c5f4220..15e754a7e1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BbUYWGSZ7t.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BbUYWGSZ7t.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Bbqck2QQEe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Bbqck2QQEe.verified.txt index db1577fd74..b6409fbd18 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Bbqck2QQEe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Bbqck2QQEe.verified.txt @@ -123,7 +123,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BfcIQ6QxLT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BfcIQ6QxLT.verified.txt index c708d0274e..2e5e033daf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BfcIQ6QxLT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BfcIQ6QxLT.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BkDNYGeiJO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BkDNYGeiJO.verified.txt index 55c872249f..d9bbf94ea5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BkDNYGeiJO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/BkDNYGeiJO.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Blr8MnyIft.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Blr8MnyIft.verified.txt index d1c90812b6..e3d91108ca 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Blr8MnyIft.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Blr8MnyIft.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C3tSuT4Rw5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C3tSuT4Rw5.verified.txt index e1236bd29b..b9f308e5ca 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C3tSuT4Rw5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C3tSuT4Rw5.verified.txt @@ -123,7 +123,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C732vXBri7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C732vXBri7.verified.txt index 565ff28f10..6741cf2670 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C732vXBri7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C732vXBri7.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C8og4W0g39.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C8og4W0g39.verified.txt index aaae348440..773039ee93 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C8og4W0g39.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/C8og4W0g39.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_None_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CAhzRtVlvN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CAhzRtVlvN.verified.txt index 14495a2353..d7fbf9cfd5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CAhzRtVlvN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CAhzRtVlvN.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonebyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CCSiro0YY5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CCSiro0YY5.verified.txt index 84869e000d..7e7ac89b06 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CCSiro0YY5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CCSiro0YY5.verified.txt @@ -123,7 +123,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CHpvyhjNBu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CHpvyhjNBu.verified.txt index 0f31c81bd7..6b3eabaac9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CHpvyhjNBu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CHpvyhjNBu.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CRFQw7hPdX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CRFQw7hPdX.verified.txt index 49e8f3ad39..30a3640711 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CRFQw7hPdX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CRFQw7hPdX.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CdSoYJGxxs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CdSoYJGxxs.verified.txt index d51c855ab7..94750cea0d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CdSoYJGxxs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CdSoYJGxxs.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CoIV0GGaVk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CoIV0GGaVk.verified.txt index 56c0f94ff3..610f2b5230 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CoIV0GGaVk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CoIV0GGaVk.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CpMibF5X1W.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CpMibF5X1W.verified.txt index 37daa89877..d17fdfe33a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CpMibF5X1W.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CpMibF5X1W.verified.txt @@ -123,7 +123,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CqRvYTDB1D.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CqRvYTDB1D.verified.txt index 850a8edf3a..2451071955 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CqRvYTDB1D.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CqRvYTDB1D.verified.txt @@ -123,7 +123,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsDcxKYXKs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsDcxKYXKs.verified.txt index f7af020dc6..bd0c2f4de0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsDcxKYXKs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsDcxKYXKs.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsnkBqOZNw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsnkBqOZNw.verified.txt index a126ad1233..9edb6552e7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsnkBqOZNw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CsnkBqOZNw.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CtBqkqJxiZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CtBqkqJxiZ.verified.txt index e91a7b58a4..30d840375d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CtBqkqJxiZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CtBqkqJxiZ.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CwAdOR3bAP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CwAdOR3bAP.verified.txt index 6138a08ab3..e3d99d55ff 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CwAdOR3bAP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/CwAdOR3bAP.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/D2dBJkgZhU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/D2dBJkgZhU.verified.txt index 4666014bd1..0b69b07353 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/D2dBJkgZhU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/D2dBJkgZhU.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DG1JzO1INA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DG1JzO1INA.verified.txt index c8d658efd7..46ee59a335 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DG1JzO1INA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DG1JzO1INA.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonefloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DJELQCwFwf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DJELQCwFwf.verified.txt index e988baaa10..ae20773c05 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DJELQCwFwf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DJELQCwFwf.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DNNhmic1Tz.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DNNhmic1Tz.verified.txt index 73efb383de..f7a72353b9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DNNhmic1Tz.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DNNhmic1Tz.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DR8cGo0Q5y.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DR8cGo0Q5y.verified.txt index 3cf8dfcc57..6cb9119876 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DR8cGo0Q5y.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DR8cGo0Q5y.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DVniDzaOiL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DVniDzaOiL.verified.txt index fdfd065962..3856be5e27 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DVniDzaOiL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DVniDzaOiL.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DcYEkuW7wX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DcYEkuW7wX.verified.txt index 634cb34df1..d0d5a098ec 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DcYEkuW7wX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DcYEkuW7wX.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dfc3TS2PZ2.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dfc3TS2PZ2.verified.txt index cbb7bfc3b6..4fd7c864fe 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dfc3TS2PZ2.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dfc3TS2PZ2.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Do56lhwTao.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Do56lhwTao.verified.txt index 7e23967780..5133239f53 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Do56lhwTao.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Do56lhwTao.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DogbN1WFyW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DogbN1WFyW.verified.txt index b25cb35933..6c6b1ed964 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DogbN1WFyW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DogbN1WFyW.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DuqKfXFgdZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DuqKfXFgdZ.verified.txt index 251a6cabf2..065df77381 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DuqKfXFgdZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DuqKfXFgdZ.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dwo9g2kUlo.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dwo9g2kUlo.verified.txt index c858b665c9..eb05dcd0bc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dwo9g2kUlo.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Dwo9g2kUlo.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DznfadW3c3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DznfadW3c3.verified.txt index 0ad228c312..38644b90c8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DznfadW3c3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/DznfadW3c3.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/E5VqeEIBNO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/E5VqeEIBNO.verified.txt index 80dd5f7d46..a9a5439103 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/E5VqeEIBNO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/E5VqeEIBNO.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ELiHkS0SDv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ELiHkS0SDv.verified.txt index a010be0e05..fc8aad7711 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ELiHkS0SDv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ELiHkS0SDv.verified.txt @@ -124,7 +124,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EegKp1VZgG.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EegKp1VZgG.verified.txt index 1a28853e50..07e99a00ae 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EegKp1VZgG.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EegKp1VZgG.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EhS4PTGR9o.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EhS4PTGR9o.verified.txt index 87f50503ec..23f45a2b36 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EhS4PTGR9o.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/EhS4PTGR9o.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F0A7L16fq0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F0A7L16fq0.verified.txt index e141bf2bc8..bfaa4f8ec8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F0A7L16fq0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F0A7L16fq0.verified.txt @@ -124,7 +124,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F5grs8IkTO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F5grs8IkTO.verified.txt index 9b6c9ef49e..2b1d193213 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F5grs8IkTO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/F5grs8IkTO.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FIXhJLtbSD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FIXhJLtbSD.verified.txt index f29a630f2d..0fb8a7474c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FIXhJLtbSD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FIXhJLtbSD.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FJBVJKUjgR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FJBVJKUjgR.verified.txt index 71c7c0244c..0d14b6169a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FJBVJKUjgR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FJBVJKUjgR.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FLvMFPVHEi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FLvMFPVHEi.verified.txt index 7b03360abf..e5d296d985 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FLvMFPVHEi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FLvMFPVHEi.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonestring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FQRBLbisLv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FQRBLbisLv.verified.txt index 25f9f48470..5357a817eb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FQRBLbisLv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FQRBLbisLv.verified.txt @@ -123,7 +123,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FXWIoWL3Dm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FXWIoWL3Dm.verified.txt index d743e05385..f7ade6f90f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FXWIoWL3Dm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/FXWIoWL3Dm.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Noneint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G2mouoq1fx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G2mouoq1fx.verified.txt index 2807cdfc87..d3036bd977 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G2mouoq1fx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G2mouoq1fx.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G5SkSc933G.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G5SkSc933G.verified.txt index fc03d23580..74318b02ba 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G5SkSc933G.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G5SkSc933G.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G7fYp2vqR9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G7fYp2vqR9.verified.txt index 8ec2918b1a..5fbe1b8115 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G7fYp2vqR9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/G7fYp2vqR9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GEKLMgKS5W.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GEKLMgKS5W.verified.txt index 70d34e6e92..fbbb84bcdc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GEKLMgKS5W.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GEKLMgKS5W.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Noneint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GFavE8Pkxq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GFavE8Pkxq.verified.txt index 482360fc26..faddc579c5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GFavE8Pkxq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GFavE8Pkxq.verified.txt @@ -123,7 +123,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GImYan6zLq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GImYan6zLq.verified.txt index b0d64c0bd1..6aa42a71cc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GImYan6zLq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GImYan6zLq.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GKEo61TJCN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GKEo61TJCN.verified.txt index b664b7a332..0481a1a092 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GKEo61TJCN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GKEo61TJCN.verified.txt @@ -123,7 +123,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GTwMaPNJRP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GTwMaPNJRP.verified.txt index a65c111862..ae0ecb07ab 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GTwMaPNJRP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GTwMaPNJRP.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GU4pKuoCYt.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GU4pKuoCYt.verified.txt index e90da2b272..e14c63089d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GU4pKuoCYt.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GU4pKuoCYt.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GW4lLvoUpu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GW4lLvoUpu.verified.txt index 946d18d964..2a64665be6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GW4lLvoUpu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GW4lLvoUpu.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GYMhAtXZqd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GYMhAtXZqd.verified.txt index 81e2ae0e51..de288850d6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GYMhAtXZqd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GYMhAtXZqd.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Gds2GVuXZz.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Gds2GVuXZz.verified.txt index 2982e6f9cd..1fabfe90c5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Gds2GVuXZz.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Gds2GVuXZz.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GeCbpgHn38.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GeCbpgHn38.verified.txt index 860f485e04..792a92a98c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GeCbpgHn38.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GeCbpgHn38.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GiYPYYoVS0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GiYPYYoVS0.verified.txt index 0916903c4b..aec887bb43 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GiYPYYoVS0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/GiYPYYoVS0.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H3uQBvG2fu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H3uQBvG2fu.verified.txt index 4d28e895ef..bb3f228e90 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H3uQBvG2fu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H3uQBvG2fu.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H4QXoN72p0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H4QXoN72p0.verified.txt index 7c6db1c35d..29ae7b95cd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H4QXoN72p0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H4QXoN72p0.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H97Vv2gHat.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H97Vv2gHat.verified.txt index 1789d85f63..d6040f3579 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H97Vv2gHat.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/H97Vv2gHat.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HCYWQH7VPX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HCYWQH7VPX.verified.txt index 131615972c..45d909909a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HCYWQH7VPX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HCYWQH7VPX.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HDGVXYp4bk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HDGVXYp4bk.verified.txt index 03d849c4dc..fdf0d375ff 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HDGVXYp4bk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HDGVXYp4bk.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HEEBJ4TNMV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HEEBJ4TNMV.verified.txt index a056a04fb9..12b0f43e0f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HEEBJ4TNMV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HEEBJ4TNMV.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HGI0kSajp0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HGI0kSajp0.verified.txt index 7209b23b61..e45ff03da0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HGI0kSajp0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HGI0kSajp0.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HQtQ29hC7e.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HQtQ29hC7e.verified.txt index e2c7c65e17..76130524e0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HQtQ29hC7e.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HQtQ29hC7e.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HVUOnIe96N.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HVUOnIe96N.verified.txt index 7ad4c0eb63..7ca7805df4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HVUOnIe96N.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HVUOnIe96N.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HYxfWYd8m6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HYxfWYd8m6.verified.txt index 6178f42de3..ebf99041fd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HYxfWYd8m6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HYxfWYd8m6.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Hl7kEg5sqn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Hl7kEg5sqn.verified.txt index 1babc42479..8d086fb5a2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Hl7kEg5sqn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Hl7kEg5sqn.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HlUrqFUGJm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HlUrqFUGJm.verified.txt index 15c3fc45e3..a3d4ea4e73 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HlUrqFUGJm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HlUrqFUGJm.verified.txt @@ -123,7 +123,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HumWQt79aV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HumWQt79aV.verified.txt index 5dda5cd295..3e5e936a89 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HumWQt79aV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HumWQt79aV.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HvJXbxFZ3C.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HvJXbxFZ3C.verified.txt index 9eaa2675bc..7c51cd9c40 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HvJXbxFZ3C.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/HvJXbxFZ3C.verified.txt @@ -131,7 +131,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I32WlugGPq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I32WlugGPq.verified.txt index 720a116233..a491529ef9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I32WlugGPq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I32WlugGPq.verified.txt @@ -123,7 +123,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I49aS1gSt8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I49aS1gSt8.verified.txt index dc019580be..cd5d7cb7a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I49aS1gSt8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I49aS1gSt8.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I4ufDqNrEj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I4ufDqNrEj.verified.txt index 64ecd71a8a..dae5d08bc8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I4ufDqNrEj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/I4ufDqNrEj.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IB1StTHBRV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IB1StTHBRV.verified.txt index 1b1bc3a61b..c0c7dd506d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IB1StTHBRV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IB1StTHBRV.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IPwcK8xGa4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IPwcK8xGa4.verified.txt index dada82d4a6..4d3c2c13ce 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IPwcK8xGa4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IPwcK8xGa4.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ITWVYMGhio.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ITWVYMGhio.verified.txt index 1a452f52e5..b2859708a7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ITWVYMGhio.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ITWVYMGhio.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Icsx2qeKdm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Icsx2qeKdm.verified.txt index 4f4af26951..3e09d47da0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Icsx2qeKdm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Icsx2qeKdm.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IiYr46qZNh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IiYr46qZNh.verified.txt index 389520e760..75d97e6171 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IiYr46qZNh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/IiYr46qZNh.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iw1DxHVA5v.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iw1DxHVA5v.verified.txt index 8097f18b08..05216e83fb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iw1DxHVA5v.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iw1DxHVA5v.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iyq5h18cTS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iyq5h18cTS.verified.txt index f3463bf5b1..0af106116a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iyq5h18cTS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Iyq5h18cTS.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J0YHVVuuql.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J0YHVVuuql.verified.txt index 1dc583a37c..b67e6e2b34 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J0YHVVuuql.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J0YHVVuuql.verified.txt @@ -123,7 +123,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J5pVY1mGtd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J5pVY1mGtd.verified.txt index 6ed73f52c6..c22490eb9c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J5pVY1mGtd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J5pVY1mGtd.verified.txt @@ -123,7 +123,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J8SezX4ArK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J8SezX4ArK.verified.txt index 7f176eee11..719127431d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J8SezX4ArK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/J8SezX4ArK.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JDo9XHwKvX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JDo9XHwKvX.verified.txt index fa70fd3f15..d932208fae 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JDo9XHwKvX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JDo9XHwKvX.verified.txt @@ -123,7 +123,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JGvEqK0Aik.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JGvEqK0Aik.verified.txt index 99bfaa76e8..7d9312d8a6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JGvEqK0Aik.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JGvEqK0Aik.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JWeOVaVLnW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JWeOVaVLnW.verified.txt index f2a7796268..f673b47b37 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JWeOVaVLnW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JWeOVaVLnW.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JXQFqtfJl9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JXQFqtfJl9.verified.txt index 22bbebea2b..7e7d6186a7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JXQFqtfJl9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JXQFqtfJl9.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JY3027oK9C.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JY3027oK9C.verified.txt index bf1ebfd9d0..14ea90c51f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JY3027oK9C.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JY3027oK9C.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JZPudKsy7Z.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JZPudKsy7Z.verified.txt index 52ed0658a1..47461298ee 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JZPudKsy7Z.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JZPudKsy7Z.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JoSDZI31Je.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JoSDZI31Je.verified.txt index 2755191aa1..a442f8bfda 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JoSDZI31Je.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JoSDZI31Je.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JpekyeqX2u.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JpekyeqX2u.verified.txt index 4d085ce159..be150f2973 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JpekyeqX2u.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JpekyeqX2u.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jy4lCC5HMZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jy4lCC5HMZ.verified.txt index c15af558ca..5bb5214c67 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jy4lCC5HMZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jy4lCC5HMZ.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jz1pNcJwA7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jz1pNcJwA7.verified.txt index 59d0f64982..db2886e5cb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jz1pNcJwA7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Jz1pNcJwA7.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JzszqmB9FE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JzszqmB9FE.verified.txt index 649131eac7..41737ac225 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JzszqmB9FE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/JzszqmB9FE.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K2uxk8EUGL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K2uxk8EUGL.verified.txt index 8ce2243406..b64769aabf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K2uxk8EUGL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K2uxk8EUGL.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K6YtKu0rfa.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K6YtKu0rfa.verified.txt index e0a0323708..76b650d09c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K6YtKu0rfa.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/K6YtKu0rfa.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KElo1QPpSg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KElo1QPpSg.verified.txt index 92da04e9d1..abf84d4042 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KElo1QPpSg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KElo1QPpSg.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KHuAfJZ1MQ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KHuAfJZ1MQ.verified.txt index 0fd76967dd..437cf4d4f7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KHuAfJZ1MQ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KHuAfJZ1MQ.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KRCL0un4Ho.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KRCL0un4Ho.verified.txt index 1c4578697b..0d00ff2c38 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KRCL0un4Ho.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KRCL0un4Ho.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Km3WVGOKPK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Km3WVGOKPK.verified.txt index 08b4a91989..063f6357e8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Km3WVGOKPK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Km3WVGOKPK.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kv5P6cSsGS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kv5P6cSsGS.verified.txt index 7ca0a0e485..66b5aaf1ff 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kv5P6cSsGS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kv5P6cSsGS.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KzA5jtGUkR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KzA5jtGUkR.verified.txt index 4eb7f85bc7..fce93b03ef 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KzA5jtGUkR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/KzA5jtGUkR.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kzaow8lfls.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kzaow8lfls.verified.txt index 0aef33d273..552b6e3487 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kzaow8lfls.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Kzaow8lfls.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2EO0A6eN1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2EO0A6eN1.verified.txt index ff9426cd86..742f008847 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2EO0A6eN1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2EO0A6eN1.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_None_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2UEawObNx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2UEawObNx.verified.txt index a040274e48..b1adb3dced 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2UEawObNx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L2UEawObNx.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L3hO17ehe6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L3hO17ehe6.verified.txt index fddd986902..d944719355 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L3hO17ehe6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/L3hO17ehe6.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LDxrp9N5XD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LDxrp9N5XD.verified.txt index f08f71612b..db06c2e713 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LDxrp9N5XD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LDxrp9N5XD.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LKGZfarHWC.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LKGZfarHWC.verified.txt index fc67529247..443e350fd1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LKGZfarHWC.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LKGZfarHWC.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LPVXsR1fpn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LPVXsR1fpn.verified.txt index 9de5cd6cb3..efad3cc578 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LPVXsR1fpn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LPVXsR1fpn.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT2YNUSda4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT2YNUSda4.verified.txt index 398d92be47..85f41430a9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT2YNUSda4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT2YNUSda4.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT72idorfU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT72idorfU.verified.txt index 8e07b13b12..7a0c0bd098 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT72idorfU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LT72idorfU.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LjB8v3c2fZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LjB8v3c2fZ.verified.txt index 57e1eeaf0d..6a699f7c64 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LjB8v3c2fZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LjB8v3c2fZ.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LkVmWJVJ3j.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LkVmWJVJ3j.verified.txt index f5f82815e7..dc61a59633 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LkVmWJVJ3j.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/LkVmWJVJ3j.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/M2fFsm0nNZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/M2fFsm0nNZ.verified.txt index 6739ab18e7..3d401782d3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/M2fFsm0nNZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/M2fFsm0nNZ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MCjjD7QfJH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MCjjD7QfJH.verified.txt index 911081fa5f..19138200d2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MCjjD7QfJH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MCjjD7QfJH.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_None_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_None_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_None_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_None_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MXoMN8h2Rj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MXoMN8h2Rj.verified.txt index 161b600916..4a28c135c8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MXoMN8h2Rj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/MXoMN8h2Rj.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonechar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/N5bMPq1xkY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/N5bMPq1xkY.verified.txt index 5ebcae8c54..423a8e194f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/N5bMPq1xkY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/N5bMPq1xkY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonebyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NEFfINYQph.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NEFfINYQph.verified.txt index 9a919eb35a..e547a13232 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NEFfINYQph.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NEFfINYQph.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonefloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NfM3BRyPm5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NfM3BRyPm5.verified.txt index 74d2061887..cc72bd4a63 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NfM3BRyPm5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NfM3BRyPm5.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NgjfaipndS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NgjfaipndS.verified.txt index f3a1b7c475..bcfd5a0d98 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NgjfaipndS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NgjfaipndS.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NhfVRg4o6l.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NhfVRg4o6l.verified.txt index 37b5fb2b3d..4ebcd1a011 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NhfVRg4o6l.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NhfVRg4o6l.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NqwM7aPk0R.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NqwM7aPk0R.verified.txt index 5e7621caa4..90c60823bf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NqwM7aPk0R.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/NqwM7aPk0R.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nrb6GYQcdQ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nrb6GYQcdQ.verified.txt index 5c690c9e8d..665d508bef 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nrb6GYQcdQ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nrb6GYQcdQ.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_None_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_None_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nuy7Kum1Db.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nuy7Kum1Db.verified.txt index 286154551e..b8dedd7f84 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nuy7Kum1Db.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Nuy7Kum1Db.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NoneSystem_DateTimeOffset_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_DateTimeOffset_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_DateTimeOffset_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NoneSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/O7uI1gLVIv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/O7uI1gLVIv.verified.txt index 1ee258e886..9030c1f7bb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/O7uI1gLVIv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/O7uI1gLVIv.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OA8EqYTPHB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OA8EqYTPHB.verified.txt index f217140b0b..1b3afcb4f5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OA8EqYTPHB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OA8EqYTPHB.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OCRsE3L7Ke.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OCRsE3L7Ke.verified.txt index 4f077556ee..aa74efac57 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OCRsE3L7Ke.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OCRsE3L7Ke.verified.txt @@ -122,7 +122,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NoneSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OG7GkP6ZVr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OG7GkP6ZVr.verified.txt index 9a8544da06..94e231bea5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OG7GkP6ZVr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OG7GkP6ZVr.verified.txt @@ -121,8 +121,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -130,7 +129,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OJ3JYk3RL3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OJ3JYk3RL3.verified.txt index ff53c8291f..2bc7b52627 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OJ3JYk3RL3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OJ3JYk3RL3.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OOHV2gxO6I.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OOHV2gxO6I.verified.txt index c37a2ec873..cb341e50bc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OOHV2gxO6I.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OOHV2gxO6I.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OPfG3jTCf9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OPfG3jTCf9.verified.txt index 67d2f68ffc..752a1006d1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OPfG3jTCf9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OPfG3jTCf9.verified.txt @@ -130,7 +130,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OSRNsrwjyc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OSRNsrwjyc.verified.txt index 14b595ca41..b3d53f4cbb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OSRNsrwjyc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OSRNsrwjyc.verified.txt @@ -123,7 +123,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OT38pZNTB3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OT38pZNTB3.verified.txt index 3408ecc504..a02d306734 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OT38pZNTB3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OT38pZNTB3.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Oaehs3N7I7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Oaehs3N7I7.verified.txt index 21af9e765e..c84e257d9f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Oaehs3N7I7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Oaehs3N7I7.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OeGlzXwHne.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OeGlzXwHne.verified.txt index bf166f6538..e935eeb081 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OeGlzXwHne.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OeGlzXwHne.verified.txt @@ -123,7 +123,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OtozazZj13.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OtozazZj13.verified.txt index ad5eec1b8c..18a443c960 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OtozazZj13.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/OtozazZj13.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P3Ue5zJJjp.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P3Ue5zJJjp.verified.txt index bcb06b13c7..61f673fdee 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P3Ue5zJJjp.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P3Ue5zJJjp.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P4TTCc0Yf7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P4TTCc0Yf7.verified.txt index 6c0c94dff5..695f8d0736 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P4TTCc0Yf7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P4TTCc0Yf7.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P6GuZUvFyR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P6GuZUvFyR.verified.txt index 4b2eea77af..212fbc3e64 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P6GuZUvFyR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/P6GuZUvFyR.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFZcdstLIl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFZcdstLIl.verified.txt index c52fc7e447..685c832bdf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFZcdstLIl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFZcdstLIl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFrt5obmv0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFrt5obmv0.verified.txt index 600fb3ed76..dc6fc7212f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFrt5obmv0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PFrt5obmv0.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PWSj9aUbl7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PWSj9aUbl7.verified.txt index 11f825685d..9702e0117b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PWSj9aUbl7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PWSj9aUbl7.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PXDD1haBoq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PXDD1haBoq.verified.txt index 9ed0696ecf..26e6320d3e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PXDD1haBoq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PXDD1haBoq.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonedecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonedecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonedecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PY2TM7Y3Vj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PY2TM7Y3Vj.verified.txt index 2967cd95f9..3cf063c1c0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PY2TM7Y3Vj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PY2TM7Y3Vj.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgElS1hUhE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgElS1hUhE.verified.txt index 011f64e3f9..0dd3a63fa6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgElS1hUhE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgElS1hUhE.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgsucSaTfm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgsucSaTfm.verified.txt index a1750b3c0c..cd6a4f3f79 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgsucSaTfm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PgsucSaTfm.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PiJQ4jNTmO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PiJQ4jNTmO.verified.txt index e25eeece7c..c0c30c2ee2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PiJQ4jNTmO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PiJQ4jNTmO.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PoVvb20sHj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PoVvb20sHj.verified.txt index 5a18ef7651..1c57324d80 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PoVvb20sHj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PoVvb20sHj.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PokjGcKPE1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PokjGcKPE1.verified.txt index c22d46d259..976b8d2f00 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PokjGcKPE1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PokjGcKPE1.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PovXO1tsqe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PovXO1tsqe.verified.txt index a9a62c7b46..940aa1dcfc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PovXO1tsqe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PovXO1tsqe.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PsgJpdpuQF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PsgJpdpuQF.verified.txt index c398bba9a2..66c324d12a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PsgJpdpuQF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/PsgJpdpuQF.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Q0jjlsbkEa.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Q0jjlsbkEa.verified.txt index 879aa045d8..cff327e36f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Q0jjlsbkEa.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Q0jjlsbkEa.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QGMqYT1fnM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QGMqYT1fnM.verified.txt index c6c5f08d48..a41ffbf0c6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QGMqYT1fnM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QGMqYT1fnM.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QMO0HjKJah.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QMO0HjKJah.verified.txt index 73882a8df3..5a0623e22f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QMO0HjKJah.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QMO0HjKJah.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QTUB1vJ9S4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QTUB1vJ9S4.verified.txt index f226f57ed1..967b820e54 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QTUB1vJ9S4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QTUB1vJ9S4.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QjZIPfGKES.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QjZIPfGKES.verified.txt index 2769e60b94..f3f5561bbe 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QjZIPfGKES.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QjZIPfGKES.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QvqvJpg1FZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QvqvJpg1FZ.verified.txt index 5de6ae180f..d8d68948a4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QvqvJpg1FZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QvqvJpg1FZ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwU8X3VFo3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwU8X3VFo3.verified.txt index cbe8db718b..7f04b03e40 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwU8X3VFo3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwU8X3VFo3.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwwIrkYzSE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwwIrkYzSE.verified.txt index 608a206822..93f25c81e9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwwIrkYzSE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/QwwIrkYzSE.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RXRpuJ5dUd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RXRpuJ5dUd.verified.txt index 3409d8b411..7069968efa 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RXRpuJ5dUd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RXRpuJ5dUd.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NoneSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RaA4kFP5DS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RaA4kFP5DS.verified.txt index bb6d479b26..4c8e3893a9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RaA4kFP5DS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RaA4kFP5DS.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RhEVIeVYSE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RhEVIeVYSE.verified.txt index 2a0765daaa..e629032ccd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RhEVIeVYSE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RhEVIeVYSE.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RpQM87dn8y.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RpQM87dn8y.verified.txt index d40815bb81..c97bba214e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RpQM87dn8y.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RpQM87dn8y.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RspK5xtodc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RspK5xtodc.verified.txt index 544634544d..e14c0b5280 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RspK5xtodc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RspK5xtodc.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuYekxGlPw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuYekxGlPw.verified.txt index 291c85e895..3be83cc085 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuYekxGlPw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuYekxGlPw.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuaCLf565E.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuaCLf565E.verified.txt index d0dc3a3775..3873e90313 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuaCLf565E.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/RuaCLf565E.verified.txt @@ -123,7 +123,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/S0h3EeJg7X.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/S0h3EeJg7X.verified.txt index e5c2587680..2780e32caa 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/S0h3EeJg7X.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/S0h3EeJg7X.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SF15UfX8Id.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SF15UfX8Id.verified.txt index 0a1a1cc8ac..8da9015c58 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SF15UfX8Id.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SF15UfX8Id.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SIKka5TMZ3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SIKka5TMZ3.verified.txt index 965e1ca7de..c3b65ef09f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SIKka5TMZ3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SIKka5TMZ3.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SJIzsboRZf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SJIzsboRZf.verified.txt index c802cb3382..e68ad7aa24 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SJIzsboRZf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SJIzsboRZf.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVG989IugY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVG989IugY.verified.txt index f76d6a2cac..515a133435 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVG989IugY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVG989IugY.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVPyMplOJY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVPyMplOJY.verified.txt index 6152823827..4588f0a951 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVPyMplOJY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SVPyMplOJY.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sb0jIpwhFh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sb0jIpwhFh.verified.txt index eac565a3c1..775f51c065 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sb0jIpwhFh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sb0jIpwhFh.verified.txt @@ -123,7 +123,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SmV37tZrNy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SmV37tZrNy.verified.txt index 9b93082c45..aee0d0a29b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SmV37tZrNy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/SmV37tZrNy.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sms50fyzWG.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sms50fyzWG.verified.txt index aa4ff98d62..761c3466db 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sms50fyzWG.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Sms50fyzWG.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/T1Bjzg5tzc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/T1Bjzg5tzc.verified.txt index 3f3ab616c9..677566f865 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/T1Bjzg5tzc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/T1Bjzg5tzc.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TDDbjkIMyy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TDDbjkIMyy.verified.txt index e7bfa43278..9d21bed1cd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TDDbjkIMyy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TDDbjkIMyy.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TNE6jDjeWU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TNE6jDjeWU.verified.txt index fe426bf399..4d46db33c6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TNE6jDjeWU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TNE6jDjeWU.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TOfsGgooCa.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TOfsGgooCa.verified.txt index 158572c35c..2f2b56d39b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TOfsGgooCa.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TOfsGgooCa.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TSGnwMOrBs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TSGnwMOrBs.verified.txt index 2fd4b178d0..268e84ccc0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TSGnwMOrBs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TSGnwMOrBs.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTBoy1TWm3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTBoy1TWm3.verified.txt index 71b1d45542..a4f9f389b1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTBoy1TWm3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTBoy1TWm3.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTNNWxPJmX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTNNWxPJmX.verified.txt index dd1ce904a2..6324ddef61 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTNNWxPJmX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TTNNWxPJmX.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TUc42FbS5H.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TUc42FbS5H.verified.txt index 58e75d9b46..91f1c84e9e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TUc42FbS5H.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TUc42FbS5H.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TYbWUde2YG.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TYbWUde2YG.verified.txt index 027556ba84..dca5aaa6e2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TYbWUde2YG.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TYbWUde2YG.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Tlz9l2Omfs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Tlz9l2Omfs.verified.txt index 325bee6e11..249dcae433 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Tlz9l2Omfs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Tlz9l2Omfs.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonelong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ts8fyQDgGX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ts8fyQDgGX.verified.txt index 8362b06ec7..638f0e4d5b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ts8fyQDgGX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Ts8fyQDgGX.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TsGMitSGk4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TsGMitSGk4.verified.txt index 78bac0551c..0430c5fe34 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TsGMitSGk4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/TsGMitSGk4.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UALwoprHu4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UALwoprHu4.verified.txt index 332817cb85..b7a71c9765 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UALwoprHu4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UALwoprHu4.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UEs6Utc6jm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UEs6Utc6jm.verified.txt index 7652a09f5e..4fbbfc6fe1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UEs6Utc6jm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UEs6Utc6jm.verified.txt @@ -145,7 +145,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UFEoQsxK4b.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UFEoQsxK4b.verified.txt index bcf1690538..d0e0b1c734 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UFEoQsxK4b.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UFEoQsxK4b.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UGoNa5iv8W.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UGoNa5iv8W.verified.txt index 90a9157ef9..24bc4cecfd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UGoNa5iv8W.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UGoNa5iv8W.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UYsyXjljWH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UYsyXjljWH.verified.txt index b7545dfc90..3a981eaf41 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UYsyXjljWH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UYsyXjljWH.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UfhRtlhHw8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UfhRtlhHw8.verified.txt index 3b018ab003..dd09f401cc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UfhRtlhHw8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UfhRtlhHw8.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UjNos3ptIi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UjNos3ptIi.verified.txt index c554030671..5cfee3f0a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UjNos3ptIi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/UjNos3ptIi.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V22Hc0iWNn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V22Hc0iWNn.verified.txt index 38bc73aeb9..fbeb15d1b6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V22Hc0iWNn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V22Hc0iWNn.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3IjzOgK13.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3IjzOgK13.verified.txt index 6e08467c3e..a68695a644 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3IjzOgK13.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3IjzOgK13.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3PwMb2nqs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3PwMb2nqs.verified.txt index 4b3af85aaf..6419a2c891 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3PwMb2nqs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/V3PwMb2nqs.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonebyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VAqCkyX7L1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VAqCkyX7L1.verified.txt index 9af21a4b54..14e6ac375d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VAqCkyX7L1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VAqCkyX7L1.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VLDltbmZEe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VLDltbmZEe.verified.txt index 5d9bb6b704..329d08d0ab 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VLDltbmZEe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VLDltbmZEe.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VQxDxm31pP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VQxDxm31pP.verified.txt index 388e0cfbda..f460edfd32 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VQxDxm31pP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VQxDxm31pP.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VRYUY1JXT8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VRYUY1JXT8.verified.txt index 77cb3098be..b34f238f01 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VRYUY1JXT8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VRYUY1JXT8.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonedouble_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VczYkuMFxN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VczYkuMFxN.verified.txt index 1004b4f428..f0307d41ca 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VczYkuMFxN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VczYkuMFxN.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VjM7ZNIU2J.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VjM7ZNIU2J.verified.txt index e49537eed4..d27efbe736 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VjM7ZNIU2J.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VjM7ZNIU2J.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NoneSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VkdrJ8ohLo.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VkdrJ8ohLo.verified.txt index e98a961f91..330d5bc7a2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VkdrJ8ohLo.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VkdrJ8ohLo.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Vui3UGMZoh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Vui3UGMZoh.verified.txt index 10534e523f..c0d4982763 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Vui3UGMZoh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Vui3UGMZoh.verified.txt @@ -131,7 +131,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VukydVj76b.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VukydVj76b.verified.txt index f69e031378..f22f191a6b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VukydVj76b.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VukydVj76b.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwMwo0DNs0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwMwo0DNs0.verified.txt index 6ff52a9723..4edce7d1b8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwMwo0DNs0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwMwo0DNs0.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwjyQuQbWT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwjyQuQbWT.verified.txt index e57c0b325e..0e55f838a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwjyQuQbWT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/VwjyQuQbWT.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W46afXNlZ3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W46afXNlZ3.verified.txt index a9f99f402a..83f89a6d22 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W46afXNlZ3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W46afXNlZ3.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W4cc1yVP4e.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W4cc1yVP4e.verified.txt index efcfb721c0..f5613f00f1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W4cc1yVP4e.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W4cc1yVP4e.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W5EyobvNg4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W5EyobvNg4.verified.txt index cfc95c0b4d..3645808fb6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W5EyobvNg4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W5EyobvNg4.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W6MRSiHluT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W6MRSiHluT.verified.txt index 2549412b21..692ee5fe77 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W6MRSiHluT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W6MRSiHluT.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W7H9VG2Ilg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W7H9VG2Ilg.verified.txt index 2f219d84c7..4fe211b16b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W7H9VG2Ilg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/W7H9VG2Ilg.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDKdPRmtqx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDKdPRmtqx.verified.txt index 885c971ce4..368a2c8e33 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDKdPRmtqx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDKdPRmtqx.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDTQryZdKy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDTQryZdKy.verified.txt index 29e99be657..25bd09e72e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDTQryZdKy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WDTQryZdKy.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WK7WXroFIn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WK7WXroFIn.verified.txt index 88c1e168c8..0083a2924d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WK7WXroFIn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WK7WXroFIn.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WT7Wvn8pM3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WT7Wvn8pM3.verified.txt index 18c863999e..410c2c448e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WT7Wvn8pM3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WT7Wvn8pM3.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WYBMdZJyOh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WYBMdZJyOh.verified.txt index 45faca6248..f840a9001e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WYBMdZJyOh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WYBMdZJyOh.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WgYLXnJs21.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WgYLXnJs21.verified.txt index 138e2cfbd6..e84d95714d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WgYLXnJs21.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WgYLXnJs21.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WlAHjhno8T.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WlAHjhno8T.verified.txt index 994fbb048f..d3617e8455 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WlAHjhno8T.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/WlAHjhno8T.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Wm4zfAVYP7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Wm4zfAVYP7.verified.txt index 36a3bf77f7..4bc3efca2b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Wm4zfAVYP7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Wm4zfAVYP7.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/X6MYJKtIHb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/X6MYJKtIHb.verified.txt index 3af9f4c865..a4a23c07d8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/X6MYJKtIHb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/X6MYJKtIHb.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XGINHJkEmS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XGINHJkEmS.verified.txt index f507f09c4f..3f149f2547 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XGINHJkEmS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XGINHJkEmS.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XQyzNsdWpI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XQyzNsdWpI.verified.txt index b5b6e22e14..4291d518c2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XQyzNsdWpI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XQyzNsdWpI.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XgIBRxwJkj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XgIBRxwJkj.verified.txt index 98712acf28..dda550ad24 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XgIBRxwJkj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XgIBRxwJkj.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Xkjul7OTVs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Xkjul7OTVs.verified.txt index b9fe26ebdb..5aff273cb2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Xkjul7OTVs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Xkjul7OTVs.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XsSWYFEwxq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XsSWYFEwxq.verified.txt index 545c7fe1d5..745c6280da 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XsSWYFEwxq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XsSWYFEwxq.verified.txt @@ -122,7 +122,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonebool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XtKDz2eW1L.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XtKDz2eW1L.verified.txt index 5d0ffc0906..28f2c6f149 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XtKDz2eW1L.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/XtKDz2eW1L.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y2sFnVDNPD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y2sFnVDNPD.verified.txt index 0ef2f078fa..4d036bc163 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y2sFnVDNPD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y2sFnVDNPD.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y81hi9H0qC.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y81hi9H0qC.verified.txt index 74597f6d49..d6547ffb26 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y81hi9H0qC.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Y81hi9H0qC.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YKmDXYIHdR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YKmDXYIHdR.verified.txt index e9073416f6..d2e5ba8db5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YKmDXYIHdR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YKmDXYIHdR.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YOjQQq2tda.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YOjQQq2tda.verified.txt index 23273328f2..e7fb34cf44 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YOjQQq2tda.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YOjQQq2tda.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YTKfMHZBVv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YTKfMHZBVv.verified.txt index 05ee53157a..8626985ca8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YTKfMHZBVv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YTKfMHZBVv.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YcuGpZvDqs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YcuGpZvDqs.verified.txt index 63ccb7180d..3e66db3476 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YcuGpZvDqs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YcuGpZvDqs.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YtgglixQfn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YtgglixQfn.verified.txt index 18f3e57b0b..0b1a3235e3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YtgglixQfn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YtgglixQfn.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YxUmKOqCDk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YxUmKOqCDk.verified.txt index be4eddfbf6..6a7828a898 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YxUmKOqCDk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/YxUmKOqCDk.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Z7ECVU2Cur.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Z7ECVU2Cur.verified.txt index 3b90ba3ce0..a4375f4cc9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Z7ECVU2Cur.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Z7ECVU2Cur.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZC2jtVGSox.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZC2jtVGSox.verified.txt index d6f9622dfe..53eb25e2d0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZC2jtVGSox.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZC2jtVGSox.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZEovbqPMtp.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZEovbqPMtp.verified.txt index 290bd642f7..cad420065a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZEovbqPMtp.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZEovbqPMtp.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZFOpEd6tbr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZFOpEd6tbr.verified.txt index a79cbf6cce..3704db2c5b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZFOpEd6tbr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZFOpEd6tbr.verified.txt @@ -122,7 +122,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonebyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZRozOZdTIr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZRozOZdTIr.verified.txt index 5587398231..e08e2c9290 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZRozOZdTIr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZRozOZdTIr.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Zc79oUNMyg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Zc79oUNMyg.verified.txt index df22778235..dcc0d0376d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Zc79oUNMyg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/Zc79oUNMyg.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Noneint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZfdEBZcgZf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZfdEBZcgZf.verified.txt index 6221b7f486..8eb976fceb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZfdEBZcgZf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZfdEBZcgZf.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsondecimal_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsondecimal_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsondecimal_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZxuZqPzE9N.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZxuZqPzE9N.verified.txt index d7f2c1cdfc..3ccbc63b23 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZxuZqPzE9N.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ZxuZqPzE9N.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a4VLeCYICt.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a4VLeCYICt.verified.txt index 887521809c..05ed72275a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a4VLeCYICt.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a4VLeCYICt.verified.txt @@ -122,7 +122,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonedecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a74vH5yuQK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a74vH5yuQK.verified.txt index 36ed7b8e5b..df8e699946 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a74vH5yuQK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/a74vH5yuQK.verified.txt @@ -123,7 +123,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aWzHCQL4FA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aWzHCQL4FA.verified.txt index 768d4cb76a..65f6eca744 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aWzHCQL4FA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aWzHCQL4FA.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aXVZjuBwin.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aXVZjuBwin.verified.txt index cb03f72eb7..0a930db9f8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aXVZjuBwin.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aXVZjuBwin.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aZckzdFUyD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aZckzdFUyD.verified.txt index b3ae2f8173..05377960fb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aZckzdFUyD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aZckzdFUyD.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/acXfoErMsW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/acXfoErMsW.verified.txt index fa2d62b143..a2a2772a58 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/acXfoErMsW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/acXfoErMsW.verified.txt @@ -124,7 +124,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aoOhSbXiBj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aoOhSbXiBj.verified.txt index 1e0577588c..3bc61a39ba 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aoOhSbXiBj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/aoOhSbXiBj.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ark1p5XblW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ark1p5XblW.verified.txt index 3666cad202..436283b1f7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ark1p5XblW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ark1p5XblW.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/auiwlWIT33.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/auiwlWIT33.verified.txt index 28a318095e..66c6908aa0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/auiwlWIT33.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/auiwlWIT33.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/b0RpJdMlcH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/b0RpJdMlcH.verified.txt index 4df889df5f..e31c5511fb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/b0RpJdMlcH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/b0RpJdMlcH.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bG5z4O6mM1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bG5z4O6mM1.verified.txt index 35ec476cfe..b4447da9c0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bG5z4O6mM1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bG5z4O6mM1.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bNsPZs8cUn.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bNsPZs8cUn.verified.txt index 5f9f47c744..b7bb4f75f1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bNsPZs8cUn.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bNsPZs8cUn.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bQurmJGfyT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bQurmJGfyT.verified.txt index c60406e824..dc7ed9f7cc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bQurmJGfyT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bQurmJGfyT.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bcg2J6mqye.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bcg2J6mqye.verified.txt index 66a8c37f32..e7fd6d14b4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bcg2J6mqye.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bcg2J6mqye.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonestring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonestring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/beUUeB1dtC.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/beUUeB1dtC.verified.txt index 4a6664190a..35a90e75e6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/beUUeB1dtC.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/beUUeB1dtC.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bsKhZHNQve.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bsKhZHNQve.verified.txt index c706245c0b..d64e05636c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bsKhZHNQve.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bsKhZHNQve.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bzgLEsoojc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bzgLEsoojc.verified.txt index 3f10170647..d762d791a1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bzgLEsoojc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/bzgLEsoojc.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cGiPCYrzAJ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cGiPCYrzAJ.verified.txt index a1b995bb3d..435c058d6e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cGiPCYrzAJ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cGiPCYrzAJ.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cPK9O0kwVA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cPK9O0kwVA.verified.txt index cb63996391..d652d88de1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cPK9O0kwVA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cPK9O0kwVA.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cc9f7pBajP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cc9f7pBajP.verified.txt index 77b94e4afb..cb7915bb18 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cc9f7pBajP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cc9f7pBajP.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cf7E73cYQF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cf7E73cYQF.verified.txt index e7b951b758..83f135d8cc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cf7E73cYQF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cf7E73cYQF.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cwqusucPu9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cwqusucPu9.verified.txt index 2256d804f8..9432c52255 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cwqusucPu9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/cwqusucPu9.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d0p84e4sx8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d0p84e4sx8.verified.txt index c1861284d4..bf58ade678 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d0p84e4sx8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d0p84e4sx8.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTime_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTime_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTime_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d9yFpGd4HL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d9yFpGd4HL.verified.txt index 61de2ece94..0817a7ba81 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d9yFpGd4HL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/d9yFpGd4HL.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dSzrGGdnmq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dSzrGGdnmq.verified.txt index 193f86ff48..db6e84f18b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dSzrGGdnmq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dSzrGGdnmq.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dX6cvmxxub.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dX6cvmxxub.verified.txt index 011c037ddd..81cd094370 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dX6cvmxxub.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dX6cvmxxub.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonestring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonestring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonestring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonestring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dYQqWcGixw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dYQqWcGixw.verified.txt index 0330f813f1..3e087e42bd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dYQqWcGixw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dYQqWcGixw.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/diuGwxtxS3.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/diuGwxtxS3.verified.txt index e5237d2433..b2691f0a0c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/diuGwxtxS3.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/diuGwxtxS3.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dq2XBsRDfV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dq2XBsRDfV.verified.txt index c907c84845..47d5c84d7d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dq2XBsRDfV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dq2XBsRDfV.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/drHA3jKOEc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/drHA3jKOEc.verified.txt index f15fc193c0..8bade0725a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/drHA3jKOEc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/drHA3jKOEc.verified.txt @@ -122,7 +122,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonefloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dyL1sOOELK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dyL1sOOELK.verified.txt index 93fcd578e2..9701d8d29e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dyL1sOOELK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dyL1sOOELK.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dz2NI7WOfQ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dz2NI7WOfQ.verified.txt index e3ca24e2b5..fa88c2b98d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dz2NI7WOfQ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/dz2NI7WOfQ.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonechar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonechar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonechar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonechar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e7wOU2uIU7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e7wOU2uIU7.verified.txt index b712b4f969..9fad4b8dfd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e7wOU2uIU7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e7wOU2uIU7.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e9DVdkW1mv.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e9DVdkW1mv.verified.txt index 1c037a64e3..deea8e525f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e9DVdkW1mv.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/e9DVdkW1mv.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eCX7wnleRj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eCX7wnleRj.verified.txt index c60d11283e..ee00cfe510 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eCX7wnleRj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eCX7wnleRj.verified.txt @@ -124,7 +124,6 @@ public System.Single Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eLlo8g1H5t.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eLlo8g1H5t.verified.txt index e9d0feae14..bc265e1dd9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eLlo8g1H5t.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eLlo8g1H5t.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eN0QbVBKxE.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eN0QbVBKxE.verified.txt index 0197ea2661..7de17d048b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eN0QbVBKxE.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eN0QbVBKxE.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eOtkci8Umg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eOtkci8Umg.verified.txt index b5e9efd5a4..b57f96dfc6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eOtkci8Umg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eOtkci8Umg.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonelong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ePpkWxo6SP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ePpkWxo6SP.verified.txt index 40d7b743ec..781cad2068 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ePpkWxo6SP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ePpkWxo6SP.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/efdhYlM7xs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/efdhYlM7xs.verified.txt index 9c8ae57aa5..acdabc6205 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/efdhYlM7xs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/efdhYlM7xs.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqCOAPFJS0.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqCOAPFJS0.verified.txt index 0903a277cd..f4ab794b72 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqCOAPFJS0.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqCOAPFJS0.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqGUAyQkQW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqGUAyQkQW.verified.txt index db3656ded4..33e29b719a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqGUAyQkQW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/eqGUAyQkQW.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/expU3ZKQXl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/expU3ZKQXl.verified.txt index 714a4ec32e..706b933a5a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/expU3ZKQXl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/expU3ZKQXl.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f3QLc7A0Jy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f3QLc7A0Jy.verified.txt index 9f1780d5c6..b15650d683 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f3QLc7A0Jy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f3QLc7A0Jy.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f75WbhGwpY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f75WbhGwpY.verified.txt index ca823f5e2b..f8d5d49a56 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f75WbhGwpY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/f75WbhGwpY.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fB528fZGda.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fB528fZGda.verified.txt index 5e9ec86137..99aebc7e04 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fB528fZGda.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fB528fZGda.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fCWZBgaVXf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fCWZBgaVXf.verified.txt index 0f6ad8a9ff..8dfe154e15 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fCWZBgaVXf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fCWZBgaVXf.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NoneSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NoneSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NoneSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fWP2lfWLPk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fWP2lfWLPk.verified.txt index bdb899ad11..dd7ee0abbc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fWP2lfWLPk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fWP2lfWLPk.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fh3rWYOBNK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fh3rWYOBNK.verified.txt index a287fd579e..f6ff32e11c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fh3rWYOBNK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/fh3rWYOBNK.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/foniqriE0x.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/foniqriE0x.verified.txt index 01ccfd4c20..9bdd80b1a7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/foniqriE0x.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/foniqriE0x.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/g2GJHmkJ6g.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/g2GJHmkJ6g.verified.txt index 5f320c98cf..9f6ee9381a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/g2GJHmkJ6g.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/g2GJHmkJ6g.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gB82e3zrgh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gB82e3zrgh.verified.txt index 52bda7f061..d4f84f095b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gB82e3zrgh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gB82e3zrgh.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gBSIHoxPSH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gBSIHoxPSH.verified.txt index e0f50e43c8..7f8744ee2f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gBSIHoxPSH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gBSIHoxPSH.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gDCVoWupwO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gDCVoWupwO.verified.txt index 323c4d3f4e..1609359988 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gDCVoWupwO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gDCVoWupwO.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gHJeECEirS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gHJeECEirS.verified.txt index 22a554539a..ad4f04f265 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gHJeECEirS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gHJeECEirS.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gINMG4g2SD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gINMG4g2SD.verified.txt index 0288edbae6..1bc9747af9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gINMG4g2SD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gINMG4g2SD.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gVoeOZGB2O.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gVoeOZGB2O.verified.txt index ac5fb67c54..8f1cbac14a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gVoeOZGB2O.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gVoeOZGB2O.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gZv6qTriEZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gZv6qTriEZ.verified.txt index b7258ccfca..effc1b3a82 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gZv6qTriEZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gZv6qTriEZ.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gcaIueInYK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gcaIueInYK.verified.txt index 8e641f20e6..f2997c3729 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gcaIueInYK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gcaIueInYK.verified.txt @@ -123,7 +123,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdEU7Wa7L9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdEU7Wa7L9.verified.txt index 3c7b0ae1dd..b1e48ac3bd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdEU7Wa7L9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdEU7Wa7L9.verified.txt @@ -131,7 +131,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdSgCnvoLX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdSgCnvoLX.verified.txt index dc14565db0..7c182f7e40 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdSgCnvoLX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gdSgCnvoLX.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gfOz5DZlFz.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gfOz5DZlFz.verified.txt index 7d52178650..ece6d52ebb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gfOz5DZlFz.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gfOz5DZlFz.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/goLqDh51R4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/goLqDh51R4.verified.txt index c943a98302..66520d5555 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/goLqDh51R4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/goLqDh51R4.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gpY03ADnQV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gpY03ADnQV.verified.txt index cd26584622..6291f9579e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gpY03ADnQV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/gpY03ADnQV.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h1YOlc87L1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h1YOlc87L1.verified.txt index 8ea8482715..d4012674dd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h1YOlc87L1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h1YOlc87L1.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h5DE7WWNVZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h5DE7WWNVZ.verified.txt index 732b0bf079..5571ed95c0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h5DE7WWNVZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/h5DE7WWNVZ.verified.txt @@ -132,7 +132,6 @@ public System.String Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hNDCZdY0Oe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hNDCZdY0Oe.verified.txt index 8ffad2c563..5aab116a92 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hNDCZdY0Oe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hNDCZdY0Oe.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hVDLxzVU6l.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hVDLxzVU6l.verified.txt index e3760d6285..0b52780e05 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hVDLxzVU6l.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hVDLxzVU6l.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hZH0Gxif8a.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hZH0Gxif8a.verified.txt index 7896529487..134a92b0be 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hZH0Gxif8a.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hZH0Gxif8a.verified.txt @@ -123,7 +123,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/haD3sLecw2.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/haD3sLecw2.verified.txt index 19ae9620c2..79674f0b0b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/haD3sLecw2.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/haD3sLecw2.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hfavvnYQWZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hfavvnYQWZ.verified.txt index fea670068c..d81b2c64d9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hfavvnYQWZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hfavvnYQWZ.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonechar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huFFLlLRpS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huFFLlLRpS.verified.txt index 26dae3bf6f..ed70c4f9a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huFFLlLRpS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huFFLlLRpS.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huJ2n43h1I.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huJ2n43h1I.verified.txt index 88bcfe079d..0f28cae0c2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huJ2n43h1I.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/huJ2n43h1I.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwUv4AV8nO.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwUv4AV8nO.verified.txt index 04bb7d17be..d00b4de698 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwUv4AV8nO.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwUv4AV8nO.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonbool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonbool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonbool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwtTGPVaMH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwtTGPVaMH.verified.txt index 39da6c970b..d1e4c31394 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwtTGPVaMH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hwtTGPVaMH.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hzd50zhd90.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hzd50zhd90.verified.txt index 3c435f4ab4..02ac054052 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hzd50zhd90.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/hzd50zhd90.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Noneshort(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneshort other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneshort other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i4oZujeWHq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i4oZujeWHq.verified.txt index 82524b4b20..6ad3f96764 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i4oZujeWHq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i4oZujeWHq.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i6rviH1rTx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i6rviH1rTx.verified.txt index b5c66a270f..6fce1960ad 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i6rviH1rTx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i6rviH1rTx.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonechar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonechar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonechar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i72eZjVuAN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i72eZjVuAN.verified.txt index 65d4d291d7..8161ebc697 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i72eZjVuAN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/i72eZjVuAN.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iLEO3110wT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iLEO3110wT.verified.txt index bd90dc3dbd..403d17ef96 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iLEO3110wT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iLEO3110wT.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iSRh4v08in.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iSRh4v08in.verified.txt index 4c7adb6f88..a05e4fa908 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iSRh4v08in.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iSRh4v08in.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iZF9DuDqS4.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iZF9DuDqS4.verified.txt index 20d51872cc..27ecd02b12 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iZF9DuDqS4.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iZF9DuDqS4.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ibt5qrBboh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ibt5qrBboh.verified.txt index 0b4aeff044..e2605a1d4e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ibt5qrBboh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ibt5qrBboh.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iglwKiU9tA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iglwKiU9tA.verified.txt index e08844cf15..f4762b8276 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iglwKiU9tA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/iglwKiU9tA.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/imc7uoBeBW.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/imc7uoBeBW.verified.txt index 367a166356..b149bbb6c8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/imc7uoBeBW.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/imc7uoBeBW.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irPwTmSphd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irPwTmSphd.verified.txt index 504cb648c2..a9a11fbb95 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irPwTmSphd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irPwTmSphd.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonechar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irTFzBWww6.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irTFzBWww6.verified.txt index 7a2b67368d..26acdd6c03 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irTFzBWww6.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/irTFzBWww6.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/j6VJz7reTb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/j6VJz7reTb.verified.txt index f01a98982f..1d67d02ebf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/j6VJz7reTb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/j6VJz7reTb.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jCOqL752jp.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jCOqL752jp.verified.txt index eea30a7a36..e772d63e2e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jCOqL752jp.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jCOqL752jp.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jJ6jC3iFP8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jJ6jC3iFP8.verified.txt index fd5acbbf41..b3fec0652f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jJ6jC3iFP8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jJ6jC3iFP8.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jKOSdj51zl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jKOSdj51zl.verified.txt index 9ed8f88bd7..392d2f3ba9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jKOSdj51zl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jKOSdj51zl.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jZRfdAG6j1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jZRfdAG6j1.verified.txt index 4ab620e0c7..e746bb2837 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jZRfdAG6j1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jZRfdAG6j1.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonebool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jiKa6yZ93n.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jiKa6yZ93n.verified.txt index fdc3558fac..a092f5c69d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jiKa6yZ93n.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jiKa6yZ93n.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jj1Tbe89Oe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jj1Tbe89Oe.verified.txt index cef152d5f0..7ce7f6b778 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jj1Tbe89Oe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jj1Tbe89Oe.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jsZoHg9G8A.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jsZoHg9G8A.verified.txt index c66dd4b54c..6395265ec4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jsZoHg9G8A.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jsZoHg9G8A.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv28fUozwr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv28fUozwr.verified.txt index 140c24e78f..caa545a9d9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv28fUozwr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv28fUozwr.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonebool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv7yYieYfM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv7yYieYfM.verified.txt index 7aff8a5837..fb73798b15 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv7yYieYfM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jv7yYieYfM.verified.txt @@ -124,7 +124,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jw0eX5c7z8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jw0eX5c7z8.verified.txt index bc4d617553..afcb6a1390 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jw0eX5c7z8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/jw0eX5c7z8.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/k28CGVkIcF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/k28CGVkIcF.verified.txt index 1ccd8f4cff..80ce9f7afd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/k28CGVkIcF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/k28CGVkIcF.verified.txt @@ -123,7 +123,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kA2aLu2O4F.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kA2aLu2O4F.verified.txt index 48ae6a9dbf..a6936c9ecf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kA2aLu2O4F.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kA2aLu2O4F.verified.txt @@ -123,7 +123,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kBpdiqzBrX.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kBpdiqzBrX.verified.txt index cf18c69d6a..ab896d8340 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kBpdiqzBrX.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kBpdiqzBrX.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kGRVvenfBr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kGRVvenfBr.verified.txt index 4953c8cbe5..ab1c47407b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kGRVvenfBr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kGRVvenfBr.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kMPspWDRPV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kMPspWDRPV.verified.txt index 5be73ebb5a..87e8e80ad8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kMPspWDRPV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kMPspWDRPV.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kTzuMoHQHL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kTzuMoHQHL.verified.txt index 7a33b5d75d..5e6cbdf2e0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kTzuMoHQHL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kTzuMoHQHL.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ka4rWom6OV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ka4rWom6OV.verified.txt index 418e58c314..3eb17deff3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ka4rWom6OV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ka4rWom6OV.verified.txt @@ -124,7 +124,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kleh5gWHOq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kleh5gWHOq.verified.txt index 8fe347f9b2..6ed31ab4be 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kleh5gWHOq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kleh5gWHOq.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kpGCuuJaAr.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kpGCuuJaAr.verified.txt index 21c3278da2..0cbe734f00 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kpGCuuJaAr.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kpGCuuJaAr.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kwB3qEbKaN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kwB3qEbKaN.verified.txt index e323f5c920..a66ac5a259 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kwB3qEbKaN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/kwB3qEbKaN.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0HSgG8Z9o.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0HSgG8Z9o.verified.txt index 8a74016804..d421901b5c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0HSgG8Z9o.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0HSgG8Z9o.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NoneSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0KgzJEYIx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0KgzJEYIx.verified.txt index 6f1acdc6c7..bd1e218867 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0KgzJEYIx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l0KgzJEYIx.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l2SAWFGh79.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l2SAWFGh79.verified.txt index 63c9dea850..59ef768ad7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l2SAWFGh79.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l2SAWFGh79.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l3nZY7tgeg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l3nZY7tgeg.verified.txt index 0161dcf523..acf0282f19 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l3nZY7tgeg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l3nZY7tgeg.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l6SWadXtXK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l6SWadXtXK.verified.txt index 77202d64ab..8ec8b510a4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l6SWadXtXK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/l6SWadXtXK.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Noneint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lW3XRX2j9J.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lW3XRX2j9J.verified.txt index 0fec363b23..7335506093 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lW3XRX2j9J.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lW3XRX2j9J.verified.txt @@ -122,7 +122,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonechar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lZWd7O34Iu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lZWd7O34Iu.verified.txt index 279af145c0..588d103f3b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lZWd7O34Iu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lZWd7O34Iu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonebyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lkYLcqZrJ7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lkYLcqZrJ7.verified.txt index 31be99f1cd..4e3f003846 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lkYLcqZrJ7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lkYLcqZrJ7.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lnXaiNausA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lnXaiNausA.verified.txt index bedbae760c..aad93b88cc 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lnXaiNausA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lnXaiNausA.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lvRzdHO8Lx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lvRzdHO8Lx.verified.txt index 0b54921092..bb079cf219 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lvRzdHO8Lx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/lvRzdHO8Lx.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ly6zLmkAEe.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ly6zLmkAEe.verified.txt index 51b2fe04d0..f33a8a1573 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ly6zLmkAEe.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ly6zLmkAEe.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/m1FqDTPm2B.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/m1FqDTPm2B.verified.txt index a4b77821ac..6b73d1232b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/m1FqDTPm2B.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/m1FqDTPm2B.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NoneSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mBlf58Blum.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mBlf58Blum.verified.txt index 42630de4e6..51c2d85ecd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mBlf58Blum.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mBlf58Blum.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mC8omC0oGh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mC8omC0oGh.verified.txt index 8f0891a4a0..603ebab660 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mC8omC0oGh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mC8omC0oGh.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mFIIJTvHXY.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mFIIJTvHXY.verified.txt index a4e820f960..6c3c423ccd 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mFIIJTvHXY.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mFIIJTvHXY.verified.txt @@ -123,7 +123,6 @@ public System.Guid Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mLHmiGlOxG.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mLHmiGlOxG.verified.txt index 86162d4147..7872bf342a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mLHmiGlOxG.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mLHmiGlOxG.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mMQasnlEWp.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mMQasnlEWp.verified.txt index 73b6c52027..2ba07e1286 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mMQasnlEWp.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mMQasnlEWp.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mSaBfPn6Of.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mSaBfPn6Of.verified.txt index adad2f73ef..0be670d5cf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mSaBfPn6Of.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/mSaBfPn6Of.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/n5EFm5bcMM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/n5EFm5bcMM.verified.txt index c7ee9ede68..7586b431a8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/n5EFm5bcMM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/n5EFm5bcMM.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nARiIqq5Oi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nARiIqq5Oi.verified.txt index 6ca0303b12..be7479dfec 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nARiIqq5Oi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nARiIqq5Oi.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nFx3RMdaSZ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nFx3RMdaSZ.verified.txt index 59879c5977..348510e116 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nFx3RMdaSZ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nFx3RMdaSZ.verified.txt @@ -124,7 +124,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nJWBYx2cBu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nJWBYx2cBu.verified.txt index 4b1411b33f..72d595009e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nJWBYx2cBu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nJWBYx2cBu.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nVmE9Ey45x.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nVmE9Ey45x.verified.txt index 25f10538cc..caedd914b0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nVmE9Ey45x.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nVmE9Ey45x.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nhIBelYWXx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nhIBelYWXx.verified.txt index 7454bbcc9e..d226043e6d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nhIBelYWXx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nhIBelYWXx.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nmxQAibBQU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nmxQAibBQU.verified.txt index da411d6338..5aaf1e4623 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nmxQAibBQU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nmxQAibBQU.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsondouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nqhhEvw5M5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nqhhEvw5M5.verified.txt index ee391cc7da..6386477fda 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nqhhEvw5M5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nqhhEvw5M5.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nyYLmz0Jp9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nyYLmz0Jp9.verified.txt index a49cbc1364..eca8b51e11 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nyYLmz0Jp9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/nyYLmz0Jp9.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Nonebyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oBRudcUcJf.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oBRudcUcJf.verified.txt index 9d02c4c2ae..4114f3ef85 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oBRudcUcJf.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oBRudcUcJf.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU7fOpa8my.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU7fOpa8my.verified.txt index 095b411734..d6bcfa9cf5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU7fOpa8my.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU7fOpa8my.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU8vBz799h.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU8vBz799h.verified.txt index 16a8ea407e..ec24d26730 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU8vBz799h.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oU8vBz799h.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonebool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonebool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/obc6odGdXb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/obc6odGdXb.verified.txt index ed4c0e89cd..8389bd2f4f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/obc6odGdXb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/obc6odGdXb.verified.txt @@ -122,7 +122,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oeNfrGb3dP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oeNfrGb3dP.verified.txt index 8f13ac9170..6b209ee907 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oeNfrGb3dP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oeNfrGb3dP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oejkjadQak.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oejkjadQak.verified.txt index b816bb9ad8..6a040042d3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oejkjadQak.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oejkjadQak.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonefloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ogJB7Sz0yU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ogJB7Sz0yU.verified.txt index a038ac62ac..144ea362c0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ogJB7Sz0yU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ogJB7Sz0yU.verified.txt @@ -124,7 +124,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ootFcSLnVb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ootFcSLnVb.verified.txt index 8a765afc1c..90badbe08d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ootFcSLnVb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ootFcSLnVb.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orOucBh0pL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orOucBh0pL.verified.txt index d6ef29bcde..11f8829f6f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orOucBh0pL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orOucBh0pL.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orlPvMIkMB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orlPvMIkMB.verified.txt index 516c5fa775..f8480f2c98 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orlPvMIkMB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/orlPvMIkMB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonchar_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oxCT78GlRA.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oxCT78GlRA.verified.txt index 5d4080e350..624f402687 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oxCT78GlRA.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/oxCT78GlRA.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NoneSystem_DateTime_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_DateTime_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_DateTime_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p3dtUmoJki.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p3dtUmoJki.verified.txt index 61843dd313..ef77dfc550 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p3dtUmoJki.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p3dtUmoJki.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NoneSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p590fvKGCl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p590fvKGCl.verified.txt index d6d4da4af6..4ed1883f8c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p590fvKGCl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/p590fvKGCl.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NoneSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pKThSIEAfM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pKThSIEAfM.verified.txt index b40fb3decd..112e3f93f2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pKThSIEAfM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pKThSIEAfM.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pa90zbgXZM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pa90zbgXZM.verified.txt index 7fc2177798..5ab7fa42db 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pa90zbgXZM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pa90zbgXZM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pab9PyoTHy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pab9PyoTHy.verified.txt index b6eff12203..b146ae6ca2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pab9PyoTHy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pab9PyoTHy.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Nonedouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Nonedouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/phHd3oRTWx.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/phHd3oRTWx.verified.txt index 85422e155f..65427224ad 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/phHd3oRTWx.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/phHd3oRTWx.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/piRD3s8PHK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/piRD3s8PHK.verified.txt index c7028a25ea..f71611d31d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/piRD3s8PHK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/piRD3s8PHK.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pqQ5jxqYG9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pqQ5jxqYG9.verified.txt index 505a93a6ee..2e77bec114 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pqQ5jxqYG9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/pqQ5jxqYG9.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondouble(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondouble other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondouble other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q2lUakGftL.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q2lUakGftL.verified.txt index b78924c39b..9acf2f0b9b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q2lUakGftL.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q2lUakGftL.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_None_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q5akUgBzW7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q5akUgBzW7.verified.txt index b79a14aebf..1d595894df 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q5akUgBzW7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/q5akUgBzW7.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qSF1yvclfJ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qSF1yvclfJ.verified.txt index 787842c71f..a91547f287 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qSF1yvclfJ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qSF1yvclfJ.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qZgPE8pch9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qZgPE8pch9.verified.txt index 816cb074aa..920e01165c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qZgPE8pch9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qZgPE8pch9.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondecimal(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondecimal other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondecimal other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qak2e6FVMw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qak2e6FVMw.verified.txt index 51a7311bd5..aca9267e83 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qak2e6FVMw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qak2e6FVMw.verified.txt @@ -122,7 +122,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qdSNr9Rcyt.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qdSNr9Rcyt.verified.txt index d8e25bf069..db47859a1a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qdSNr9Rcyt.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qdSNr9Rcyt.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qjd94TOc8m.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qjd94TOc8m.verified.txt index 5fbe6cee23..0674caa161 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qjd94TOc8m.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qjd94TOc8m.verified.txt @@ -123,7 +123,6 @@ public System.Char Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qsGPBNBLJF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qsGPBNBLJF.verified.txt index c1b4bf2604..5c44eee268 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qsGPBNBLJF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qsGPBNBLJF.verified.txt @@ -123,7 +123,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qtzyeHfv7y.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qtzyeHfv7y.verified.txt index f40253a8de..81f3cbf7a4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qtzyeHfv7y.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qtzyeHfv7y.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_Nonelong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonelong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonelong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qxrapGJogF.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qxrapGJogF.verified.txt index 7d3b737476..435589be34 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qxrapGJogF.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/qxrapGJogF.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Noneint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rLulWISFGT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rLulWISFGT.verified.txt index 2405027bba..f1297a58b5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rLulWISFGT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rLulWISFGT.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rSPwcy25v8.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rSPwcy25v8.verified.txt index 23a4db6c10..ba18fe4997 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rSPwcy25v8.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rSPwcy25v8.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rU0cLBeO2m.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rU0cLBeO2m.verified.txt index d8f80bee91..5db5f461b3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rU0cLBeO2m.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rU0cLBeO2m.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/reCg8FLVfu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/reCg8FLVfu.verified.txt index 0a04ece67e..e0d3ae070e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/reCg8FLVfu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/reCg8FLVfu.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NoneSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ri3sAFDbTl.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ri3sAFDbTl.verified.txt index fa922faa58..9d64cff1e6 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ri3sAFDbTl.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ri3sAFDbTl.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rrZc6Mf5i1.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rrZc6Mf5i1.verified.txt index c8d698ef76..b41a30dcc8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rrZc6Mf5i1.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/rrZc6Mf5i1.verified.txt @@ -123,7 +123,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sCUdmRlz5y.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sCUdmRlz5y.verified.txt index 1f3d91b51e..67f574302a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sCUdmRlz5y.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sCUdmRlz5y.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_SystemTextJson_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sNbPQoTGUg.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sNbPQoTGUg.verified.txt index 451cd72325..68a417d168 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sNbPQoTGUg.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sNbPQoTGUg.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sWqhuccBgI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sWqhuccBgI.verified.txt index e83e9c3fcf..4d80d00c6c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sWqhuccBgI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sWqhuccBgI.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sXrkcvgdks.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sXrkcvgdks.verified.txt index 183f02912d..ce364f1ecf 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sXrkcvgdks.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sXrkcvgdks.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/scAOQYQWaB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/scAOQYQWaB.verified.txt index 900f7c88b5..0cd51719f1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/scAOQYQWaB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/scAOQYQWaB.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/smZgSpu29K.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/smZgSpu29K.verified.txt index 8f0a928106..b0da8fd88f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/smZgSpu29K.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/smZgSpu29K.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sxyZgYZVQ5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sxyZgYZVQ5.verified.txt index 93cc4410e1..ee87acc4e2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sxyZgYZVQ5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/sxyZgYZVQ5.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t1Y0EJvrWS.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t1Y0EJvrWS.verified.txt index dfaaaae17e..c3afe6be08 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t1Y0EJvrWS.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t1Y0EJvrWS.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t2wCukANhH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t2wCukANhH.verified.txt index 761a8d636c..91216797ce 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t2wCukANhH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/t2wCukANhH.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Nonelong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tAEH8P36Jy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tAEH8P36Jy.verified.txt index c523350283..49c2162737 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tAEH8P36Jy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tAEH8P36Jy.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonint(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonint other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonint other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_SystemTextJsonint other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tBc1tailOK.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tBc1tailOK.verified.txt index d5a634f341..deadaab198 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tBc1tailOK.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tBc1tailOK.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tEjl2SGxqR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tEjl2SGxqR.verified.txt index e78d7cb5e3..4d0d9823e1 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tEjl2SGxqR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tEjl2SGxqR.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tErTmmdFTU.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tErTmmdFTU.verified.txt index 32e9e430d4..79a9344406 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tErTmmdFTU.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tErTmmdFTU.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tJ3uAol7pm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tJ3uAol7pm.verified.txt index 93dcc1feae..27fbb59c93 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tJ3uAol7pm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tJ3uAol7pm.verified.txt @@ -123,7 +123,6 @@ public System.Int16 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tQuvokcswu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tQuvokcswu.verified.txt index 3e2eaff77b..3313bdd62c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tQuvokcswu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tQuvokcswu.verified.txt @@ -123,7 +123,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tTcGVYt08T.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tTcGVYt08T.verified.txt index 72fdee9392..7661d26414 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tTcGVYt08T.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tTcGVYt08T.verified.txt @@ -122,7 +122,6 @@ public System.Double Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/taL5XW0aLb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/taL5XW0aLb.verified.txt index ea6036caa8..2069df3fa2 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/taL5XW0aLb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/taL5XW0aLb.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tbPpRTLajw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tbPpRTLajw.verified.txt index 2f197c6832..3063ca2e52 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tbPpRTLajw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tbPpRTLajw.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tc8eRDlQpb.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tc8eRDlQpb.verified.txt index 600bfed8c3..90faf8ba09 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tc8eRDlQpb.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tc8eRDlQpb.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgEK7iw2lc.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgEK7iw2lc.verified.txt index 85ad94d7c1..140661768b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgEK7iw2lc.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgEK7iw2lc.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgtlwX3xLi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgtlwX3xLi.verified.txt index 4c11aa5ab2..48ea53c9a3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgtlwX3xLi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tgtlwX3xLi.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thShBJas6A.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thShBJas6A.verified.txt index 09560d8bd7..94cf109820 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thShBJas6A.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thShBJas6A.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_SystemTextJsonchar(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonchar other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonchar other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_SystemTextJsonchar other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thfyqablKI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thfyqablKI.verified.txt index bbee5331bf..8368058a99 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thfyqablKI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/thfyqablKI.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tvyMAyAmHN.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tvyMAyAmHN.verified.txt index 485375b67f..9c1194ac52 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tvyMAyAmHN.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/tvyMAyAmHN.verified.txt @@ -147,7 +147,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/txpErVsTPH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/txpErVsTPH.verified.txt index 63210f685b..c523eb2ede 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/txpErVsTPH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/txpErVsTPH.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uKm7VEJmYH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uKm7VEJmYH.verified.txt index e58ed52175..c634639386 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uKm7VEJmYH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uKm7VEJmYH.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uWhzk4japH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uWhzk4japH.verified.txt index d4472f3bb1..af02202fa4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uWhzk4japH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uWhzk4japH.verified.txt @@ -120,8 +120,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -129,7 +128,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonstring_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uYMRz5M6Yt.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uYMRz5M6Yt.verified.txt index 07d7249c1f..b4e0996a72 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uYMRz5M6Yt.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uYMRz5M6Yt.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_None(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_None other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_None other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_None other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/udEoaZL1DV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/udEoaZL1DV.verified.txt index 45316ac10b..1134c7d234 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/udEoaZL1DV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/udEoaZL1DV.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ue2OqWTlib.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ue2OqWTlib.verified.txt index 1810eb5819..61c9bbce0f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ue2OqWTlib.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ue2OqWTlib.verified.txt @@ -124,7 +124,6 @@ public System.Boolean Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ujvjGjyiQ9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ujvjGjyiQ9.verified.txt index d62f7f7179..2835d3672f 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ujvjGjyiQ9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ujvjGjyiQ9.verified.txt @@ -122,7 +122,6 @@ public System.Int32 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_Noneint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uw18hEuxuy.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uw18hEuxuy.verified.txt index 5263a17166..02d42cd761 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uw18hEuxuy.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/uw18hEuxuy.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_Nonelong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonelong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonelong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_Nonelong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/v8SuB33vdj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/v8SuB33vdj.verified.txt index 486e55542b..6ddde72199 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/v8SuB33vdj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/v8SuB33vdj.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vKfYIckb2z.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vKfYIckb2z.verified.txt index 72bbb04fb0..645dc3cdb5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vKfYIckb2z.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vKfYIckb2z.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_SystemTextJsonshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vW0d5SJC32.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vW0d5SJC32.verified.txt index d849931d70..e2a456a4ce 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vW0d5SJC32.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vW0d5SJC32.verified.txt @@ -124,7 +124,6 @@ public System.DateTime Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vWVK0faLUk.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vWVK0faLUk.verified.txt index af052aa84a..4c44d4a842 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vWVK0faLUk.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vWVK0faLUk.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsondouble other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vl0mWS3chi.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vl0mWS3chi.verified.txt index 7b16c01d6f..5cd78bd901 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vl0mWS3chi.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vl0mWS3chi.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vtjzIdMfDq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vtjzIdMfDq.verified.txt index 0ce29f7fb3..d600420814 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vtjzIdMfDq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/vtjzIdMfDq.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w3STswVYFV.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w3STswVYFV.verified.txt index e6a6dbe174..849a709300 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w3STswVYFV.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w3STswVYFV.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w68jlFSN6b.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w68jlFSN6b.verified.txt index b73d4b0337..6553d1358e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w68jlFSN6b.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/w68jlFSN6b.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wDXYX1nAvj.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wDXYX1nAvj.verified.txt index 44f810b3b1..c1b9ba747b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wDXYX1nAvj.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wDXYX1nAvj.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wKRrRBrKLB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wKRrRBrKLB.verified.txt index 7a0480e0c6..221d815ff8 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wKRrRBrKLB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wKRrRBrKLB.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wVzuYaSxg7.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wVzuYaSxg7.verified.txt index d60ba1fc38..1dfe18a7a9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wVzuYaSxg7.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wVzuYaSxg7.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonfloat other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wWAw5VInAd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wWAw5VInAd.verified.txt index 471833ed9c..ce5efcd73e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wWAw5VInAd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wWAw5VInAd.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wdb5wBkjR9.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wdb5wBkjR9.verified.txt index 48bc4d18e5..d117f8196b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wdb5wBkjR9.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wdb5wBkjR9.verified.txt @@ -107,8 +107,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -116,7 +115,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/worgaL73sM.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/worgaL73sM.verified.txt index 4cd1bb6b42..0d7d519ad7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/worgaL73sM.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/worgaL73sM.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wt2WDTS2CQ.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wt2WDTS2CQ.verified.txt index 731fb23f33..82bc6380f9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wt2WDTS2CQ.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/wt2WDTS2CQ.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_NewtonsoftJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x0YOP7Nn8c.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x0YOP7Nn8c.verified.txt index d7d62cd6c1..03c844c58e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x0YOP7Nn8c.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x0YOP7Nn8c.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x2ETtdpwki.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x2ETtdpwki.verified.txt index e50db6e010..e3e14e519d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x2ETtdpwki.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/x2ETtdpwki.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonbool_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xGjQaFb3aq.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xGjQaFb3aq.verified.txt index deb93740af..026b95a8f7 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xGjQaFb3aq.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xGjQaFb3aq.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonbool other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xK0eUqPpey.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xK0eUqPpey.verified.txt index 1637118bcd..d1b15b63e9 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xK0eUqPpey.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xK0eUqPpey.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTime_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xMCVWchXOP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xMCVWchXOP.verified.txt index dc36bd4751..7110f0f945 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xMCVWchXOP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xMCVWchXOP.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonint_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xT1GDMMM6L.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xT1GDMMM6L.verified.txt index cbc755343f..4cb7dd177c 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xT1GDMMM6L.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xT1GDMMM6L.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonfloat_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonfloat_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonfloat_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonfloat_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xVyUwukXZs.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xVyUwukXZs.verified.txt index 4238af4e2e..0fdc9ff79b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xVyUwukXZs.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xVyUwukXZs.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJson other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xXthyIoFxI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xXthyIoFxI.verified.txt index b4c1a06236..b3ced29e04 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xXthyIoFxI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xXthyIoFxI.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_structConversions_NoneSystem_Guid_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xgteiRGn1w.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xgteiRGn1w.verified.txt index fb84cb54e4..fb474b1ba3 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xgteiRGn1w.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xgteiRGn1w.verified.txt @@ -124,7 +124,6 @@ public System.Byte Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_NewtonsoftJson___Conversions_SystemTextJsonbyte_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xlUv3dIfem.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xlUv3dIfem.verified.txt index a41eb5f2e2..28f2e60a5e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xlUv3dIfem.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xlUv3dIfem.verified.txt @@ -119,8 +119,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonestring(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonestring other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonestring other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -128,7 +127,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonestring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xqjZsQAp1i.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xqjZsQAp1i.verified.txt index 3a7dc311d3..4874a1afb4 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xqjZsQAp1i.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xqjZsQAp1i.verified.txt @@ -123,7 +123,6 @@ public System.DateTimeOffset Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xwhOo3USEm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xwhOo3USEm.verified.txt index ea8ce34a2a..f7f79c01cb 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xwhOo3USEm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xwhOo3USEm.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xyxDLTbcDm.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xyxDLTbcDm.verified.txt index 0b3dcc76cc..0c15398df0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xyxDLTbcDm.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/xyxDLTbcDm.verified.txt @@ -115,8 +115,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_Nonedouble_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedouble_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedouble_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -124,7 +123,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yCeMb8q5pw.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yCeMb8q5pw.verified.txt index d95a29191b..1ee3652433 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yCeMb8q5pw.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yCeMb8q5pw.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Noneshort other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yE4PKEmLLH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yE4PKEmLLH.verified.txt index dbd92b25b2..ba9654b416 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yE4PKEmLLH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yE4PKEmLLH.verified.txt @@ -146,7 +146,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJsonstring other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yJKoFPilpD.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yJKoFPilpD.verified.txt index 9ca84b3eeb..80330ffba0 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yJKoFPilpD.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yJKoFPilpD.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_recordConversions_Nonedouble_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ytMT9DXPmu.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ytMT9DXPmu.verified.txt index 1f3ef40fd7..f938acd39d 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ytMT9DXPmu.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/ytMT9DXPmu.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yvArWjv2OB.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yvArWjv2OB.verified.txt index 6ca4f34b89..68cba4fd35 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yvArWjv2OB.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yvArWjv2OB.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yyoge8phbR.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yyoge8phbR.verified.txt index 47aa878c45..d5d3f75586 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yyoge8phbR.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/yyoge8phbR.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJson___Conversions_SystemTextJsonSystem_DateTimeOffset_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/z7Uv6HYSAh.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/z7Uv6HYSAh.verified.txt index 65e160a995..56b8f372af 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/z7Uv6HYSAh.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/z7Uv6HYSAh.verified.txt @@ -135,7 +135,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_recordConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zE3fn4jYWH.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zE3fn4jYWH.verified.txt index 127513e01e..981715b862 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zE3fn4jYWH.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zE3fn4jYWH.verified.txt @@ -123,7 +123,6 @@ public System.Decimal Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_classConversions_NewtonsoftJsondecimal_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zH7ALmRtyp.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zH7ALmRtyp.verified.txt index 3b4cb57fc1..706df6018e 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zH7ALmRtyp.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zH7ALmRtyp.verified.txt @@ -105,8 +105,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_structConversions_Noneshort_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneshort_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneshort_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -114,7 +113,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_structConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zITKgyImsd.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zITKgyImsd.verified.txt index dd5cc5e8cf..4ede3fd6ad 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zITKgyImsd.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zITKgyImsd.verified.txt @@ -106,8 +106,7 @@ namespace Whatever return new stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTime(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTime other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTime other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -115,7 +114,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_structConversions_NewtonsoftJsonSystem_DateTime other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zM1cQbNNz5.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zM1cQbNNz5.verified.txt index 9360fa9fef..c21b710052 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zM1cQbNNz5.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zM1cQbNNz5.verified.txt @@ -116,8 +116,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -125,7 +124,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zRzJJ6D2kP.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zRzJJ6D2kP.verified.txt index 2439d63290..b297b7eaa5 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zRzJJ6D2kP.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zRzJJ6D2kP.verified.txt @@ -117,8 +117,7 @@ namespace Whatever return new stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized(value); } - - public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) + public readonly global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other) { // It's possible to create uninitialized instances via converters such as EfCore (HasDefaultValue), which call Equals. // We treat anything uninitialized as not equal to anything, even other uninitialized instances of this type. @@ -126,7 +125,6 @@ namespace Whatever return global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_readonly_partial_record_structConversions_NewtonsoftJson___Conversions_SystemTextJsonlong_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zS1qSUXGoT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zS1qSUXGoT.verified.txt index ca66bcfa82..9030a4755b 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zS1qSUXGoT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zS1qSUXGoT.verified.txt @@ -133,7 +133,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_sealed_partial_record_classConversions_Noneshort_customized other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zmu9r12YdI.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zmu9r12YdI.verified.txt index ce26ed72ab..53b984b190 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zmu9r12YdI.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zmu9r12YdI.verified.txt @@ -123,7 +123,6 @@ public System.Int64 Value return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_classConversions_SystemTextJsonlong other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other); diff --git a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zxDSrq9MBT.verified.txt b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zxDSrq9MBT.verified.txt index fb6ef423df..2496c7f35a 100644 --- a/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zxDSrq9MBT.verified.txt +++ b/tests/SnapshotTests/JsonNumberCustomizations/snapshots/snap-v7.0/zxDSrq9MBT.verified.txt @@ -134,7 +134,6 @@ namespace Whatever return GetType() == other.GetType() && global::System.Collections.Generic.EqualityComparer.Default.Equals(Value, other.Value); } - public global::System.Boolean Equals(stj_number_as_string_public_partial_record_classConversions_NewtonsoftJsonbyte other, global::System.Collections.Generic.IEqualityComparer comparer) { return comparer.Equals(this, other);