Skip to content

Commit 5df3c3c

Browse files
committed
Enum.GetValues -> Enum.GetNames
1 parent b223842 commit 5df3c3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ConsoleAppFramework/ConsoleAppBaseCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static void ThrowArgumentParseFailed(string argumentName, string value)
258258
}
259259
260260
static void ThrowArgumentParseFailed<TEnum>(string argumentName, string value) where TEnum : struct, Enum {
261-
var values = string.Join(", ", Enum.GetValues<TEnum>());
261+
var values = string.Join(", ", Enum.GetNames<TEnum>());
262262
throw new ArgumentParseFailedException($"Argument '{argumentName}' is invalid. Provided value: {value}. Valid values: {values}");
263263
}
264264

0 commit comments

Comments
 (0)