C# 13 ) C# COLLECTION (Arraylist ,Stack)
* C# COLLECTION *
- Library :- using .System.Collections ;
- Collection is a special type of task it contain the group of data element .there are some type of collection in C# .
- All collection store in System.Collections : library
Arraylist
- Arraylist is a collection it is store data in array format.
- Using add function store data value in array list.
Q ) how to display arraylist element .
:- For looop working from number element.
- For each loop :- Is use to accecing the data element.with object .
- Used in operator for each loop .
Arraylist Normal |
- Stack is work for LIFO technology
- LIFO :- Last In First Out
- Push :- insert data element in stack
- Pop :- remove data element in stack.
Comments
Post a Comment