using System;
public class X {}
public static class Program {
public static void Test(this X x) {
Console.WriteLine(x is null);
}
public static void Main() {
var xs = new X[] { new(), new(), null, new(), null };
foreach(var x in xs)
x.Test();