c#参数数组


using System;
namespace HxRuntech
{
    public class T1
    {
        static void Main()
        {
            string[] students = { "huangzhong","zhaoyum", "zhangfei", "machao", "guanyu" };
            PrintStudents(students);
        }
        static void PrintStudents(params string[] students)
        {
            for(int i = 0; i < students.Length; i++) {
                Console.WriteLine(students[i]);
            }
        }
    }
}

params