Typically I get a DictionaryEntry from a foreach when walking a Hashtable.
My impression is that the foreach returns one item of the hash.
One of my commonly used functions received takes a DictionaryEntry as a
parameter.
In several instances I dont want to recreate a foreach item.
but this code to create the dictionaryEntry did not work: eg:
Hashtable hTableProcedureTables = new Hashtable();
hTableProcedureTables.Add("F","cheese");
DictionaryEntry dObj = new DictionaryEntry();
dObj = (DictionaryEntry)hTableProcedureTables["F"];
// FAILS...Specified cast is not valid.
Why ? & what should I do ?
--
Andrew