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
Methods
Equals(LocalRef)
Compares two local references for equality.
public bool Equals(LocalRef other)
Parameters
otherLocalRefThe local reference to compare against.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand 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
Returns
operator !=(LocalRef, LocalRef)
Compares two local references for inequality.
public static bool operator !=(LocalRef left, LocalRef right)