C#代码测试:
public class CompilerDemo { public static void Show() { Console.WriteLine("静态方法被调用"); } public void Test() { string[] names = new string[] { "Everett", "Albert", "George", "Harris", "David" }; var items = names.Where(name => name.Length >= 6); Console.WriteLine("方法被调用"); } public void Test(string info) { Console.WriteLine("方法被调用" + info); } }
时间: 2024-10-29 19:11:22