C# Null Multiple Coalescing

CSharp · Console

/Program.cs

using System;
					
public class Program
{
	public static void Main()
	{
		int? a = null;
		int? b = null;
		int c = 3;
		var output = a ?? b ?? c;
 
		var type = output.GetType();
		
		Console.WriteLine($"Type :{type}");
		Console.WriteLine($"value :{output}");
		
	}
}
;