예제 #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);
        }
예제 #2
0
 public void Prop_Class()
 {
     CreatorCompiler.CompilePropertyInjection <ClassWithTwoProperties>(this.PropClassConstructorInfo, this.PropClassProperties);
 }
예제 #3
0
 public void Prop_Struct()
 {
     CreatorCompiler.CompilePropertyInjection <StructWithTwoProperties>(this.PropStructConstructorInfo, this.PropStructProperties);
 }