Error message Invalid token

Sep 23, 2010 at 12:02 PM
my scheme includes the line
<xs:element name="callStateMessage" type="CallStateMessage"/>

If I select the option GenerateXmlAttributes I get an error message in the created class "Invalid token 'typeof' in class, struct, or interface member declaration" on the line listed below and I do not know how to fix that, please help.

All the lines with typeof have an error

public partial class ImmMessage : EntityBase<ImmMessage> {
        
    [System.Xml.Serialization.XmlElementAttribute("agentStateMessage"typeof(AgentStatusMessage))]
    [System.Xml.Serialization.XmlElementAttribute("callStateMessage"typeof(CallStateMessage))]
    [System.Xml.Serialization.XmlElementAttribute("devicePresenceMessage"typeof(DevicePresenceMessage))]
    [System.Runtime.Serialization.DataMemberAttribute()]

--
Regards
Avraham Tuvy