Skip to content

Commit

Permalink
ParamsAllValuesValidator fixes
Browse files Browse the repository at this point in the history
Move it to the validator folders
Support old versions of C#
  • Loading branch information
AndreyAkinshin committed Oct 17, 2018
1 parent 10fdd09 commit 846d086
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ class ParamsAllValuesValidator : IValidator
.SelectMany(type => type.GetTypeMembersWithGivenAttribute<ParamsAllValuesAttribute>(reflectionFlags))
.Distinct()
.Select(member => GetErrorOrDefault(member.ParameterType))
.Where(error => error != default);
.Where(error => error != null);

private bool IsBool(Type paramType) => paramType == typeof(bool);
private bool IsEnum(Type paramType) => paramType.GetTypeInfo().IsEnum;
Expand Down

0 comments on commit 846d086

Please sign in to comment.