From afdeae18d3c0f7973aaecf13e4c55d3b9cd799ae Mon Sep 17 00:00:00 2001 From: Ali Haider Khan Date: Tue, 13 Aug 2024 11:06:15 +0200 Subject: [PATCH] All tests have passed --- csharp-fundamentals-lists.Main/Core.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/csharp-fundamentals-lists.Main/Core.cs b/csharp-fundamentals-lists.Main/Core.cs index 9adbb7c..21fb463 100644 --- a/csharp-fundamentals-lists.Main/Core.cs +++ b/csharp-fundamentals-lists.Main/Core.cs @@ -57,7 +57,7 @@ public List Question3() //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() List results = _iceCreams.Concat(this.MoreIceCream).ToList(); - + results = _iceCreams.Concat(this.MoreIceCream).Concat(this.EvenMoreIceCream).ToList(); return results; // remove exception and write code here @@ -73,6 +73,7 @@ public List Question4() List results = _iceCreams; + results = _iceCreams.Concat(this.MoreIceCream).Concat(this.EvenMoreIceCream).Distinct().ToList(); // remove exception and write code here return results; }