Quantcast
Channel: .NET Framework Setup and Servicing forum
Viewing all articles
Browse latest Browse all 3295

hashtable

$
0
0

I have a  Hashtable[] value =newHashtable[1];

In response I have validate the Value as below

if ((Hashtable[])temp["data[]"] != null)
{
 acc = (Hashtable[])temp["data[]"];
value = acc;

btn_Click(args,null);

}

btn_Click(object sender, RoutedEventArgs e)

{ int rowcount=0
 rowCount = value.Length;
 if (rowCount > 0 && value[0] != null)
 validData(value, rowCount);

}

Here Value is the hastable which contains array of hashtable

In Request I need to clear the hashtable

Im not able to use value.clear();

if i clear with a loop like

 if (rowCount > 0 && value[0] != null)
                        for (int i = 0; i <= rowCount; i++)
                        {
                            value[i].Clear();
                        }

only values of array hashtable only cleared but I neeed to clear the hastable value itself, how to do it?


Viewing all articles
Browse latest Browse all 3295


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>