The null-coalescing operator chooses a fallback for a null value.

Null Coalescing

NullCoalescing.cs
using System;

class Program
{
    static void Main()
    {
        int? count = ;
        int fallback = 1;
        int display = count ?? fallback;

        Console.WriteLine($"hasCount={count.HasValue}");
        Console.WriteLine($"display={display}");
    }
}
using System;

class Program
{
    static void Main()
    {
        int? count = ;
        int fallback = 1;
        int display = count ?? fallback;

        Console.WriteLine($"hasCount={count.HasValue}");
        Console.WriteLine($"display={display}");
    }
}
null coalescing The `??` operator returns the left value unless it is null.