Permalink
Browse files

Merge pull request #158 from CV1/patch-3

Update src/FluentNHibernate/MappingModel/AttributeStore.cs
  • Loading branch information...
2 parents 7d55aae + cf8cef8 commit 63593b5de28a42beb429ab4d4569a4a8658a432a @jagregory committed Aug 18, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/FluentNHibernate/MappingModel/AttributeStore.cs
@@ -59,8 +59,9 @@ public bool Equals(AttributeStore other)
public override bool Equals(object obj)
{
- if (obj.GetType() != typeof(AttributeStore)) return false;
- return Equals((AttributeStore)obj);
+ var typed = obj as AttributeStore;
+ if (null == typed) return false;
+ return Equals(typed);
}
public override int GetHashCode()

0 comments on commit 63593b5

Please sign in to comment.