Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }