Skip to content

Commit

Permalink
Fixed ObjectArgumentValue when value is string
Browse files Browse the repository at this point in the history
  • Loading branch information
Donn Relacion committed Jul 5, 2022
1 parent dab1418 commit c802987
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit c802987

Please sign in to comment.