C#声明方法,不参数数目时
作者:互联网
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"); }
标签:string,C#,void,TestClass,int,参数,test,数目,public 来源: https://www.cnblogs.com/my2020/p/12714909.html