当集合属性(类型为"IList“或数组)时,当没有元素时应为null,还是应表示为空集合(即长度为零)public class Teacher public List<Student>Teacher public List<Student> Students = new List<Student>() // Initialize the collection.围绕这一点<
我注意到不允许创建长度为零的非堆分配数组。// error: cannot allocate an array of constant length zero我还注意到,允许创建长度为零的堆分配数组。// this is okay though我猜它们都有标准的保证(我手头没有标准的副本)。如果是这样,<