Table of Contents

Struct Variable<T>

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

Type Parameters

T
Expand Details ...
Implements

Constructors

Variable(T)

public Variable(T value)

Parameters

Type Name Description
T
value

Properties

Type

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

Property Value

Variable<T>.ValueType

Value

public T Value { get; }

Property Value

T

Methods

AsBoolean()

public Boolean AsBoolean()

Returns

Boolean

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 Boolean Equals(Variable<T> other)

Parameters

Type Name Description
Variable<T>
other

Returns

Boolean

Equals(Object)

public override Boolean Equals(Object obj)

Parameters

Type Name Description
Object
obj

Returns

Boolean

GetHashCode()

public override Int32 GetHashCode()

Returns

Int32

ToString()

public override String ToString()

Returns

String

Operators

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

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

Parameters

Type Name Description
Variable<T>
left
Variable<T>
right

Returns

Boolean

implicit operator T(Variable<T>)

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

Parameters

Type Name Description
Variable<T>
v

Returns

T

implicit operator Variable<T>(T)

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

Parameters

Type Name Description
T
value

Returns

Variable<T>

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

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

Parameters

Type Name Description
Variable<T>
left
Variable<T>
right

Returns

Boolean