57
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
}
12
13
internal class PrimaryCourse : Course
14
{
15
public int PrimaryCourseFees { get; set; }
16
}
17
18
public class Program
19
{
20
public static void Main(string[] args)
21
{
22
List<Course> courses = new List<Course>();
23
courses.Add(new Course
24
{
Cached Result
Compilation error (line 10, col 42): Unsafe code may only appear if compiling with /unsafe