Ejemplo n.º 1
0
 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>());
 }
Ejemplo n.º 2
0
 internal static IEnumerable <object> FetchAllDirect(this ITargetContainer targets, Type objectType)
 {
     return(targets.FetchAll(objectType)
            .Select(t => FetchDirect(t, targets, objectType))
            .Where(r => r != null));
 }