TypeAttributes Enumeration

Specifies various properties that can apply to a given .NET type

Namespace: JustDecompile.API.Core
Assembly: JustDecompile.API (in JustDecompile.API.dll) Version: 1.0.0.3 (1.0.0.0)

Syntax

C#
[FlagsAttribute]
public enum TypeAttributes

Members

Member name Value Description
VisibilityMask 7 Specifies type visibility information.
NotPublic 0 Specifies that the class is not public.
Public 1 Specifies that the class is public.
NestedPublic 2 Specifies that the class is nested with public visibility.
NestedPrivate 3 Specifies that the class is nested with private visibility.
NestedFamily 4 Specifies that the class is nested with family visibility, and is thus accessible only by methods within its own type and any subtypes.
NestedAssembly 5 Specifies that the class is nested with assembly visibility, and is thus accessible only by methods within its assembly.
NestedFamANDAssem 6 Specifies that the class is nested with assembly and family visibility, and is thus accessible only by methods lying in the intersection of its family and assembly.
NestedFamORAssem 7 Specifies that the class is nested with family or assembly visibility, and is thus accessible only by methods lying in the union of its family and assembly.
LayoutMask 24 Specifies class layout information.
AutoLayout 0 Specifies that class fields are automatically laid out by the common language runtime.
SequentialLayout 8 Specifies that class fields are laid out sequentially, in the order that the fields were emitted to the metadata.
ExplicitLayout 16 Specifies that class fields are laid out at the specified offsets.
ClassSemanticMask 32 Specifies class semantics information; the current class is contextful (else agile).
Class 0 Specifies that the type is a class.
Interface 32 Specifies that the type is an interface.
Abstract 128 Specifies that the type is abstract.
Sealed 256 Specifies that the class is concrete and cannot be extended.
SpecialName 1024 Specifies that the class is special in a way denoted by the name.
Import 4096 Specifies that the class or interface is imported from another module.
Serializable 8192 Specifies that the class can be serialized.
StringFormatMask 196608 Used to retrieve string information for native interoperability.
AnsiClass 0 LPTSTR is interpreted as ANSI.
UnicodeClass 65536 LPTSTR is interpreted as UNICODE.
AutoClass 131072 LPTSTR is interpreted automatically.
BeforeFieldInit 1048576 Specifies that calling static methods of the type does not force the system to initialize the type.
RTSpecialName 2048 Runtime should check name encoding.
HasSecurity 262144 Type has security associate with it.
Forwarder 2097152 Exported type is a type forwarder.

See Also

JustDecompile.API.Core Namespace

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy