How to implement Nullable properties in Realm objects (more precisely, DateTime)?

The question is very simple about how to work around this error:

Fody / RealmWeaver: Field “X” of class “Y” is 'System.Nullable`1', which is not yet supported.

This is a property DateTime?. Zero primitive types are indeed supported .

I know that the Java version supports values null. It's about Realm.NET. I was wondering if there is any other way besides old DateTime SomeNullablePropertyand bool HasSomeNullablePropertythings.

+4
source share
2 answers

, int? bool? .

, String, .

DateTimeOffset?.

. AccessTests.cs

+4

- nullability.

+2

All Articles