Skip to content

Commit 4e58592

Browse files
committed
Merge branch 'main' into feature/net481_and_net8
2 parents 8b57921 + e626f4f commit 4e58592

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Serialize.Linq/Internals/KnownTypes.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ internal static class KnownTypes
1818
typeof(DateTime), typeof(DateTimeOffset),
1919
typeof(TimeSpan), typeof(Guid),
2020
typeof(DayOfWeek), typeof(DateTimeKind),
21-
typeof(Enum)
21+
typeof(Enum),
22+
#if NET6_0_OR_GREATER
23+
typeof(DateOnly), typeof(TimeOnly),
24+
#endif
2225
};
2326

2427
private static readonly HashSet<Type> _allExploded = new HashSet<Type>(Explode(All, true, true));

0 commit comments

Comments
 (0)