标签:
public static void testnotparams(int[] par)
{
}
//-----------------------------------------------------------------------------------------------------
public static void test(params int[] par)
{
}
void dfsasa()
{
testnotparams(1, 2);//不可以赋值
testnotparams(new int[] { 1, 2 });
test();
test(new int[] { 1, 2 });
test(1, 2);
}
标签:
原文地址:http://www.cnblogs.com/C-CHERS/p/5860399.html