Beispiel #1
0
        public ForLoopILCode(ILCodeParameter initialValue, ILGenerationHandler<ILCodeParameter> conditionHandler,
            ILGenerationHandler<ILCodeParameter> bodyHandler, ILCodeParameter increment)
        {
            if (initialValue.ParameterType != increment.ParameterType)
                throw new ArgumentException("The type of the initial value and the increment value must match");

            _initialValue = initialValue;
            _increment = increment;
            _conditionHandler = new DelegatedILHandler<ILCodeParameter>(conditionHandler);
            _bodyHandler = new DelegatedILHandler<ILCodeParameter>(bodyHandler);
        }
Beispiel #2
0
 public WhileLoopILCode(ILGenerationHandler conditionHandler, ILGenerationHandler bodyHandler)
 {
     _conditionHandler = new DelegatedILHandler(conditionHandler);
     _bodyHandler = new DelegatedILHandler(bodyHandler);
 }