Upraviť

Zdieľať cez


Label Struct

Definition

Represents a label in the instruction stream. Label is used in conjunction with the ILGenerator class.

public value class Label : IEquatable<System::Reflection::Emit::Label>
public value class Label
public readonly struct Label : IEquatable<System.Reflection.Emit.Label>
public struct Label
[System.Serializable]
public struct Label
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Label
public readonly struct Label
type Label = struct
[<System.Serializable>]
type Label = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Label = struct
Public Structure Label
Implements IEquatable(Of Label)
Public Structure Label
Inheritance
Attributes
Implements

Remarks

The Label class is an opaque representation of a label used by the ILGenerator class. The token is used to mark where labels occur in the IL stream. Labels are created by using DefineLabel(), and their position is set by using MarkLabel(Label).

Properties

Id

Gets the label unique id assigned by the ILGenerator.

Methods

Equals(Label)

Indicates whether the current instance is equal to the specified Label.

Equals(Object)

Checks if the given object is an instance of Label and is equal to this instance.

GetHashCode()

Generates a hash code for this instance.

Operators

Equality(Label, Label)

Indicates whether two Label structures are equal.

Inequality(Label, Label)

Indicates whether two Label structures are not equal.

Applies to