Label 結構

定義

表示指令資料流中的標記 (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) 來設定。

屬性

Id

表示指令資料流中的標記 (Label)。 Label 會與 ILGenerator 類別結合使用。

方法

Equals(Label)

指出目前的執行個體和指定的 Label 是否相等。

Equals(Object)

檢查指定物件是否為 Label 的執行個體,並且與這個執行個體相等。

GetHashCode()

產生這個執行個體的雜湊碼。

運算子

Equality(Label, Label)

指出兩個 Label 結構是否相等。

Inequality(Label, Label)

指出兩個 Label 結構是否不相等。

適用於