C#,不定数量参数

64 阅读1分钟

声明:

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


调用

Merge(182846, 15303);

\

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


\

\