Struct Variable
- Namespace
- Luny
/ - Assembly
- Luny.dll
public readonly struct Variable : IEquatable<Variable>, IEquatable<Boolean>, IEquatable<Double>, IEquatable<String>
Expand Details ...
- Implements
-
Properties
IsHigh
public Boolean IsHigh { get; }
Property Value
- Boolean
IsNormalized
public Boolean IsNormalized { get; }
Property Value
- Boolean
IsNull
public Boolean IsNull { get; }
Property Value
- Boolean
IsNullOrEmpty
public Boolean IsNullOrEmpty { get; }
Property Value
- Boolean
IsNullOrWhitespace
public Boolean IsNullOrWhitespace { get; }
Property Value
- Boolean
IsTrue
public Boolean IsTrue { get; }
Property Value
- Boolean
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 Boolean AsBoolean()
Returns
- Boolean
AsDouble()
Returns
- Double
AsInt32()
Returns
- Int32
AsInt64()
Returns
- Int64
AsNumber()
Returns
- Number
AsSingle()
Returns
- Single
AsString()
Returns
- String
As<T>()
Returns
- T
Type Parameters
T
Equals(Variable)
public Boolean Equals(Variable other)
Parameters
Returns
- Boolean
Equals(Boolean)
public Boolean Equals(Boolean b)
Parameters
| Type |
Name |
Description |
- Boolean
|
b |
|
Returns
- Boolean
Equals(Double)
public Boolean Equals(Double d)
Parameters
| Type |
Name |
Description |
- Double
|
d |
|
Returns
- Boolean
Equals(Object)
public override Boolean Equals(Object obj)
Parameters
| Type |
Name |
Description |
- Object
|
obj |
|
Returns
- Boolean
Equals(String)
public Boolean Equals(String s)
Parameters
| Type |
Name |
Description |
- String
|
s |
|
Returns
- Boolean
GetHashCode()
public override Int32 GetHashCode()
Returns
- Int32
Named(Number, String)
public static Variable Named(Number value, String name)
Parameters
| Type |
Name |
Description |
- Number
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Boolean, String)
public static Variable Named(Boolean value, String name)
Parameters
| Type |
Name |
Description |
- Boolean
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Double, String)
public static Variable Named(Double value, String name)
Parameters
| Type |
Name |
Description |
- Double
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Int32, String)
public static Variable Named(Int32 value, String name)
Parameters
| Type |
Name |
Description |
- Int32
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Int64, String)
public static Variable Named(Int64 value, String name)
Parameters
| Type |
Name |
Description |
- Int64
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Object, String)
public static Variable Named(Object value, String name)
Parameters
| Type |
Name |
Description |
- Object
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(Single, String)
public static Variable Named(Single value, String name)
Parameters
| Type |
Name |
Description |
- Single
|
value |
|
- String
|
name |
|
Returns
- Variable
Named(String, String)
public static Variable Named(String value, String name)
Parameters
| Type |
Name |
Description |
- String
|
value |
|
- String
|
name |
|
Returns
- Variable
ToString()
[ExcludeFromCodeCoverage]
public override String ToString()
Returns
- String
Operators
operator ==(Variable, Variable)
public static Boolean operator ==(Variable left, Variable right)
Parameters
Returns
- Boolean
implicit operator Variable(Number)
public static implicit operator Variable(Number v)
Parameters
| Type |
Name |
Description |
- Number
|
v |
|
Returns
- Variable
implicit operator Number(Variable)
public static implicit operator Number(Variable v)
Parameters
Returns
- Number
implicit operator Boolean(Variable)
public static implicit operator Boolean(Variable v)
Parameters
Returns
- Boolean
implicit operator Double(Variable)
public static implicit operator Double(Variable v)
Parameters
Returns
- Double
implicit operator Int32(Variable)
public static implicit operator Int32(Variable v)
Parameters
Returns
- Int32
implicit operator Int64(Variable)
public static implicit operator Int64(Variable v)
Parameters
Returns
- Int64
implicit operator Single(Variable)
public static implicit operator Single(Variable v)
Parameters
Returns
- Single
implicit operator String(Variable)
public static implicit operator String(Variable v)
Parameters
Returns
- String
implicit operator Variable(Boolean)
public static implicit operator Variable(Boolean v)
Parameters
| Type |
Name |
Description |
- Boolean
|
v |
|
Returns
- Variable
implicit operator Variable(Double)
public static implicit operator Variable(Double v)
Parameters
| Type |
Name |
Description |
- Double
|
v |
|
Returns
- Variable
implicit operator Variable(Int32)
public static implicit operator Variable(Int32 v)
Parameters
| Type |
Name |
Description |
- Int32
|
v |
|
Returns
- Variable
implicit operator Variable(Int64)
public static implicit operator Variable(Int64 v)
Parameters
| Type |
Name |
Description |
- Int64
|
v |
|
Returns
- Variable
implicit operator Variable(Single)
public static implicit operator Variable(Single v)
Parameters
| Type |
Name |
Description |
- Single
|
v |
|
Returns
- Variable
implicit operator Variable(String)
public static implicit operator Variable(String v)
Parameters
| Type |
Name |
Description |
- String
|
v |
|
Returns
- Variable
operator !=(Variable, Variable)
public static Boolean operator !=(Variable left, Variable right)
Parameters
Returns
- Boolean