Raja

Raja

  • NA
  • 1.7k
  • 41.1k

How to clear array in c#?

Sep 27 2016 2:28 AM
string[] text;
 
if (ds.Tables[0].Rows[0][i].ToString().ToUpper().Trim().Contains("NUMBER :"))
{
s01 = ds.Tables[s].Rows[0][i].ToString().Trim();
SpirNoSplt1 = s01.Split(':');
i = ds.Tables[0].Columns.Count;
}
i have use array and split and stored in array.now the loop is excute array is not cleared old value is hold in array.
i have use below code
text.clear()
but error occur
How to clear array ?

Answers (14)