Ejemplo n.º 1
0
        public Func <string[], Table[], CultureInfo, T> GetFunc <T>()
        {
            var func = this.constructorFunc;

            if (!(func is null))
            {
                return((Func <string[], Table[], CultureInfo, T>)func);
            }

            this.constructorFunc = func = this.IsDefaultConstructor ?
                                          CreatorCompiler.CompilePropertyInjection <T>(this.Constructor, this.Properties) :
                                          CreatorCompiler.CompileConstructorInjection <T>(this.Constructor, this.Parameters);

            return((Func <string[], Table[], CultureInfo, T>)func);
        }
Ejemplo n.º 2
0
 public void Prop_Class()
 {
     CreatorCompiler.CompilePropertyInjection <ClassWithTwoProperties>(this.PropClassConstructorInfo, this.PropClassProperties);
 }
Ejemplo n.º 3
0
 public void Prop_Struct()
 {
     CreatorCompiler.CompilePropertyInjection <StructWithTwoProperties>(this.PropStructConstructorInfo, this.PropStructProperties);
 }