Returns a type token. Tokens are used in IL instructions to identify objects. Tokens are relative to the module in which they are contained. For example, the token value for a String is likely to be different in different modules. When GetTypeToken is called, a reference is added to the module. The reference becomes a permanent part of the module. Multiple calls to GetTypeToken with the same argument have no additional effect.
Returns the token used to identify the specified type within this module.
[Visual Basic] Overloads Public Function GetTypeToken(Type) As TypeToken
[C#] public TypeToken GetTypeToken(Type);
[C++] public: TypeToken GetTypeToken(Type*);
[JScript] public function GetTypeToken(Type) : TypeToken;
Returns the token used to identify the type given its name.
[Visual Basic] Overloads Public Function GetTypeToken(String) As TypeToken
[C#] public TypeToken GetTypeToken(String);
[C++] public: TypeToken GetTypeToken(String*);
[JScript] public function GetTypeToken(String) : TypeToken;
ModuleBuilder Class | ModuleBuilder Members | System.Reflection.Emit Namespace