Showing posts with label IIF NullReferenceException. Show all posts
Showing posts with label IIF NullReferenceException. Show all posts

Tuesday, September 15, 2020

using iif to check null

IIf is a function which evaluates all its arguments, Vb net has if operator which works similar to the short circuit  if operator.

 e.g.

varName =   If(objName Is Nothing, "", objName.ToString())