EnumNvlExpression is used specify how to treat a NULL value in a Enum property (or field or variable). If the Enum appears to be NULL, it will be assigned a default value or a specified value.
public ReadOnlyEnumProperty EnumNvlExample
{
get
{
return CalculatedEnumProperty(() =>
Operation.EditItem.TaxType.Nvl(TaxDefault));
}
}
The example above works as follows.
EnumNvlExample.Operation.EditItem.TaxType is evaluated, by adding .Nvl.EnumNvlExample will be assigned the value after Nvl between parentheses. In this case, the Enum TaxDefault will be assigned.
Article ID: 271
Created: Thu, Dec 5, 2019
Last Updated: Mon, Jan 13, 2020
Online URL: https://wiki-ai-framework.abstract-it.nl/article/enumnvlexpression-271.html