Error look up in .NET

K

Krish

Hi All,
I want to maintain a error lookup table (ErrorCode - Error Message) for
my application. Can anyone suggest the best way to do it.

One way would be to store it in a Database table. Is there any other
better option?
Can I use resource file for it? or some other option is there in .Net.

I have seen VC++ programs using .h file for the same purpose. Is there
something similar in .NET?
Regards
Krish
 
D

Dave Sexton

Hi Krish,

For what purpose do you intend to use the lookup table?

Depending upon your answer your choices are numerous; XML, flat-file, database, embedded resource, Hashtable, class, constants,
etc.
 

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

Top