System.Reflection.Emit.TypeToken Structure

Assembly: Mscorlib.dll
Namespace: System.Reflection.Emit
Summary
Represents the Token returned by the metadata to represent a type.
C# Syntax:
[Serializable]
public struct TypeToken
Thread Safety
Reflection Emit is thread-safe when using assemblies that were created with the AppDomain.DefineDynamicAssembly method with the Boolean parameter isSynchronized set to true.
Remarks
The type of an object is also known as the class of an object.
See also:
System.Reflection.Emit Namespace

System.Reflection.Emit.TypeToken Member List:

Public Fields
Empty The default TypeToken with TypeToken.Token value 0.
Public Properties
Token Read-only

Retrieves the metadata token for this class.
Public Methods
Equals Overridden:
Checks if the given object is an instance of TypeToken and is equal to this instance.
GetHashCode Overridden:
Generates the hash code for this type.
GetType
(inherited from System.Object)
See base class member description: System.Object.GetType

Derived from System.Object, the primary base class for all objects.
ToString
(inherited from System.ValueType)
See base class member description: System.ValueType.ToString


Returns the fully qualified type name of this instance.
Protected Methods
Finalize
(inherited from System.Object)
See base class member description: System.Object.Finalize

Derived from System.Object, the primary base class for all objects.
MemberwiseClone
(inherited from System.Object)
See base class member description: System.Object.MemberwiseClone

Derived from System.Object, the primary base class for all objects.

Hierarchy:


System.Reflection.Emit.TypeToken Member Details

Field: Empty
Summary
The default TypeToken with TypeToken.Token value 0.
C# Syntax:
public static readonly TypeToken Empty;

Return to top


Property: Token (read-only)
Summary
Retrieves the metadata token for this class.
C# Syntax:
public int Token {get;}

Return to top


Overridden Method: Equals(
   object obj
)
Summary
Checks if the given object is an instance of TypeToken and is equal to this instance.
C# Syntax:
public override bool Equals(
   object obj
);
Parameters:

obj

The object to compare with this TypeToken.

Return Value:
true if obj is an instance of TypeToken and is equal to this object; otherwise, false.

Return to top


Method: Finalize()
Inherited
See base class member description: System.Object.Finalize
C# Syntax:
~TypeToken();

For more information on members inherited from System.Object click on the link above.

Return to top


Overridden Method: GetHashCode()
Summary
Generates the hash code for this type.
C# Syntax:
public override int GetHashCode();
Return Value:
Returns the hash code for this type.

Return to top


Method: GetType()
Inherited
See base class member description: System.Object.GetType
C# Syntax:
public Type GetType();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: MemberwiseClone()
Inherited
See base class member description: System.Object.MemberwiseClone
C# Syntax:
protected object MemberwiseClone();

For more information on members inherited from System.Object click on the link above.

Return to top


Method: ToString()
Inherited
See base class member description: System.ValueType.ToString

Summary
Returns the fully qualified type name of this instance.
C# Syntax:
public override string ToString();
Return Value:
A String containing a fully qualified type name.

Return to top


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.