5.1.4 Applying Extension Methods to an Interface (Bug fix)

This commit is contained in:
Jason Zhu 2021-07-12 12:07:21 +10:00
parent 3b938d8c61
commit ec983ff21c

View File

@ -10,7 +10,7 @@ namespace automatically_implemented_properties
static void Main(string[] args)
{
// create and populate Shopping Cart, implementing IEnumerable<Product> interface
ShoppingCart products = new ShoppingCart
IEnumerable<Product> products = new ShoppingCart
{
Products = new List<Product>
{