**1. 扩展方法** ``` public static class 类名随意 { public static bool IsNullOrEmpty(this 扩展类的类型 input) { } } ```