Name

Label

Synopsis

This class represents a label in the MSIL instruction stream. You can create a label with ILGenerator.DefineLabel( ) and place it in the stream with ILGenerator.MarkLabel( ).

public struct Label {
// Public Instance Methods
   public override bool Equals(object obj);          
// overrides ValueType
   public override int GetHashCode( );    
// overrides ValueType
}

Hierarchy

System.Object System.ValueType Label

Returned By

ILGenerator.{BeginExceptionBlock( ), DefineLabel( )}

Passed To

ILGenerator.{Emit( ), MarkLabel( )}

Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.