Class ExpressionEvaluationOptions
- Namespace
- NCalc
- Assembly
- NCalc.Core.dll
Evaluation configuration for an Expression.
public sealed class ExpressionEvaluationOptions
- Inheritance
-
ExpressionEvaluationOptions
- Inherited Members
Properties
AllowNullOrEmptyExpressions
Allows null or empty expression text to evaluate without throwing.
public bool AllowNullOrEmptyExpressions { get; init; }
Property Value
AllowNullParameter
Allows the identifier null to resolve to a null value during evaluation.
public bool AllowNullParameter { get; init; }
Property Value
ArithmeticNullOrEmptyStringAsZero
Converts null or empty string values to zero during arithmetic operations.
public bool ArithmeticNullOrEmptyStringAsZero { get; init; }
Property Value
ConcurrentAsyncEvaluation
Evaluates independent parts of an expression concurrently during asynchronous evaluation.
public bool ConcurrentAsyncEvaluation { get; init; }
Property Value
Remarks
Non-short-circuiting binary operands, eager built-in function arguments, and list items are evaluated concurrently. And, Or, coalescing expressions, and conditional function branches remain lazy. Custom callbacks may run concurrently when this option is enabled.
IgnoreCaseAtBuiltInFunctions
Enables case-insensitive matching for built-in function names.
public bool IgnoreCaseAtBuiltInFunctions { get; init; }
Property Value
IterateParameters
Treats enumerable parameters as parallel value sequences and returns one result per item.
public bool IterateParameters { get; init; }
Property Value
Math
Gets math evaluation options.
public MathOptions Math { get; init; }
Property Value
NoStringTypeCoercion
Disables coercion of string values to other types during evaluation.
public bool NoStringTypeCoercion { get; init; }
Property Value
StrictTypeMatching
Makes comparisons between values of different runtime types return false.
public bool StrictTypeMatching { get; init; }
Property Value
StringComparer
Gets the string comparer used for string comparisons.
public StringComparer StringComparer { get; init; }
Property Value
StringConcat
Concatenates values as strings instead of attempting arithmetic addition.
public bool StringConcat { get; init; }