annotation of enumerations

Aug 24, 2010 at 1:48 PM

I tried to annotate an enumeration like this:

<xs:simpleType name="PartnerFunctionID">
        <xs:restriction base="xs:string">
            <xs:enumeration value="AG">
                    <xs:documentation>some documentation</xs:documentation>
            <xs:enumeration value="Q1">
                    <xs:documentation>some other documentation</xs:documentation>

The result is only this:

[System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "2.0.50727.4016")]
    public enum PartnerFunctionID {
        /// <remarks/>
        /// <remarks/>

It works if I annotate an element so I guess this just has not been implemented. It would be a nice feature though. If I'm doing it wrong, please correct me.

regards and thanks in advance, E.