C#で動的配列を作成する方法はありますか?
ChrisとMigolの回答にコードサンプルを加えたものです。
配列の使用
Student[] array = new Student[2];
array[0] = new Student("bob");
array[1] = new Student("joe");
一般的なリストの使用。 内部では List
List<Student> list = new List<Student>();
list.Add(new Student("bob"));
list.Add(new Student("joe"));
Student joe = list[1];