C#声明方法,不参数数目时
2021-03-10 01:28
标签:wrr OLE for reac div ams stat 声明 color C#声明方法,不参数数目时 标签:wrr OLE for reac div ams stat 声明 color 原文地址:https://www.cnblogs.com/my2020/p/12714909.html class TestClass
{
public static void test(params int[] array)
{
string s;foreach (int i in array)
{
Console.WrriteLine(i);
}
}
}
public static void Main(string[] args)
{
TestClass.test("a","b","c","d");
}