Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 82c58d8

Browse files
committed
Add DateTimeOffset in RegisterForAot
1 parent 2f5e4ec commit 82c58d8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ServiceStack.Text/PclExport.Net40.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,9 +800,12 @@ public override void RegisterForAot()
800800
RegisterTypeForAot<Guid>();
801801
RegisterTypeForAot<TimeSpan>();
802802
RegisterTypeForAot<DateTime>();
803-
RegisterTypeForAot<DateTime?>();
804-
RegisterTypeForAot<TimeSpan?>();
803+
RegisterTypeForAot<DateTimeOffset>();
804+
805805
RegisterTypeForAot<Guid?>();
806+
RegisterTypeForAot<TimeSpan?>();
807+
RegisterTypeForAot<DateTime?>();
808+
RegisterTypeForAot<DateTimeOffset?>();
806809
}
807810

808811
[Preserve]

0 commit comments

Comments
 (0)