enum problem

  • Thread starter Thread starter Pohihihi
  • Start date Start date
P

Pohihihi

enum DaysOfWeek
{ Sunday = 1, Monday = 2, Tuesday = 3, Wednesday = 4, Thursday = 5, Friday =
6, Saturday = 7 }



Enum above gives 0 for sunday and rest are one digit below then what is
assigned. What am I doing wrong?



Thanks.
 
Just one thing on this if you are using Webservices.

I found when using enums with Webservices, that they do get renumbered when
used on the client (something to do with the proxy object(s)). So

Enum Test {One = 1, Two = 2, Six = 6}

declared in the webservice on the webserver, becomes:

Enum Test {One = 0, Two = 1, Six = 3}

On the client that has created a proxy object to the webservice.
 
Hi,

Yes, it does :)

In case you want to use yours all you have to do is using the fullname :
MyNameSpace.DaysOfWeek


cheers,
 
Thx for the additional info, as I don't do web related work I did not know
this, but good to know now. Thx agian.
 
Back
Top