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

Arraylist Foreach

STACK

  • Stack is work for LIFO technology
  • LIFO :- Last In First Out 
  • Push  :- insert data element in stack
  •  Pop   :- remove data element in stack.
Stack normal and Foreach


Comments

Popular posts from this blog

DATA CONTROL ( Gridview , Repeater , Formview , DataList , Detailsview , Listview )

Z 5 ) MVC (Model view Controller)

Z 8 ) MVC HTMLHELPER METHOD AND ACTIONLINK (how to use css ,atrributes,style in css)