Label Struktura

Definicja

Reprezentuje etykietę w strumieniu instrukcji. Label jest używana 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
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
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 DefineLabel(), a ich pozycja jest ustawiana przy użyciu MarkLabel(Label).

Właściwości

Id

Pobiera unikatowy identyfikator etykiety przypisany przez ILGenerator.

Metody

Equals(Label)

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

Equals(Object)

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

GetHashCode()

Generuje kod skrótu dla tego wystąpienia.

Operatory

Equality(Label, Label)

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

Inequality(Label, Label)

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

Dotyczy