在 C# 中,我有这个类:
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; }
}
我需要为分配的用户 ID 提供属性和值 type="integer"。我怎样才能做到这一点?