System.Reflection.Emit.ParameterBuilder Class

Creates or associates parameter information.

See Also: ParameterBuilder Members

Syntax

[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.ComDefaultInterface(typeof(System.Runtime.InteropServices._ParameterBuilder))]
[System.Runtime.InteropServices.ComVisible(true)]
public class ParameterBuilder : System.Runtime.InteropServices._ParameterBuilder

Remarks

Parameter attributes need to consistent with the method signature. If you specify Out attributes for a parameter, you should ensure that the type of that method parameter is a ByRef type.

Some System.Reflection.Emit.ParameterBuilder attributes require that you call TypeBuilder.DefineMethod(string, System.Reflection.MethodAttributes, Type, Type[]) with viable parameters in order for the Microsoft intermediate language (MSIL) to work correctly at runtime. For example, if you define a System.Reflection.Emit.ParameterBuilder with ParameterAttributes.Out for parameter 1 of a MethodBuilder, then parameter 1 of System.Reflection.Emit.MethodBuilder must be a reference such as Type.GetType("System.String&"), rather than Type.GetType("System.String").

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0