diff --git a/ChristmasWithTypes/Christmas.cs b/ChristmasWithTypes/Christmas.cs index e22b5c0..eef4181 100644 --- a/ChristmasWithTypes/Christmas.cs +++ b/ChristmasWithTypes/Christmas.cs @@ -1,14 +1,13 @@ using System; namespace ChristmasWithTypes { - public class Christmas + public partial class Christmas { public string[] Presents; public string Santa { get; set; } - public int TreeHeight { get; set; } //TODO Make the Height property nullable + public int? TreeHeight { get; set; } //TODO Make the Height property nullable //TODO Make the property, "Day", type enum - public enum Day { /*Fill out the days of the week*/ }; - + public enum Day { Sun, Mon, Tue, Wed, Thu, Fri, Sat }; } } diff --git a/ChristmasWithTypes/Day.cs b/ChristmasWithTypes/Day.cs new file mode 100644 index 0000000..b587fca --- /dev/null +++ b/ChristmasWithTypes/Day.cs @@ -0,0 +1,8 @@ +namespace ChristmasWithTypes +{ + public partial class Christmas + { + + + } +} diff --git a/ChristmasWithTypes/Program.cs b/ChristmasWithTypes/Program.cs index 9c17ce9..3fce800 100644 --- a/ChristmasWithTypes/Program.cs +++ b/ChristmasWithTypes/Program.cs @@ -8,16 +8,16 @@ static void Main(string[] args) { var xmas = new Christmas(); - var xmasDay = Christmas.Day.Thursday; + var xmasDay = Christmas.Day.Thu; //TODO set Santa's name to Kris Kringle - xmas.Santa = null; + xmas.Santa = "Kris Kringle"; //TODO Insert 3 presents you would like for xmas. They must be strings - xmas.Presents = new string[3]{ }; + xmas.Presents = new string[3]{"xbox", "iphone", "tellytubby" }; //TODO Set the TreeHeight to 10 - xmas.TreeHeight = null; + xmas.TreeHeight = 10; Console.WriteLine($"This year christmas falls on {xmasDay} \n"); Console.WriteLine($"Our tree will be {xmas.TreeHeight} feet high \n");