We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4837da9 + b685001 commit 7550063Copy full SHA for 7550063
FileContextCore/Serializer/SerializerHelper.cs
@@ -13,13 +13,13 @@ static class SerializerHelper
13
{
14
public static object Deserialize(this string input, Type type)
15
16
- type = Nullable.GetUnderlyingType(type) ?? type;
17
-
18
if (string.IsNullOrEmpty(input))
19
20
return type.GetDefaultValue();
21
}
22
+ type = Nullable.GetUnderlyingType(type) ?? type;
+
23
if (type == typeof(DateTimeOffset))
24
25
return DateTimeOffset.Parse(input, CultureInfo.InvariantCulture);
0 commit comments