Skip to content

Commit 1c07cd3

Browse files
committed
2 parents 8a338cf + 7550063 commit 1c07cd3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

FileContextCore/Serializer/SerializerHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ static class SerializerHelper
1313
{
1414
public static object Deserialize(this string input, Type type)
1515
{
16-
type = Nullable.GetUnderlyingType(type) ?? type;
17-
1816
if (string.IsNullOrEmpty(input))
1917
{
2018
return type.GetDefaultValue();
2119
}
2220

21+
type = Nullable.GetUnderlyingType(type) ?? type;
22+
2323
if (type == typeof(DateTimeOffset))
2424
{
2525
return DateTimeOffset.Parse(input, CultureInfo.InvariantCulture);

0 commit comments

Comments
 (0)