diff --git a/src/ConfigurationProcessor.Core/Implementation/ObjectArgumentValue.cs b/src/ConfigurationProcessor.Core/Implementation/ObjectArgumentValue.cs index 22765ba..7dbc3f6 100644 --- a/src/ConfigurationProcessor.Core/Implementation/ObjectArgumentValue.cs +++ b/src/ConfigurationProcessor.Core/Implementation/ObjectArgumentValue.cs @@ -28,6 +28,12 @@ public object ConvertTo(MethodInfo configurationMethod, Type toType, ResolutionC return section; } + // this can enter here when string is null + if (toType == typeof(string)) + { + return section.Value; + } + if (toType.IsArray) { return CreateArray();