Label Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a label in the instruction stream. Label is used in conjunction with the ILGenerator class.
public value class Label
public value class Label : IEquatable<System::Reflection::Emit::Label>
[System.Serializable]
public struct Label
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public struct Label
public readonly struct Label : IEquatable<System.Reflection.Emit.Label>
[<System.Serializable>]
type Label = struct
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type Label = struct
type Label = struct
Public Structure Label
Public Structure Label
Implements IEquatable(Of Label)
- Inheritance
- Attributes
- Implements
Remarks
The Label class is an opaque representation of a label used by the ILGenerator class. The token is used to mark where labels occur in the IL stream. Labels are created by using DefineLabel(), and their position is set by using MarkLabel(Label).
Methods
| Name | Description |
|---|---|
| Equals(Label) |
Indicates whether the current instance is equal to the specified Label. |
| Equals(Object) |
Checks if the given object is an instance of |
| GetHashCode() |
Generates a hash code for this instance. |
Operators
| Name | Description |
|---|---|
| Equality(Label, Label) |
Indicates whether two Label structures are equal. |
| Inequality(Label, Label) |
Indicates whether two Label structures are not equal. |