I bet I know the answer already.
I have a hashtable (hMaster) that holds several hashtables ("hTables") each
of which holds other hashtables ("hColumns"). Presently, I am getting at
the info I want thusly (this compiles, at least):
Hashtable hTable = (Hashtable)hMaster[tableName];
Hashtable hColumn = (Hashtable)hTable[columnName];
return hColumn.ContainsKey(codeValue);
This is kind of cumbersome. I'd rather use something like this:
return hMaster[tableName].[columnName].ContainsKey(codeValue);
But this syntax is not supported. I'm not surprised by this, I was asking a
lot, but maybe there is a cleaner approach than what I'm actually using with
all the steps and casts?
Matt
(P.S. I realize I could have leveraged ADO.NET dataset stuff to check my
code values. But I'm not up to speed on all the fancy DataSet/DataTable
stuff, so I stuck with what made sense to me. Also I had the idea that keys
from Hashtables would be faster, there's going to be a lot of these
validations.)