Table of Contents

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

bool

AllowNullParameter

Allows the identifier null to resolve to a null value during evaluation.

public bool AllowNullParameter { get; init; }

Property Value

bool

ArithmeticNullOrEmptyStringAsZero

Converts null or empty string values to zero during arithmetic operations.

public bool ArithmeticNullOrEmptyStringAsZero { get; init; }

Property Value

bool

IgnoreCaseAtBuiltInFunctions

Enables case-insensitive matching for built-in function names.

public bool IgnoreCaseAtBuiltInFunctions { get; init; }

Property Value

bool

IterateParameters

Treats enumerable parameters as parallel value sequences and returns one result per item.

public bool IterateParameters { get; init; }

Property Value

bool

Math

Gets math evaluation options.

public MathOptions Math { get; init; }

Property Value

MathOptions

NoStringTypeCoercion

Disables coercion of string values to other types during evaluation.

public bool NoStringTypeCoercion { get; init; }

Property Value

bool

StrictTypeMatching

Makes comparisons between values of different runtime types return false.

public bool StrictTypeMatching { get; init; }

Property Value

bool

StringComparer

Gets the string comparer used for string comparisons.

public StringComparer StringComparer { get; init; }

Property Value

StringComparer

StringConcat

Concatenates values as strings instead of attempting arithmetic addition.

public bool StringConcat { get; init; }

Property Value

bool