当前位置: 移动技术网 > IT编程>开发语言>c# > C#声明方法,不参数数目时

C#声明方法,不参数数目时

2020年04月17日  | 移动技术网IT编程  | 我要评论
class TestClass { public static void test(params int[] array) { string s;foreach (int i in array) { Console.WrriteLine(i); } } } public static void Ma ...
 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"); }

 

如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!

相关文章:

验证码:
移动技术网