我可以将扩展方法添加到现有的静态类中吗?
Console.WriteBlueLine("This text is blue");
public static class Helpers { public static void WriteBlueLine(this Console c, string text) { Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine(text); Console.ResetColor(); }}