File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/CommandLineUtils/HelpText Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ protected virtual void GenerateArguments(
194
194
var description = arg . Description ;
195
195
var allowedValuesBeenSet = false ;
196
196
197
- foreach ( var attributeValidator in arg . Validators . Cast < AttributeValidator > ( ) )
197
+ foreach ( var attributeValidator in arg . Validators . OfType < AttributeValidator > ( ) )
198
198
{
199
199
if ( attributeValidator ? . ValidationAttribute is AllowedValuesAttribute allowedValuesAttribute )
200
200
{
@@ -251,7 +251,7 @@ protected virtual void GenerateOptions(
251
251
var description = opt . Description ;
252
252
var allowedValuesBeenSet = false ;
253
253
254
- foreach ( var attributeValidator in opt . Validators . Cast < AttributeValidator > ( ) )
254
+ foreach ( var attributeValidator in opt . Validators . OfType < AttributeValidator > ( ) )
255
255
{
256
256
if ( attributeValidator ? . ValidationAttribute is AllowedValuesAttribute allowedValuesAttribute )
257
257
{
You can’t perform that action at this time.
0 commit comments