c#传不确定的参数个数,比如int型

a(params int[] )

调用时
a(1,2,3,4,5,6)

原文地址:https://www.cnblogs.com/jiahuafu/p/11011634.html