Table of Contents

Method TryEvaluate

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

TryEvaluate(FieldInstruction, CultureInfo, out bool)

Evaluates an instruction's comparison.

public static bool TryEvaluate(FieldInstruction instruction, CultureInfo culture, out bool result)

Parameters

instruction FieldInstruction

The instruction, whose first three arguments form the comparison.

culture CultureInfo

The culture used to parse numeric operands.

result bool

The truth value, valid only when this method returns true.

Returns

bool

true if the instruction carried a well-formed comparison. false when an operand or the operator is missing or unrecognized — the caller then produces SyntaxError.

Exceptions

ArgumentNullException

instruction or culture is null.