Label Struktura

Definicja

Reprezentuje etykietę w strumieniu instrukcji. Label jest używany w połączeniu z klasą ILGenerator .

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
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
Dziedziczenie
Atrybuty
Implementuje

Uwagi

Klasa Label jest nieprzezroczystą reprezentacją etykiety używanej przez klasę ILGenerator . Token służy do oznaczania miejsca występowania etykiet w strumieniu IL. Etykiety są tworzone przy użyciu elementu DefineLabel(), a ich pozycja jest ustawiana przy użyciu polecenia MarkLabel(Label).

Właściwości

Id

Reprezentuje etykietę w strumieniu instrukcji. Label jest używany w połączeniu z klasą ILGenerator .

Metody

Equals(Label)

Wskazuje, czy bieżące wystąpienie jest równe określonej Labelwartości .

Equals(Object)

Sprawdza, czy dany obiekt jest wystąpieniem Label i jest równy temu wystąpieniu.

GetHashCode()

Generuje kod skrótu dla tego wystąpienia.

Operatory

Equality(Label, Label)

Wskazuje, czy dwie Label struktury są równe.

Inequality(Label, Label)

Wskazuje, czy dwie Label struktury nie są równe.

Dotyczy