예제 #1
0
 /// <summary>
 /// Emits the definition parameters.
 /// </summary>
 /// <param name="invokable">
 /// The method that the parameter list is defined.
 /// </param>
 internal void Emit(Invokable invokable)
 {
     for (int i = 0; i < _parameters.Count; i++)
     {
         var parameter = (Parameter)_parameters[i];
         parameter.Emit(i + 1, invokable);
     }
 }
예제 #2
0
        /// <summary>
        /// Defines the parameter.
        /// </summary>
        /// <param name="i">
        /// Position of parameter.
        /// </param>
        /// <param name="invokable">
        /// The method that this parameter is defined.
        /// </param>
        internal void Emit(int i, Invokable invokable)
        {
            ParameterAttributes attributes = _direction == ParameterDirection.Out ? ParameterAttributes.Out : 0;

            _parameterBuilder = invokable.DefineParameter(i, attributes, _name);
        }