Windows apps
Collapse the table of content
Expand the table of content
Information
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.

FieldInfo::GetOptionalCustomModifiers Method ()

 

Gets an array of types that identify the optional custom modifiers of the field.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual array<Type^>^ GetOptionalCustomModifiers()

Return Value

Type: array<System::Type^>^

An array of Type objects that identify the optional custom modifiers of the current field, such as System.Runtime.CompilerServices::IsConst.

The GetOptionalCustomModifiers and GetRequiredCustomModifiers methods are provided for designers of managed compilers. For more information on custom modifiers, see 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 ECMA C# and Common Language Infrastructure Standards on MSDN and Standard ECMA-335 - Common Language Infrastructure (CLI) on the Ecma International Web site.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft