O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

EventToken

Synopsis

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
}

Hierarchy

System.ObjectSystem.ValueTypeEventToken

Returned By

EventBuilder.GetEventToken()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required