Enum ExpressionOptions
- Namespace
- NCalc
- Assembly
- NCalc.Core.dll
Options used for both parsing and evaluation of an expression.
[Flags]
public enum ExpressionOptions
Fields
[Display(Name = "Allow Boolean Calculation")] AllowBooleanCalculation = 512Allow calculation with bool values.
[Display(Name = "Allow Char Values")] AllowCharValues = 4096Parse single quoted strings as char.
[Display(Name = "Allow Null Or Empty Expressions")] AllowNullOrEmptyExpressions = 16384Return the value instead of throwing an exception when the expression is null or empty.
[Display(Name = "Allow Null Parameter")] AllowNullParameter = 128Defines a "null" parameter and allows comparison of values to null.
[Display(Name = "Arithmetic Null Or Empty String As Zero")] ArithmeticNullOrEmptyStringAsZero = 131072Converts null or empty string values to 0 during arithmetic operations.
[Display(Name = "Case-Insensitive String Comparer")] CaseInsensitiveStringComparer = 32Specifies the use of CaseInsensitiveComparer for comparisons.
[Display(Name = "Decimal As Default")] DecimalAsDefault = 64Uses decimals instead of doubles as default floating point data type.
[Display(Name = "Ignore Case At Built-In Functions")] IgnoreCaseAtBuiltInFunctions = 2Specifies case-insensitive matching for built-in functions.
[Display(Name = "Iterate Parameters")] IterateParameters = 8Treats parameters as arrays and returns a set of results.
[Display(Name = "Long As Default")] LongAsDefault = 65536Uses long instead of integer as default integral data type.
[Display(Name = "No Cache")] NoCache = 4No-cache mode. Ignores any pre-compiled expression in the cache.
[Display(Name = "No String Type Coercion")] NoStringTypeCoercion = 8192Disables coercion of string values to other types.
[Display(Name = "None")] None = 0Specifies that no options are set.
[Display(Name = "Ordinal String Comparer")] OrdinalStringComparer = 256Use ordinal culture on string compare.
[Display(Name = "Overflow Protection")] OverflowProtection = 1024Check for arithmetic binary operation overflow.
[Display(Name = "Round Away From Zero")] RoundAwayFromZero = 16When using Round(), if a number is halfway between two others, it is rounded toward the nearest number that is away from zero.
[Display(Name = "Strict Type Matching")] StrictTypeMatching = 32768Enables strict type matching, where comparisons between objects of different types will return false.
[Display(Name = "String Concatenation")] StringConcat = 2048Concat values as strings instead of arithmetic addition.