Table of Contents

Struct Variable

Namespace
Luny
Assembly
Luny.dll
public readonly struct Variable

Properties

IsHigh

public bool IsHigh { get; }

Property Value

bool

IsNormalized

public bool IsNormalized { get; }

Property Value

bool

IsNull

public bool IsNull { get; }

Property Value

bool

IsNullOrEmpty

public bool IsNullOrEmpty { get; }

Property Value

bool

IsNullOrWhitespace

public bool IsNullOrWhitespace { get; }

Property Value

bool

IsTrue

public bool IsTrue { get; }

Property Value

bool

Name

public string Name { get; }

Property Value

string

Object

public object Object { get; }

Property Value

object

Type

public Variable.ValueType Type { get; }

Property Value

Variable.ValueType

Value

public double Value { get; }

Property Value

double

Methods

AsBoolean()

public bool AsBoolean()

Returns

bool

AsDouble()

public double AsDouble()

Returns

double

AsInt32()

public int AsInt32()

Returns

int

AsInt64()

public long AsInt64()

Returns

long

AsNumber()

public Number AsNumber()

Returns

Number

AsSingle()

public float AsSingle()

Returns

float

AsString()

public string AsString()

Returns

string

As<T>()

public T As<T>()

Returns

T

Type Parameters

T

Equals(Variable)

public bool Equals(Variable other)

Parameters

other Variable

Returns

bool

Equals(bool)

public bool Equals(bool b)

Parameters

b bool

Returns

bool

Equals(double)

public bool Equals(double d)

Parameters

d double

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(string)

public bool Equals(string s)

Parameters

s string

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Named(Number, string)

public static Variable Named(Number value, string name)

Parameters

value Number
name string

Returns

Variable

Named(bool, string)

public static Variable Named(bool value, string name)

Parameters

value bool
name string

Returns

Variable

Named(double, string)

public static Variable Named(double value, string name)

Parameters

value double
name string

Returns

Variable

Named(int, string)

public static Variable Named(int value, string name)

Parameters

value int
name string

Returns

Variable

Named(long, string)

public static Variable Named(long value, string name)

Parameters

value long
name string

Returns

Variable

Named(object, string)

public static Variable Named(object value, string name)

Parameters

value object
name string

Returns

Variable

Named(float, string)

public static Variable Named(float value, string name)

Parameters

value float
name string

Returns

Variable

Named(string, string)

public static Variable Named(string value, string name)

Parameters

value string
name string

Returns

Variable

ToString()

[ExcludeFromCodeCoverage]
public override string ToString()

Returns

string

Operators

operator ==(Variable, Variable)

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

Parameters

left Variable
right Variable

Returns

bool

implicit operator Variable(Number)

public static implicit operator Variable(Number v)

Parameters

v Number

Returns

Variable

implicit operator Number(Variable)

public static implicit operator Number(Variable v)

Parameters

v Variable

Returns

Number

implicit operator bool(Variable)

public static implicit operator bool(Variable v)

Parameters

v Variable

Returns

bool

implicit operator double(Variable)

public static implicit operator double(Variable v)

Parameters

v Variable

Returns

double

implicit operator int(Variable)

public static implicit operator int(Variable v)

Parameters

v Variable

Returns

int

implicit operator long(Variable)

public static implicit operator long(Variable v)

Parameters

v Variable

Returns

long

implicit operator float(Variable)

public static implicit operator float(Variable v)

Parameters

v Variable

Returns

float

implicit operator string(Variable)

public static implicit operator string(Variable v)

Parameters

v Variable

Returns

string

implicit operator Variable(bool)

public static implicit operator Variable(bool v)

Parameters

v bool

Returns

Variable

implicit operator Variable(double)

public static implicit operator Variable(double v)

Parameters

v double

Returns

Variable

implicit operator Variable(int)

public static implicit operator Variable(int v)

Parameters

v int

Returns

Variable

implicit operator Variable(long)

public static implicit operator Variable(long v)

Parameters

v long

Returns

Variable

implicit operator Variable(float)

public static implicit operator Variable(float v)

Parameters

v float

Returns

Variable

implicit operator Variable(string)

public static implicit operator Variable(string v)

Parameters

v string

Returns

Variable

operator !=(Variable, Variable)

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

Parameters

left Variable
right Variable

Returns

bool