Hi,
Coming from a primitive language like ansi-C,I'm new to C# so I really need your help. How do I write a functionthat would loop through a given dataset and populate the list of courses tied up to the student,then loop through the subjects tied up to the given course?
StudentName Age Courses SubjectsListPrasad Singh 23 Bachelor of Arts Subject 1Prasad Singh 23 Bachelor of Business Subject 11Prasad Singh 23 Bachelor of Arts Subject 2Prasad Singh 23 Bachelor of Business Subject 22Nand Sawadi 42 Bachelor of Arts Subject 8Nand Sawadi 42 Bachelor of Engg Subject 9Rajaned Motupah 19 Diploma in Math Subject 10Rajaned Motupah 19 Diploma in Press Subject 11Rajaned Motupah 19 Diploma in Tourism Subject 142Rajaned Motupah 19 Diploma in Tourism Subject 115Mayar Karan 22 Certificate in English Subject 25
Class Student{
String Name {get;set;}Integer Age {get;set;}List<of String> Courses {get; set;}
??? should I define another LIST here for subjects??}
Thanks in advance for the help.