public class Test2
{
public static void Main()
{
ShowName("小兵");
ShowName("小王", "小六");
}
public static void ShowName(params string[] names)
{
foreach (string name in names)
{
Console.WriteLine(name);
}
}
}
转载于:https://www.cnblogs.com/armanda/p/6202744.html