提交 edc02bfd 编写于 作者: B bartkoelman

Use nameof() in calls to InvalidEnumArgumentException ctor

上级 90f8b797
......@@ -103,7 +103,7 @@ internal WordParser(string text, WordParserOptions options, char prefix)
if (options < WordParserOptions.None || options > (WordParserOptions.IgnoreMnemonicsIndicators | WordParserOptions.SplitCompoundWords))
{
throw new InvalidEnumArgumentException("options", (int)options, typeof(WordParserOptions));
throw new InvalidEnumArgumentException(nameof(options), (int)options, typeof(WordParserOptions));
}
_text = text;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册