internal static IEnumerable <TObj> FetchAllDirect <TObj>(this ITargetContainer targets) { return(targets.FetchAll(typeof(TObj)) .Select(t => FetchDirect(t, targets, typeof(TObj))) .Where(r => r != null) .OfType <TObj>()); }
internal static IEnumerable <object> FetchAllDirect(this ITargetContainer targets, Type objectType) { return(targets.FetchAll(objectType) .Select(t => FetchDirect(t, targets, objectType)) .Where(r => r != null)); }