Skip to content

Commit 5403012

Browse files
committed
Revert "Fixed: Throw exception if compared objects type doesn't implement IEquatable<> interface or overrides default Equals implementation"
This reverts commit f052eca.
1 parent c75ee3d commit 5403012

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/ObjDiff/ObjDiff.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,6 @@ public static void MakeEqual<T>(T target, T source, CompareOptions compareOption
142142

143143
private static IEnumerable<Difference> Diff<T>(T left, T right, CompareOptions compareOptions, string path, int? arrayIndex, uint currentDepth) where T : class
144144
{
145-
if (!HasEqualityDefined(left.GetType()))
146-
throw new ObjDiffException("Type does not implement IEquatable<> interface nor overrides default Equals method.");
147-
148145
var differences = new List<Difference>();
149146

150147
if ((left == null) && (right == null))

0 commit comments

Comments
 (0)