Leggere in inglese

Condividi tramite


Label Struct

Definizione

Rappresenta un'etichetta nel flusso di istruzioni. Label viene usato insieme alla classe ILGenerator.

C#
public readonly struct Label : IEquatable<System.Reflection.Emit.Label>
C#
public struct Label
C#
[System.Serializable]
public struct Label
C#
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Label
C#
public readonly struct Label
Ereditarietà
Attributi
Implementazioni

Commenti

La classe Label è una rappresentazione opaca di un'etichetta usata dalla classe ILGenerator. Il token viene usato per contrassegnare la posizione in cui si verificano le etichette nel flusso IL. Le etichette vengono create usando DefineLabel()e la relativa posizione viene impostata usando MarkLabel(Label).

Proprietà

Id

Ottiene l'ID univoco dell'etichetta assegnato da ILGenerator.

Metodi

Equals(Label)

Indica se l'istanza corrente è uguale alla Labelspecificata.

Equals(Object)

Controlla se l'oggetto specificato è un'istanza di Label ed è uguale a questa istanza.

GetHashCode()

Genera un codice hash per questa istanza.

Operatori

Equality(Label, Label)

Indica se due strutture Label sono uguali.

Inequality(Label, Label)

Indica se due strutture Label non sono uguali.

Si applica a

Prodotto Versioni
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided), 2.1