This snippet is not compiled in LINQPad.
void Main() { (new[]{0,1,2,3}).Where(IsNull).Dump(); } static bool IsNull(object arg) { return arg == null; } <
It doesn't work for an int because there are not objects.
Try:
void Fun() { IEnumerable objects = (new object[] { 0, 1, null, 3 }).Where(IsNull); foreach (object item in objects) { Console.WriteLine("item is null"); } } bool IsNull(object arg) { return arg == null; }