Method TryEvaluate
TryEvaluate(FieldInstruction, CultureInfo, out bool)
Evaluates an instruction's comparison.
public static bool TryEvaluate(FieldInstruction instruction, CultureInfo culture, out bool result)
Parameters
instructionFieldInstructionThe instruction, whose first three arguments form the comparison.
cultureCultureInfoThe culture used to parse numeric operands.
resultboolThe 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
instructionorcultureis null.