How to add XML Attribute and value to [XMLElement] class property?

Epwyhhgqy

New Member
In C#, I have this class:\[code\] public class LightHouseTicketForXML { [XmlElement( "assigned-user-id")] public string assignedUserId { get; set; } [XmlElement( "body" )] public string body { get; set; } [XmlElement( "milestone-id" )] public string milestoneId { get; set; } [XmlElement( "state" )] public string state { get; set; } [XmlElement( "title" )] public string title { get; set; } }\[/code\]I need to give the assigned-user-id the attribute and value type="integer". How can I do this?
 
Back
Top