System.Reflection.Emit.SignatureHelper.GetPropertySigHelper Method

Returns a signature helper for a property, given the dynamic module that contains the property, the property type, the property arguments, and custom modifiers for the return type and arguments.

Syntax

public static SignatureHelper GetPropertySigHelper (System.Reflection.Module mod, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers)

Parameters

mod
The System.Reflection.Emit.ModuleBuilder that contains the property for which the System.Reflection.Emit.SignatureHelper is requested.
returnType
The property type.
requiredReturnTypeCustomModifiers
An array of types representing the required custom modifiers for the return type, such as System.Runtime.CompilerServices.IsConst or System.Runtime.CompilerServices.IsBoxed. If the return type has no required custom modifiers, specify null.
optionalReturnTypeCustomModifiers
An array of types representing the optional custom modifiers for the return type, such as System.Runtime.CompilerServices.IsConst or System.Runtime.CompilerServices.IsBoxed. If the return type has no optional custom modifiers, specify null.
parameterTypes
The types of the property's arguments, or null if the property has no arguments.
requiredParameterTypeCustomModifiers
An array of arrays of types. Each array of types represents the required custom modifiers for the corresponding argument of the property. If a particular argument has no required custom modifiers, specify null instead of an array of types. If the property has no arguments, or if none of the arguments have required custom modifiers, specify null instead of an array of arrays.
optionalParameterTypeCustomModifiers
An array of arrays of types. Each array of types represents the optional custom modifiers for the corresponding argument of the property. If a particular argument has no optional custom modifiers, specify null instead of an array of types. If the property has no arguments, or if none of the arguments have optional custom modifiers, specify null instead of an array of arrays.

Returns

A System.Reflection.Emit.SignatureHelper object for a property.

Remarks

See the System.Runtime.CompilerServices namespace for classes that represent custom modifiers.

If a property has no custom modifiers, use the SignatureHelper.GetPropertySigHelper(System.Reflection.Module, Type, Type[]) method overload.

Requirements

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