Example Use Of Collection Classes Enterprise Architect
C Class Example Get Set
Collection<t> class provides the base class for a generic collection. here t is the type of elements in the collection. this class comes under the system.collections.objectmodel namespace. characteristics: the collection<t> class can be used immediately by creating an instance of one of its constructed types. A list class can be used to create a collection of any type. for example, we can create a list of integers, strings and even any complex types. why to use a list. unlike arrays, a list can grow in size automatically in other words a list can be re sized dynamically but arrays cannot. list is a generic type. The following example demonstrates several properties and methods of the list<t> generic class of type string. (for an example of a list<t> of complex types, see the contains method.) the parameterless constructor is used to create a list of strings with the default capacity.
Sql Server Net And C Video Tutorial Part 84 Real
Part 74 List Collection Class In C#