artem
artem
CC#
Created by artem on 5/18/2023 in #help
❔ Any UI testing tool for MAUI?
Publishing is a pain as well... It's not complicated, just not done yet.
7 replies
CC#
Created by artem on 5/18/2023 in #help
❔ Any UI testing tool for MAUI?
Not that good. It's a bit buggy and hard to automate (at least with my nunit/nuke stack)
7 replies
CC#
Created by artem on 4/23/2023 in #help
Is it ok to leave `NotImplementedException` if method doesn't suppose to be used?
ok, thank you
3 replies
CC#
Created by artem on 3/8/2023 in #help
How can I work around this exception?
public 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>();
}
public 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>();
}
At least it works this way
10 replies
CC#
Created by artem on 3/8/2023 in #help
How can I work around this exception?
like cast it
10 replies
CC#
Created by artem on 3/8/2023 in #help
How can I work around this exception?
can't I show that T is acceptable Type somehow else?
10 replies
CC#
Created by artem on 3/8/2023 in #help
How can I work around this exception?
Note: I cannot just write where T : IRealmObject, because it will broke interface implementation
10 replies