Case-insensitive search for type name

pull/663/head
NextTurn 2020-08-25 00:00:00 +08:00
parent 9c513e8584
commit b4165e611b
No known key found for this signature in database
GPG Key ID: 17A0D50ADDE1A0C4
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ namespace WinSW.Extensions
try
{
Type? t = Type.GetType(className);
Type? t = Type.GetType(className, throwOnError: false, ignoreCase: true);
if (t is null)
{
throw new ExtensionException(id, "Class " + className + " does not exist");