static void Main(string[] args) { StudentList list = new StudentList(); while (true) { Console.WriteLine("Options:\n" + "1/ Add\n" + "2/ Edit\n" + "3/ Delete\n" + "4/ Search\n" + "5/ Show\n" + "6/ Exit\n" + "Your choice: "); int opt; opt = Console.Read(); } }
static void Edit(ref StudentList list) { int id, drl; string name; double gpa; Console.WriteLine("Edit an entry:\n"); Console.Write("Id= "); id = Convert.ToInt32(Console.ReadLine()); Console.Write("Name= "); name = Console.ReadLine(); Console.Write("GPA= "); gpa = Convert.ToDouble(Console.ReadLine()); Console.Write("DRL= "); drl = Convert.ToInt16(Console.ReadLine()); Student sv = new Student(id, name, gpa, drl); }