Using system;
Using system. Collections. Generic;
Using system. LINQ;
Using system. text;
Using system. collections;
Namespace consoleapplication1
{
Public class mytest: ienumerator
{
Public object current
{
Get {return NULL ;}
}
Public bool movenext ()
{
Return false;
}
Public void reset ()
{
}
}
// This example shows the arraylist. Arraylist and array are equivalent to the relationship between stringbuilder and string. However, if you want to change the arraylist to an array
// Manual copy is required.
Class Program
{
Static void main (string [] ARGs)
{
Arraylist myarraylist = new arraylist (3 );
String [] yourname = new string [2];
Yourname [0] = "OK ";
Yourname [1] = "hello ";
Myarraylist. Add ("20 ");
Myarraylist. Add ("40 ");
Myarraylist. Add ("50 ");
Myarraylist. Add ("70 ");
Myarraylist. insert (1, "10 ");
Myarraylist. addrange (yourname );
Myarraylist. removerange (0, (2