Skip to content

Commit cf8cef8

Browse files
committed
Update src/FluentNHibernate/MappingModel/AttributeStore.cs
Changed Equals implementation to default Equals() implementation
1 parent 4c7832c commit cf8cef8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/FluentNHibernate/MappingModel/AttributeStore.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ public bool Equals(AttributeStore other)
5959

6060
public override bool Equals(object obj)
6161
{
62-
if (obj.GetType() != typeof(AttributeStore)) return false;
63-
return Equals((AttributeStore)obj);
62+
var typed = obj as AttributeStore;
63+
if (null == typed) return false;
64+
return Equals(typed);
6465
}
6566

6667
public override int GetHashCode()

0 commit comments

Comments
 (0)