enum or static class

Discussion in 'ASP .Net' started by mavrick_101, Jun 16, 2009.

  1. mavrick_101

    mavrick_101 Guest

    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
     
    mavrick_101, Jun 16, 2009
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. -

    enum within an enum

    -, Jun 12, 2005, in forum: Java
    Replies:
    6
    Views:
    591
  2. Jerminia
    Replies:
    3
    Views:
    661
    Roedy Green
    Oct 7, 2005
  3. Ajax Chelsea
    Replies:
    3
    Views:
    17,012
    Ajax Chelsea
    Dec 5, 2003
  4. Brian
    Replies:
    4
    Views:
    2,779
    Brian
    Feb 27, 2010
  5. Ansel

    "enum" vs. "enum class"

    Ansel, Aug 26, 2012, in forum: C++
    Replies:
    16
    Views:
    791
    Ansel
    Aug 27, 2012
Loading...

Share This Page