See Also: ParameterBuilder Members
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").