How to check for null on Nullable types using Linq expression in Realm?
问题 I want to get all elements where the Modified property isn't set but can't seem to get it to work with Realm. Sample Code: public class FooModel : RealmObject { public DateTimeOffset? Modified { get; set; } } ... public List<FooModel> GetAllUnmodified() { var realm = Realm.GetInstance(); //doesn't work var result1 = realm.All<FooModel>().Where(model => model.Modified == null).ToList(); //doesn't work var result2 = realm.All<FooModel>().Where(model => !model.Modified.HasValue).ToList(); /