Check in
This commit is contained in:
parent
5066257912
commit
eb3bbcb69e
6 changed files with 134 additions and 21 deletions
|
@ -9,7 +9,22 @@ namespace csmic
|
|||
{
|
||||
public class FunctionValue
|
||||
{
|
||||
public required csmic.ValueType Type { get; set; }
|
||||
public ValueType Type { get; set; }
|
||||
public object? Value { get; set; }
|
||||
|
||||
public static readonly FunctionValue TRUE = new FunctionValue(ValueType.Numeric, 1);
|
||||
public static readonly FunctionValue FALSE = new FunctionValue(ValueType.Numeric, 0);
|
||||
|
||||
public FunctionValue()
|
||||
{
|
||||
this.Type = ValueType.None;
|
||||
this.Value = null;
|
||||
}
|
||||
|
||||
public FunctionValue(ValueType type, object? value)
|
||||
{
|
||||
this.Type = type;
|
||||
this.Value = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue