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. Advertisements

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. SaravanaKumar
    Replies:
    6
    Views:
    9,914
    Tony Morris
    Oct 19, 2004
  2. E11
    Replies:
    1
    Views:
    5,756
    Thomas Weidenfeller
    Oct 12, 2005
  3. Ajax Chelsea
    Replies:
    3
    Views:
    17,313
    Ajax Chelsea
    Dec 5, 2003
  4. bugbear
    Replies:
    4
    Views:
    655
    bugbear
    Aug 23, 2006
  5. Robin
    Replies:
    0
    Views:
    558
    Robin
    Jun 6, 2007
  6. mavrick_101

    enum or static class

    mavrick_101, Jun 16, 2009, in forum: ASP .Net
    Replies:
    3
    Views:
    627
    Abubakar
    Jun 18, 2009
  7. Brian
    Replies:
    4
    Views:
    4,237
    Brian
    Feb 27, 2010
  8. Ansel

    "enum" vs. "enum class"

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