FormulaSyntaxResult
Namespace: Meshmakers.Octo.Runtime.Contracts.Formulas
Result of validating a formula expression.
public record FormulaSyntaxResult : IEquatable<FormulaSyntaxResult>
Inheritance Object → FormulaSyntaxResult
Implements IEquatable<FormulaSyntaxResult>
Properties
IsValid
Whether the expression is syntactically valid and evaluates to a finite number.
public bool IsValid { get; set; }
Property Value
Error
Error message when invalid.
public string Error { get; set; }
Property Value
Result
Evaluated result for the dummy test arguments, for preview / debugging.
public Nullable<double> Result { get; set; }
Property Value
NormalizedExpression
The expression after ternary-to-if normalization.
public string NormalizedExpression { get; set; }
Property Value
Constructors
FormulaSyntaxResult(Boolean, String, Nullable<Double>, String)
Result of validating a formula expression.
public FormulaSyntaxResult(bool IsValid, string Error, Nullable<double> Result, string NormalizedExpression)
Parameters
IsValid Boolean
Whether the expression is syntactically valid and evaluates to a finite number.
Error String
Error message when invalid.
Result Nullable<Double>
Evaluated result for the dummy test arguments, for preview / debugging.
NormalizedExpression String
The expression after ternary-to-if normalization.