mirror of https://github.com/winsw/winsw
Case-insensitive search for type name (#663)
parent
9c513e8584
commit
43690d3e6a
|
@ -228,7 +228,7 @@ namespace WinSW.Extensions
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Type? t = Type.GetType(className);
|
Type? t = Type.GetType(className, throwOnError: false, ignoreCase: true);
|
||||||
if (t is null)
|
if (t is null)
|
||||||
{
|
{
|
||||||
throw new ExtensionException(id, "Class " + className + " does not exist");
|
throw new ExtensionException(id, "Class " + className + " does not exist");
|
||||||
|
|
Loading…
Reference in New Issue