-
Notifications
You must be signed in to change notification settings - Fork 56
/
Course.cs
57 lines (51 loc) · 1.85 KB
/
Course.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;
namespace StandardOperators
{
public class Course
{
public string Title { get; set; }
public string Category { get; set; }
public int Number { get; set; }
public DateTime PublicationDate { get; set; }
public TimeSpan Duration { get; set; }
public static readonly Course[] Catalog =
{
new Course
{
Title = "Elements of Geometry",
Category = "MAT", Number = 101, Duration = TimeSpan.FromHours(3),
PublicationDate = new DateTime(2009, 5, 20)
},
new Course
{
Title = "Squaring the Circle",
Category = "MAT", Number = 102, Duration = TimeSpan.FromHours(7),
PublicationDate = new DateTime(2009, 4, 1)
},
new Course
{
Title = "Recreational Organ Transplantation",
Category = "BIO", Number = 305, Duration = TimeSpan.FromHours(4),
PublicationDate = new DateTime(2002, 7, 19)
},
new Course
{
Title = "Hyperbolic Geometry",
Category = "MAT", Number = 207, Duration = TimeSpan.FromHours(5),
PublicationDate = new DateTime(2007, 10, 5)
},
new Course
{
Title = "Oversimplified Data Structures for Demos",
Category = "CSE", Number = 104, Duration = TimeSpan.FromHours(2),
PublicationDate = new DateTime(2019, 9, 21)
},
new Course
{
Title = "Introduction to Human Anatomy and Physiology",
Category = "BIO", Number = 201, Duration = TimeSpan.FromHours(12),
PublicationDate = new DateTime(2001, 4, 11)
},
};
}
}