Ejemplo n.º 1
0
 public static ConventionBase <IType, List <IMethod> > Build(this ConventionBuilder <IType, List <IMethod> > source,
                                                             Func <MethodBuilder, IEnumerable <IMethod> > builder
                                                             ) => source.By(t => builder(BuildRoutine.Method(t)).ToList());
Ejemplo n.º 2
0
 public static ConventionBase <IType, List <IMethod> > Build(this ConventionBuilder <IType, List <IMethod> > source,
                                                             Func <MethodBuilder, IMethod> builder
                                                             ) => source.By(t => new List <IMethod> {
     builder(BuildRoutine.Method(t))
 });
Ejemplo n.º 3
0
 public static TConfiguration Add <TConfiguration>(this ListConfiguration <TConfiguration, IMethod> source,
                                                   Func <MethodBuilder, IMethod> builder
                                                   ) where TConfiguration : IType =>
 source.Add(t => builder(BuildRoutine.Method(t)));