Table of Contents

Method Evaluate

Namespace
DocWright.Dom.Fields
Assembly
DocWright.Dom.dll

Evaluate(string?, FieldFormulaContext)

Evaluates a formula expression and returns its unformatted result, or one of the FieldErrors texts. Applying a numeric picture is the caller's job.

public static string Evaluate(string? expression, FieldFormulaContext context)

Parameters

expression string

The expression, without the leading =.

context FieldFormulaContext

The reference resolvers and culture.

Returns

string

The result text.

Exceptions

ArgumentNullException

context is null.