Case-insensitive search for type name (#663)

pull/664/head
Next Turn 2020-08-25 20:37:22 +08:00 committed by GitHub
parent 9c513e8584
commit 43690d3e6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");