Table of Contents

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

Body string

The formula as given.

Func Func<MachiningStep, double?>

The compiled function; null when Errors has any.

Errors IReadOnlyList<StepVariableCompiler.Error>

The errors within this formula; empty when it compiled.

Properties

Body

The formula as given.

public string Body { get; init; }

Property Value

string

Errors

The errors within this formula; empty when it compiled.

public IReadOnlyList<StepVariableCompiler.Error> Errors { get; init; }

Property Value

IReadOnlyList<StepVariableCompiler.Error>

Func

The compiled function; null when Errors has any.

public Func<MachiningStep, double?> Func { get; init; }

Property Value

Func<MachiningStep, double?>