I have defined an enumeration thus:
Public Enum CollectionDayOfWeek
NoCollectionDay = -1
Sunday = DayOfWeek.Sunday
Monday = DayOfWeek.Monday
Tuesday = DayOfWeek.Tuesday
Wednesday = DayOfWeek.Wednesday
Thursday = DayOfWeek.Thursday
Friday = DayOfWeek.Friday
Saturday = DayOfWeek.Saturday
I have a web service which returns a value of this type.
Now when I run wsdl to create my proxy, the enumeration loses its
initializers so that NoCollectionDay = 0, Sunday = 1, etc.
Can I do anything to correct this behaviour? Or am I better off not setting
initializers on my enumerations when writing web services?