where is forT : IRealmObjectpublic IQueryable<T> Select<T>()
{
if (!typeof(T).IsSubclassOf(typeof(IRealmObject)))
throw new TypeAccessException($"{typeof(T).Name} is not a subclass of {typeof(IRealmObject).Name}");
return realm?.All<IRealmObject>().OfType<T>();
}