Skip to content

Commit 63593b5

Browse files
committed
Merge pull request #158 from CV1/patch-3
Update src/FluentNHibernate/MappingModel/AttributeStore.cs
2 parents 7d55aae + cf8cef8 commit 63593b5

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)