public Method(MethodInfo methodInfo) { //this.instanceType = null; this.parameterTypes = null; this.methodInfo = methodInfo; //this.isStatic = methodInfo.IsStatic; this.parameterInfos = methodInfo.GetParameters(); //this.returnType = methodInfo.ReturnType.Equals(typeof(void)) ? null : methodInfo.ReturnType; this.thisParameterGenerator = Method.GetThisParameterGenerator(methodInfo); this.inputParameterGenerators = Method.GetInputParameterGenerators(methodInfo); ; Type[] inputParameterTypes = ReflectionHelper.GetInputParameterTypes(methodInfo); this.parameterlessEnablingCondition = new EnablingCondition(true, inputParameterTypes, methodInfo); this.enablingCondition = new EnablingCondition(false, inputParameterTypes, methodInfo); }
public Method(MethodInfo methodInfo) { //this.instanceType = null; this.parameterTypes = null; this.methodInfo = methodInfo; //this.isStatic = methodInfo.IsStatic; this.parameterInfos = methodInfo.GetParameters(); //this.returnType = methodInfo.ReturnType.Equals(typeof(void)) ? null : methodInfo.ReturnType; this.thisParameterGenerator = Method.GetThisParameterGenerator(methodInfo); this.inputParameterGenerators = Method.GetInputParameterGenerators(methodInfo);; Type[] inputParameterTypes = ReflectionHelper.GetInputParameterTypes(methodInfo); this.parameterlessEnablingCondition = new EnablingCondition(true, inputParameterTypes, methodInfo); this.enablingCondition = new EnablingCondition(false, inputParameterTypes, methodInfo); }