Pages

Saturday, April 24, 2010

SequenceArray


using System;
using System.Collections.Generic;
using System.Collections.Specialized;

public class SequenceArray : System.Collections.ArrayList
{
int _index = 0;
public int index
{
get
{
int _r = _index % Count;
_index++;
return _r;
}
set
{
_index = value;
}
}
public object GetS()
{
return this[index];
}
public void Add(string value1, string value2)
{
NameValueCollection nv = new NameValueCollection();
nv.Add(value1, value2);
Add(nv);
}

}