Strongly typed hash

  • Thread starter Thread starter gazza67
  • Start date Start date
G

gazza67

Hi,

I want to make a strongly typed hash class. I want to be able to add,
delete and foreach through the hash. Does anyone know where there is
some sample code to accomplish this.

Gary
 
gazza67 said:
Hi,

I want to make a strongly typed hash class. I want to be able to add,
delete and foreach through the hash. Does anyone know where there is
some sample code to accomplish this.

Gary

Hi Gary.

You'll find it out of the box in .NET 2.0 with generics. Dictionary<K, V>
If you want it in .NET 1.1 you just have to wrap a Hashtable. There are
codegens out there that does this for you.

Happy Coding
- Michael S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top