Skip to content

Commit

Permalink
Fix wrong guard expression
Browse files Browse the repository at this point in the history
  • Loading branch information
pruiz committed Jan 29, 2016
1 parent dca15a0 commit c2abce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HermaFx.Foundation/DesignPatterns/EnhancedEnumType.cs
Expand Up @@ -33,7 +33,7 @@ public EnhancedEnumType(Func<T, object> memberKeyGetter, Func<T, object, bool> m
MemberType = memberKeyGetter(_entries.First()).GetType();

Guard.Against<InvalidOperationException>(
_entries.Count() == _entries.Select(x => MemberKeyGetter(x)).Distinct().Count(),
_entries.Count() != _entries.Select(x => MemberKeyGetter(x)).Distinct().Count(),
"One or more EnhancedEnum members have duplicated keys"
);
}
Expand Down

0 comments on commit c2abce2

Please sign in to comment.