51
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
5
namespace ConsoleApplication1
6
{
7
internal class Course
8
{
9
public int ID { get; set; }
10
public string Subject { get; set; }
11
public int Rank { get; set; }
12
}
13
14
public class Program
15
{
16
public static void Main(string[] args)
17
{
18
List<Course> courses = new List<Course>();
19
courses.Add(new Course
20
{
21
ID = 1,
22
Subject = "LINQ Tutorials",
23
Rank = 5
24
});
Cached Result
a =
>