H
hk
Hello,
I would like to create a special version of hashtable,
either inherited from hastable or from DictionaryBase.
I would like to be able to access the class from outside
in the following fassion:
spec_htb.Add("key","abc");
spec_htb.Add("key123",123);
spec_htb["key"] returns doubles but fails on the strings
spec_htb.Strings["key"] returns just strings, fails on doubles
spec_htb.Doubles["key"] returns just doubles, fails on strings
Internally the class should save everything to just one table
independent from the type.
Any suggestions how to accomplish this?
Regards,
Holger
I would like to create a special version of hashtable,
either inherited from hastable or from DictionaryBase.
I would like to be able to access the class from outside
in the following fassion:
spec_htb.Add("key","abc");
spec_htb.Add("key123",123);
spec_htb["key"] returns doubles but fails on the strings
spec_htb.Strings["key"] returns just strings, fails on doubles
spec_htb.Doubles["key"] returns just doubles, fails on strings
Internally the class should save everything to just one table
independent from the type.
Any suggestions how to accomplish this?
Regards,
Holger