Following classes we can use for storing collection of Data.
- System.Array
- To store same type of data
- Specific size
- Direct Access
- System.Collections.ArrayList
- To store different types of data
- Variable size
- Direct Access
- System.Collections.Generic.List<T>
- To store specific types of data
- Variable Size
- Direct Access
- System.Collections.Queue
- To store different types of data.
- Variable Size
- First In First Out data access
- System.Collections.Generic.Queue<T>
- To store specific types of data.
- Variable Size
- First In First Out data access
- System.Collections.Stack
- To store different types of data.
- Variable size
- Last In First Out data access
- System.Collections.Generic.Stack<T>
- To store specific types of data.
- Variable size
- Last In First Out data access
- System.Collections.Generic.HashSet<T>
- Generic type
- To store specific types of data
- Variable Size
- Direct Access
- Supports Set operations such as Intersect, Union
No comments:
Post a Comment