Can you direct the serialization process to correctly convert enum values?
Example:
public enum DiscreteOverlap ping
{
none = -1,
Ok = 0,
StillOk = 0,
Bad = -99
}
CookBook recipe:
1. Create a web service that references this definition - Say return an enum
value from a web method.
2. Write a client app that references the web service (using the wsdl
generated when adding a web reference).
3. Call a web method, get the enum value and cast it to an int. You would
want to have the discrete values as defined in your enum.
My problem: In the above example I would get Ok == 1, StillOk == 2, Bad ==
3.
Thank you, Gad.