System.Reflection.ParameterInfo.GetRequiredCustomModifiers Method

Gets the required custom modifiers of the parameter.

Syntax

public virtual Type[] GetRequiredCustomModifiers ()

Returns

An array of Type objects that identify the required custom modifiers of the current parameter, such as System.Runtime.CompilerServices.IsConst or System.Runtime.CompilerServices.IsImplicitlyDereferenced.

Remarks

The ParameterInfo.GetOptionalCustomModifiers and ParameterInfo.GetRequiredCustomModifiers methods are provided for designers of managed compilers. For more information on custom modifiers, see System.Runtime.CompilerServices.IsBoxed and related classes in the System.Runtime.CompilerServices namespace, and the metadata specification in the ECMA Partition II documentation. The documentation is available online; see tp://go.microsoft.com/fwlink/?LinkID=99212 on MSDN and tp://go.microsoft.com/fwlink/?LinkID=65552 on the Ecma International Web site.

Requirements

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0