typeflags
Typeflags refer to a compact set of bitwise flags attached to a type in a programming language's metadata or runtime. They encode core characteristics of the type so software components can make fast decisions about how to use it without parsing the full type definition. In practice, a typeflag is a bitfield; each bit represents a property such as whether the type is abstract, sealed, an interface, a class, an enum, or a value type (as opposed to a reference type). Other common flags indicate generics, serializability, visibility (public vs non-public), whether the type has a finalizer, and whether it is nested inside another type. Some environments also flag the presence of a default constructor or whether the type is primitive.
Typeflags are typically stored in the type's metadata description, sometimes as part of a type descriptor or
Examples and naming vary by ecosystem: in .NET, type metadata uses TypeAttributes (a metadata flag set). In