The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
This topic has not yet been rated - Rate this topic

Defining a Parameter with Reflection Emit 

Parameter names and parameter attributes are optional. Optional information for a method parameter, such as name and attributes (specified using the ParameterAttributes enumeration) can be defined using the MethodBuilder.DefineParameter method, which returns a ParameterBuilder. Optional information for a constructor parameter can be defined using the ConstructorBuilder.DefineParameter method, which returns a ParameterBuilder.

ParameterBuilder.SetMarshal specifies how the parameter is marshaled. ParameterBuilder.SetConstant specifies the default value for a parameter.

See Also

Other Resources

Using Reflection Emit

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.