Enum gets initalized to first value

Discussion in '.NET' started by mhshpk, Aug 30, 2007.

  1. mhshpk

    mhshpk

    Joined:
    Jul 12, 2007
    Messages:
    6
    I've defined an enum as below
    public enum Modes
    {
    Add,
    Edit,
    Update
    }

    & i am using it in my page with global scope i.e before page_load

    Modes _currentMode;
    by default currentMode gets initalized to "Add" & always to the first value in the enum.
    Is this normal behaviour?
     
    mhshpk, Aug 30, 2007
    #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. Stefan Mueller
    Replies:
    5
    Views:
    548
    Steven Saunderson
    Jul 10, 2006
  2. Chad
    Replies:
    2
    Views:
    308
    Charlie Gordon
    Sep 18, 2007
  3. John Joyce

    gets gets

    John Joyce, Mar 26, 2007, in forum: Ruby
    Replies:
    2
    Views:
    380
    John Joyce
    Mar 26, 2007
  4. John Joyce

    Return of gets gets

    John Joyce, Apr 23, 2007, in forum: Ruby
    Replies:
    0
    Views:
    214
    John Joyce
    Apr 23, 2007
  5. libsfan01
    Replies:
    5
    Views:
    271
    Jeff North
    Dec 20, 2006
Loading...

Share This Page