5 Replies
Note: I cannot just write where
T : IRealmObject
, because it will broke interface implementationThat's all you can do
can't I show that T is acceptable Type somehow else?
like cast it
That's what
where
is for
Where is compile time. You're trying to fix a compile problem with a run time check. No bueno
You can change All<T> to All<IRealm...> Then also use OfType I guess
That would not be efficient, I'm presuming
At least it works this way