0
在C#,我有此類:如何將XML屬性和值添加到[XMLElement]類屬性?
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的屬性和值的類型=「整數」。我怎樣才能做到這一點?