Skip to content

Commit a963467

Browse files
committed
Fixed equals
1 parent 47012be commit a963467

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/NHibernate/Transform/DistinctRootEntityResultTransformer.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ public override bool Equals(object obj)
7474
{
7575
if (ReferenceEquals(obj, this))
7676
return true;
77-
78-
return obj is DistinctRootEntityResultTransformer;
77+
if (obj == null)
78+
return false;
79+
return obj.GetType() == GetType();
7980
}
8081

8182
public override int GetHashCode()

0 commit comments

Comments
 (0)