public static class MyExtensions
public static bool IsNullOrLarge(this string val)
if (val == null) return true;
if (val.Length > 10) return true;
public static void Main()
Console.WriteLine($"this should be false: {x.IsNullOrLarge()}");
Console.WriteLine($"I thought this would throw! but it works and prints true: {y.IsNullOrLarge()}");