// You can create either a student with name that will generate automatic ID or // a student with name and ID, in both cases it check for correctness of name, uniqueness and range of ID public Student(string name) { this.Name = name; this.id = School.GenerateId(); School.students.Add(this); }