Here is an example implementation of a generic ModalLogic class that can hold a list of items:
main.cs412 chars30 lines
This class uses generics to allow any type of item to be stored in the list. The constructor initializes the list, and the Add, Remove, and Contains methods provide basic list manipulation functionality. Finally, the GetItems method returns the full list of items.
gistlibby LogSnag