Enumeration values lost...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • abhishekpethia@gmail.com

    Enumeration values lost...

    I have ..

    <Serializable() > _
    Public Enum EnumType1
    <Xml.Serializat ion.XmlEnum("En um1")> Enum1= 112
    <Xml.Serializat ion.XmlEnum("En um2")> Enum2= 212
    End Enum

    This enumeration type is used as a parameter in a webmethod, like

    <WebMethod()> _
    Public Function AssignProductio nLine(ByVal var As EnumType1) As
    boolean
    .........


    But, when I access this method from a CE client, the value for
    EnumType1.Enum1 is shown as 0 and EnumType1.Enum1 is shown as 1.
    Although, I would think the value for EnumType1.Enum1 should be 112 and
    the value for EnumType1.Enum2 should be 212.

    How can I make sure that the EnumType1.Enum1 be 112 and not 0?

    Any suggestions or workaround would be appreciated.
    Thanks.

Working...