mirror of
https://github.com/oliverbooth/X10D
synced 2024-11-22 23:58:48 +00:00
🔨 Fix paramName in ArgumentException ctor
This commit is contained in:
parent
b17a08babf
commit
ee3af80aca
@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
if (!t.IsEnum)
|
if (!t.IsEnum)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("Type provided must be an Enum.", "T");
|
throw new ArgumentException("Type provided must be an Enum.", nameof(T));
|
||||||
}
|
}
|
||||||
|
|
||||||
return (T) Enum.Parse(t, value, ignoreCase);
|
return (T) Enum.Parse(t, value, ignoreCase);
|
||||||
|
Loading…
Reference in New Issue
Block a user