Use C# Visual Studio, Implement the IEnumerable interface. In this…

Question Answered step-by-step Use C# Visual Studio, Implement the IEnumerable interface. In this… Use C# Visual Studio,Implement the IEnumerable interface. In this exercise, you’ll implement the IEnumerable interface in the list class of the Inventory Maintenance application from extra exercise 15-1. 1. Extract the provided start project, and open the project in the “InventoryMaint With IEnumerable” folder. 2. Display the code for the InvItemList class, and modify its declaration to indicate that it implements the IEnumerable interface. Then, generate a code stub for the only member of this interface, the GetEnumerator method. 3. Replace the generated throw statement for the GetEnumerator method with a foreach statement that returns each item that’s stored in the list for the class. Be sure to precede the return keyword with the yield keyword. 4. Display the code for the Inventory Maintenance form. Then, modify the code for the FillItemListBox so it uses a foreach statement instead of a for statement. 5. Test the application to be sure it still works.  Engineering & Technology Computer Science CIS 166 Share QuestionEmailCopy link Comments (0)