C# Class Sage.XsltExtensions.Basic

Show file Open project: igorfrance/sage

Public Methods

Method Description
iif ( bool condition, object result1, object result2 ) : object

Tests the specified condition and returns result1 if condition is true, or result2 if condition is false

isnull ( object result1, object result2 ) : object

Returns either of two specified values that is not null.

Method Details

iif() public method

Tests the specified condition and returns result1 if condition is true, or result2 if condition is false
public iif ( bool condition, object result1, object result2 ) : object
condition bool The condition to test
result1 object The value to return if is true.
result2 object The value to return if is false.
return object

isnull() public method

Returns either of two specified values that is not null.
public isnull ( object result1, object result2 ) : object
result1 object The first value to consider.
result2 object The value to return if is null.
return object