C#,不定数量参数

声明:

void Merge(params int[] arWk)
    {
        int[] quota = new int[arWk.Length];
        ...
    }

调用

Merge(182846, 15303);

Merge(182846, 15303,1,2,3,4);



原文地址:https://www.cnblogs.com/leftfist/p/4258024.html