Table of Contents

Method TryEvaluate

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

TryEvaluate(FieldEvaluationContext, out string?)

Evaluates a field.

bool TryEvaluate(FieldEvaluationContext context, out string? result)

Parameters

context FieldEvaluationContext

The field being evaluated and everything it may read.

result string

The result text to write into the field, or null.

Returns

bool

true if the handler produced a result. false leaves the field's cached result in place and lets the next handler try.