語言

Label 結構

定義

表示指令數據流中的標籤。 Label 會與 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
繼承
屬性
實作

備註

Label 類別是該類別所使用的 ILGenerator 標籤的不透明表示。 該標記用於標示 IL 串流中標籤的位置。 標籤由使用 DefineLabel(),其位置則由 設定 MarkLabel(Label)。

屬性

名稱 Description
Id

會獲得 ILGenerator 指派的標籤唯一 ID。

方法

名稱 Description
Equals(Label)

表示目前實例是否等於指定的 Label。

Equals(Object)

檢查給定物件是否為 的 Label 實例,且是否等於該實例。

GetHashCode()

為此實例產生雜湊碼。

運算子

名稱 Description
Equality(Label, Label)

表示兩個 Label 結構是否相等。

Inequality(Label, Label)

表示兩個 Label 結構是否不相等。

適用於