Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

How to check Entity Value null and count in single condition

$
0
0

How to check Entity Value null and count in single condition instead to add one more if condition to check if ecAccount ?

with the following code it will get error if ecAccount is Null is there any other to avoid error with single line condition in c# ?

if (ecAccount == null && ecAccount.Entities.Count <= 0)
return null;


Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>