March 2002
Intermediate to advanced
864 pages
31h 8m
English
EventToken
This class represents the token for an event. A token is a 4-byte
number that points to the metadata description of a program element in MSIL. The
first byte in the token identifies the metadata table, which depends on the type
of program element. The remaining 3 bytes specify the row in the metadata
table. For example, the token 0x06000004 specifies that the corresponding
metadata is stored in the fourth row of table 0x06
(the MethodDef table).
public struct EventToken { // Public Static Fields public static readonly field EventToken Empty; // =System.Reflection.Emit.EventToken // Public Instance Properties public field int Token{get; } // Public Instance Methods public override method bool Equals(object obj); // overrides ValueType public override method int GetHashCode(); // overrides ValueType }
System.Object→System.ValueType→EventToken
EventBuilder.GetEventToken()