Permalink
Browse files

Update src/FluentNHibernate/MappingModel/AttributeStore.cs

Changed Equals implementation to default Equals() implementation
  • Loading branch information...
1 parent 4c7832c commit cf8cef80d700215bfff98ca2662857f014c00762 @CV1 CV1 committed Aug 15, 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 cf8cef8

Please sign in to comment.