1
Vote

XSDObjectGen produces incorrect C# code for DATAREP_TYPES

description

Back in March 2009, the tool produced correct representation of DATAREP_TYPES:
 
[Serializable]
public enum DATAREP_TYPES
{
    [XmlEnum(Name="Full")] Full,
    [XmlEnum(Name="Partial")] Partial,
    [XmlEnum(Name="ReadOnly")] @ReadOnly,
    [XmlEnum(Name="Removed")] Removed
}
 
Now it produces the code that doesn't compile:
 
[Serializable]
public enum DATAREP_TYPES : int
{
    [XmlEnum(Name="Full")] Full = Full,
    [XmlEnum(Name="Partial")] Partial = Partial,
    [XmlEnum(Name="ReadOnly")] @ReadOnly = ReadOnly,
    [XmlEnum(Name="Removed")] Removed = Removed
}

comments