FieldInfo.IsSpecialName Property

 

Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.

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

abstract IsSpecialName : bool with get
override IsSpecialName : bool with get

Property Value

Type: System.Boolean

true if the SpecialName attribute is set in FieldAttributes; otherwise, false.

Names that begin with or contain an underscore character (_), property accessors, and operator overloading methods are examples of names that might require special treatment by some compilers.

The following example returns a value indicating whether or not the fields in the class contain a SpecialName attribute.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: