1
0
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:
Oliver Booth 2019-12-25 13:56:16 +00:00
parent b17a08babf
commit ee3af80aca
No known key found for this signature in database
GPG Key ID: 0D7F2EF1C8D2B9C0

View File

@ -73,7 +73,7 @@
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);