Quantcast
Channel: Using VB.NET IIF I get NullReferenceException - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by Chris Farmer for Using VB.NET IIF I get NullReferenceException

$
0
0

VB does not do short-circuiting evaluation in Iif. In your case, e.Value.ToString() is being evaluated no matter whether e.Value is nothing.


Viewing all articles
Browse latest Browse all 4

Trending Articles



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