Skip to content
Concord

Struct LocalRef

Namespace
Concord
Assembly
Concord.Emit.dll

An opaque local-variable handle inside a transpiled method body. Declare new locals via the transpiler context.

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

Properties

Type

The declared type of the local.

public Type Type { get; }

Property Value

Type

Methods

Equals(LocalRef)

Compares two local references for equality.

public bool Equals(LocalRef other)

Parameters

other LocalRef

The local reference to compare against.

Returns

bool

true when both refer to the same local slot.

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 ==(LocalRef, LocalRef)

Compares two local references for equality.

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

Parameters

left LocalRef

The first local reference.

right LocalRef

The second local reference.

Returns

bool

true when both refer to the same local slot.

operator !=(LocalRef, LocalRef)

Compares two local references for inequality.

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

Parameters

left LocalRef

The first local reference.

right LocalRef

The second local reference.

Returns

bool

true when they refer to different local slots.