Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #158 from CV1/patch-3

Update src/FluentNHibernate/MappingModel/AttributeStore.cs
  • Loading branch information...
commit 63593b5de28a42beb429ab4d4569a4a8658a432a 2 parents 7d55aae + cf8cef8
James Gregory authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/FluentNHibernate/MappingModel/AttributeStore.cs
5 src/FluentNHibernate/MappingModel/AttributeStore.cs
View
@@ -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()
Please sign in to comment.
Something went wrong with that request. Please try again.