Null coalesce operators:
C# – ??
int? myVar = null; System.Console.Write(myVar ?? 0);
VB.NET – If ()
Dim myVar As Nullable(Of int) = Nothing System.Console.Write(If(myVar, 0))
Null coalesce operators:
C# – ??
int? myVar = null; System.Console.Write(myVar ?? 0);
VB.NET – If ()
Dim myVar As Nullable(Of int) = Nothing System.Console.Write(If(myVar, 0))