TokenType enum
The type of object represented by a given token.
Values
- Module → const TokenType
-
A compilation unit, an executable, or some other development unit, deployment unit, or run-time unit.
It is possible (though not required) to declare attributes on the module as a whole, including a name, a GUID, custom attributes, and so forth.
- TypeRef → const TokenType
-
Reference to either a runtime reference type or a value type.
In a sense, the collection of type references in a module is the collection of compile-time import dependencies.
- TypeDef → const TokenType
-
Declaration of either a runtime reference type (class or interface) or a value type.
- FieldDef → const TokenType
-
Declaration of a variable as a data member of a class or interface, or declaration of a global, module-level variable.
- MethodDef → const TokenType
-
Definition of a method as a member of a class or interface, or as a global module-level method.
- ParamDef → const TokenType
-
Definition of an optional data structure that stores additional metadata for the parameter.
It is not necessary to emit a data structure for each parameter in a method. However, when there is additional metadata to persist for the parameter, such as marshaling or type-mapping information, an optional parameter data structure can be created.
- InterfaceImpl → const TokenType
-
A specific class’s implementation of a specific interface.
This metadata abstraction enables the storing of information that is the intersection of that which is specific to neither the class nor the interface.
- MemberRef → const TokenType
-
Reference to a method or field.
A member reference is generated in metadata for every method invocation or field access that is made by any implementation in the current module, and a token is persisted in the Microsoft intermediate language (MSIL) stream. There is no runtime support for property or event references.
- CustomAttribute → const TokenType
-
An arbitrary data structure associated with any metadata object that can be referenced with an mdToken.
An exception is that custom attributes themselves cannot have custom attributes.
- Permission → const TokenType
-
A declarative security permission set associated with mdTypeDef, mdMethodDef, and mdAssembly.
- Signature → const TokenType
-
A local variable signature in the portable executable (PE) file or a method signature that is passed to an MSIL instruction.
- Event → const TokenType
-
Declaration of a named event as a member of a class or interface.
- Property → const TokenType
-
Declaration of a property as a member of a class or interface.
- ModuleRef → const TokenType
-
A compile-time reference to a module, which records the source for type and member imports.
- TypeSpec → const TokenType
-
A type, such as a boxed value type, that can be used as input to any MSIL instruction that takes a type.
- Assembly → const TokenType
-
An assembly.
- AssemblyRef → const TokenType
-
A reference to an assembly.
- File → const TokenType
-
A file.
- ExportedType → const TokenType
- ManifestResource → const TokenType
- GenericParam → const TokenType
- MethodSpec → const TokenType
- GenericParamConstraint → const TokenType
- String → const TokenType
-
A string that is passed to an MSIL instruction.
- Name → const TokenType
- BaseType → const TokenType
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited