Table of Contents

Struct Variable<T>

Namespace
Luny
Assembly
Luny.dll
public readonly struct Variable<T>

Type Parameters

T

Constructors

Variable(T)

public Variable(T value)

Parameters

value T

Properties

Type

public Variable<T>.ValueType Type { get; }

Property Value

Variable<T>.ValueType

Value

public T Value { get; }

Property Value

T

Methods

AsBoolean()

public bool AsBoolean()

Returns

bool

AsDouble()

public double AsDouble()

Returns

double

AsString()

public string AsString()

Returns

string

AsVector2()

public LunyVector2 AsVector2()

Returns

LunyVector2

AsVector3()

public LunyVector3 AsVector3()

Returns

LunyVector3

Equals(Variable<T>)

public bool Equals(Variable<T> other)

Parameters

other Variable<T>

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(Variable<T>, Variable<T>)

public static bool operator ==(Variable<T> left, Variable<T> right)

Parameters

left Variable<T>
right Variable<T>

Returns

bool

implicit operator T(Variable<T>)

public static implicit operator T(Variable<T> v)

Parameters

v Variable<T>

Returns

T

implicit operator Variable<T>(T)

public static implicit operator Variable<T>(T value)

Parameters

value T

Returns

Variable<T>

operator !=(Variable<T>, Variable<T>)

public static bool operator !=(Variable<T> left, Variable<T> right)

Parameters

left Variable<T>
right Variable<T>

Returns

bool