Język

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, gdzie etykiety występują 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

Nazwa Opis
Id

Pobiera unikatowy identyfikator etykiety przypisany przez ILGenerator.

Metody

Nazwa Opis
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 obiektu i jest równy temu wystąpieniu.

GetHashCode()

Generuje kod skrótu dla tego wystąpienia.

Operatory

Nazwa Opis
Equality(Label, Label)

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

Inequality(Label, Label)

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

Dotyczy