EnumNvlExpression


EnumNvlExpression

Table of Contents

What it is

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.

Code example

public ReadOnlyEnumProperty EnumNvlExample
{
	get 
	{ 
		return CalculatedEnumProperty(() => 
			Operation.EditItem.TaxType.Nvl(TaxDefault)); 
	}
}

 

Explanation of the example

The example above works as follows.

 

 



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