ReasonIsNullOrEmptyExpression


ReasonIsNullOrEmptyExpression

Table of Contents

ReasonIsNullOrEmptyExpression is one of more than 130 LINQ expressions.

What it is

ReasonIsNullOrEmptyExpression is used to ...

Code example

if (left == null || right == null)
    return null;

return new AndExpression(left, right);

Explanation of the example

If two booleans (left and right) are both not null (line 1), the AND of these two booleans is returned (line 4). 

 

 

 



Article ID: 326
Created: Thu, Dec 5, 2019
Last Updated: Thu, Dec 5, 2019

Online URL: https://wiki-ai-framework.abstract-it.nl/article/reasonisnulloremptyexpression-326.html