clear all array list data
Posted
by lolalola
on Stack Overflow
See other posts from Stack Overflow
or by lolalola
Published on 2010-05-19T06:02:46Z
Indexed on
2010/05/19
6:10 UTC
Read the original article
Hit count: 211
c#
Hi,
Why don't clear all Array list data?
Console.WriteLine("Before cleaning:" + Convert.ToString(ID.Count));
//ID.Count = 20
for (int i = 0; i < ID.Count; i++)
{
ID.RemoveAt(i);
}
Console.WriteLine("After cleaning:" + Convert.ToString(ID.Count));
//ID.Count = 10
From where 10 data? Maybe there is another special function, which deletes everything?
© Stack Overflow or respective owner