From ec983ff21cc24ad9ee246b8d2cc4f012bdd2ad63 Mon Sep 17 00:00:00 2001 From: Jason Zhu Date: Mon, 12 Jul 2021 12:07:21 +1000 Subject: [PATCH] 5.1.4 Applying Extension Methods to an Interface (Bug fix) --- .../essential_csharp_features/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chap5_essential_language_features/essential_csharp_features/Program.cs b/chap5_essential_language_features/essential_csharp_features/Program.cs index f9da1e5..f1126fd 100644 --- a/chap5_essential_language_features/essential_csharp_features/Program.cs +++ b/chap5_essential_language_features/essential_csharp_features/Program.cs @@ -10,7 +10,7 @@ namespace automatically_implemented_properties static void Main(string[] args) { // create and populate Shopping Cart, implementing IEnumerable interface - ShoppingCart products = new ShoppingCart + IEnumerable products = new ShoppingCart { Products = new List {