Playing with collections and generics
Collections are not new for us, as we went through and discussed non-generic collections on day five. So, we also have generic collections. In this section, we will discuss all about collections and generics with the use of code examples.
Understanding collection classes and their usage
As discussed on day five, collection classes are specialized classes and are meant for data interaction (storage and retrieval). We have already discussed various collection classes, namely
stacks, queues, lists, and hash tables, and we have written code using the System.Collections.NonGeneric
namespace. The following table provides us an overview of the usage and meaning of non-generic collection classes:
Property | Description | Usage |
| The name itself describes that this contains a collection of ordered collection that can be accessed using index. We can declare | On day two, we discussed arrays and went through... |