Seeing as C# can\'t switch on a Type (which I gather wasn\'t added as a special case because is relationships mean that more than one distinct
switch
is
I use
public T Store() { Type t = typeof(T); if (t == typeof(CategoryDataStore)) return (T)DependencyService.Get>(); else return default(T); }