List ArrayList C#
C# | ArrayList ClassArrayList represents an ordered collection of an object that can be indexed individually. It is basically an alternative to an array. It also allows dynamic memory allocation, adding, searching and sorting items in the list. Properties of ArrayList Class:
Constructors
Example:
Output: Count : 2 Capacity : 4Properties
Example:
Output: Methods
Example 1:
Output: Yes, exists at index 4Example 2:
Output: The initial ArrayList: 2 4 6 8 10 12 14 16 18 20 The ArrayList after Removing elements: 10 12 14 16 18 20Reference:
Article Tags :
C#
CSharp-Collections-ArrayList CSharp-Collections-Namespace
Read Full Article
|