Exemple #1
0
 public static List <TComponent> BuildComponentList <TArgument, TComponent>(this LazyComponentRegistrationList <TArgument, TComponent> registrations, TArgument argument)
 {
     return(registrations
            .Select(factory => factory(argument))
            .ToList());
 }
Exemple #2
0
 public static List <TComponent> BuildComponentList <TComponent>(this LazyComponentRegistrationList <Nothing, TComponent> registrations)
 {
     return(registrations
            .Select(factory => factory(null))
            .ToList());
 }