Label 结构

定义

表示指令流中的标签。 LabelILGenerator 类一起使用。

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

表示指令流中的标签。 LabelILGenerator 类一起使用。

方法

Equals(Label)

指示当前实例是否等于指定的 Label

Equals(Object)

检查给定对象是否为 Label 的实例和是否等于此实例。

GetHashCode()

生成此实例的哈希代码。

运算符

Equality(Label, Label)

指示两个 Label 结构是否相等。

Inequality(Label, Label)

指示两个 Label 结构是否不相等。

适用于