You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csharp-fundamentals-lists.Main/Core.cs
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,15 +32,21 @@ public List<string> Question1()
32
32
33
33
//write code here
34
34
35
+
_iceCreams.Add("Banana");
36
+
_iceCreams.Add("Oreo");
37
+
35
38
return_iceCreams;
36
39
}
37
40
38
41
publicintQuestion2()
39
42
{
40
-
43
+
41
44
//TODO: find the lists method that returns the number of ice creams in the list and return this.
42
45
43
46
// remove exception and write code here
47
+
48
+
_iceCreams.ToList();
49
+
44
50
thrownewNotImplementedException();
45
51
}
46
52
publicList<string>Question3()
@@ -49,7 +55,7 @@ public List<string> Question3()
49
55
// The code below concatenates this.MoreIceCream to the _iceCreams list into a new results list.
50
56
//TODO: you can 'chain' methods on the _iceCream list, so add another Concat to include EvenMoreIceCream (this is defined below) to the result list . e.g. _iceCreams.Concat(this.MoreIceCream).Concat(other list to concat).ToList()
0 commit comments