Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > enum or static class

Reply
Thread Tools

enum or static class

 
 
mavrick_101
Guest
Posts: n/a
 
      06-16-2009
Hi,

I have some constants that I would be using to specify some properties.

I found it hard to use enums for this purpose and feel more comfortable
using a static class that would have static properties returning the
constants.

What is THE RIGHT WAY to do it?

Thnx
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"enum" vs. "enum class" Ansel C++ 16 08-27-2012 10:34 AM
Difference between enum class and enum struct Brian C++ 4 02-27-2010 04:03 PM
enum: display elements of an enum specified at runtime Jerminia Java 3 10-07-2005 10:08 PM
enum within an enum - Java 6 06-13-2005 12:51 AM
How is "static const int" better than "static enum"? Ajax Chelsea C++ 3 12-05-2003 12:37 AM



Advertisments