Insert and remove at specific index : ArrayList : Data Structure C# Examples


C# Examples » Data Structure » ArrayList »

 

Insert and remove at specific index









    
using  System;
using  System.Collections;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        ArrayList  a  =  new  ArrayList(10);
        int  x  =  0;

        a.Add(  ++x);
        a.Add(  ++x);
        a.Add(  ++x);


        a.Remove(x);
        
        a.RemoveAt(0);
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Data Structure
» ArrayList