C#C
C#14mo ago
Decoherence

Null check

if (maybe is int number)
{
  Console.WriteLine($"The nullable int 'maybe' has the value {number}");
}

VS
if(maybe != null)
{
  Console.WriteLine($"The nullable int 'maybe' has the value {maybe}");
}
Was this page helpful?