Skip to content

Commit fae623c

Browse files
authored
Merge pull request #67 from formix/dev
Updated StringArgumentValue.ConvertTo to let the class not found exce…
2 parents 41e7349 + f89fa99 commit fae623c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Settings.Configuration/Settings/Configuration/StringArgumentValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public object ConvertTo(Type toType)
5656

5757
if (toTypeInfo.IsInterface && !string.IsNullOrWhiteSpace(argumentValue))
5858
{
59-
var type = Type.GetType(argumentValue.Trim(), throwOnError: false);
59+
var type = Type.GetType(argumentValue.Trim());
6060
if (type != null)
6161
{
6262
var ctor = type.GetTypeInfo().DeclaredConstructors.FirstOrDefault(ci =>

0 commit comments

Comments
 (0)