We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7832c commit cf8cef8Copy full SHA for cf8cef8
src/FluentNHibernate/MappingModel/AttributeStore.cs
@@ -59,8 +59,9 @@ public bool Equals(AttributeStore other)
59
60
public override bool Equals(object obj)
61
{
62
- if (obj.GetType() != typeof(AttributeStore)) return false;
63
- return Equals((AttributeStore)obj);
+ var typed = obj as AttributeStore;
+ if (null == typed) return false;
64
+ return Equals(typed);
65
}
66
67
public override int GetHashCode()
0 commit comments