Запрос Linq для консольного приложения
i have a code like
public class Student
{
public int StudentID { get; set; }
public string SName { get; set; }
public List<string> Course;
}
static List<Student> students = new List<Student>
{
new Student {StudentID=1, SName="koundinya"},
new Student {StudentID=2, SName="sarma"},
new Student {StudentID=3, SName="madhava"},
};
now my question is using LINQ can i add more courses to the students and no database and through console application only
????
What I have tried:
<pre lang="C#"><pre lang="C#">i have a code like
public class Student
{
public int StudentID { get; set; }
public string SName { get; set; }
public List<string> Course;
}
static List<Student> students = new List<Student>
{
new Student {StudentID=1, SName="koundinya"},
new Student {StudentID=2, SName="sarma"},
new Student {StudentID=3, SName="madhava"},
};