public class StudentModel { public int Id; public string Name; }
class Program {
static void Main(string[] args) {
var studentList = new List
var student = new StudentModel { Id=8014,Name= “Xavier” };
studentList.Add(student);
var student2 = new StudentModel { Id = 7989, Name = “Quinn” };
studentList.Add(student);
var student3 = new StudentModel { Id = 7570, Name = “Luis” };
studentList.Add(student);
for (int i = studentList.Count – 1; i >= 0; i–) {
Console.Write(” ” + studentList[i].Id + ” ” + studentList[i].Name);
}
}
}