Skip to content

Commit f9ed0b9

Browse files
Fix last minute changes
1 parent 764b92b commit f9ed0b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serilog.Settings.Configuration/Settings/Configuration/ObjectArgumentValue.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ static bool TryBindToCtorArgument(object value, Type type, ResolutionContext res
256256
argumentExpression = Expression.NewArrayInit(elementType, elements);
257257
return true;
258258
}
259-
if (TryBuildCtorExpression(s, type, resolutionContext, out var ctorExpression))
259+
if (TryBuildCtorExpression(s, resolutionContext, out var ctorExpression) || TryBuildCtorExpression(s, type, resolutionContext, out ctorExpression))
260260
{
261261
if (ctorExpression.Type.IsValueType && !type.IsValueType)
262262
{

0 commit comments

Comments
 (0)