using System.Collections.Generic;
public static void Main()
Console.WriteLine($"When it's empty: {myfunc(l)}");
Console.WriteLine($"When it's a match: {myfunc(l)}");
Console.WriteLine($"When there are two: {myfunc(l)}");
Console.WriteLine($"When it's null: {myfunc(l)}");
bool myfunc(List<string> listOfStrings)
return listOfStrings?.Count() == 1 && listOfStrings.First() == "Example";