Skip to content
Concord

Struct Label

Namespace
Concord
Assembly
Concord.Emit.dll

An opaque branch-target handle inside a transpiled method body. Mint new labels via the transpiler context.

public readonly struct Label : IEquatable<Label>
Implements
Inherited Members

Methods

Equals(Label)

Compares two labels for equality.

public bool Equals(Label other)

Parameters

other Label

The label to compare against.

Returns

bool

true when both labels refer to the same target.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(Label, Label)

Compares two labels for equality.

public static bool operator ==(Label left, Label right)

Parameters

left Label

The first label.

right Label

The second label.

Returns

bool

true when both labels refer to the same target.

operator !=(Label, Label)

Compares two labels for inequality.

public static bool operator !=(Label left, Label right)

Parameters

left Label

The first label.

right Label

The second label.

Returns

bool

true when the labels refer to different targets.