public IParameterBuilder DefineParameter(int iSequence, ParameterAttributes attributes, string strParamName) { // Parameter name may be null. var parameterBuilder = _methodBaseBuilder.DefineParameter(iSequence, attributes, strParamName); return(new ParameterBuilderDecorator(parameterBuilder, EmittableOperandProvider)); }
private void DefineParameter(IMethodBaseBuilder methodBaseBuilder, MutableParameterInfo parameter) { var parameterBuilder = methodBaseBuilder.DefineParameter(parameter.Position + 1, parameter.Attributes, parameter.Name); DefineCustomAttributes(parameterBuilder, parameter); }