Class StepVariableCompiler.Result
- Namespace
- Hi.MachiningProcs
- Assembly
- HiNc.dll
The outcome of one formula: its function, or the errors that kept it from compiling.
public sealed record StepVariableCompiler.Result : IEquatable<StepVariableCompiler.Result>
- Inheritance
-
StepVariableCompiler.Result
- Implements
- Inherited Members
- Extension Methods
Constructors
Result(string, Func<MachiningStep, double?>, IReadOnlyList<Error>)
The outcome of one formula: its function, or the errors that kept it from compiling.
public Result(string Body, Func<MachiningStep, double?> Func, IReadOnlyList<StepVariableCompiler.Error> Errors)
Parameters
BodystringThe formula as given.
FuncFunc<MachiningStep, double?>The compiled function; null when
Errorshas any.ErrorsIReadOnlyList<StepVariableCompiler.Error>The errors within this formula; empty when it compiled.
Properties
Body
The formula as given.
public string Body { get; init; }
Property Value
Errors
The errors within this formula; empty when it compiled.
public IReadOnlyList<StepVariableCompiler.Error> Errors { get; init; }
Property Value
Func
The compiled function; null when Errors has any.
public Func<MachiningStep, double?> Func { get; init; }