public class Tender
{
public string SubTenderType { get; set; }
public string TenderType { get; set; }
public decimal Amount { get; set; }
}
내가 이미 작성한 작업입니다. 하지만 interseing 내가 위에 쓰여진대로 수업에 XML deserialize 수 있습니까?
[Serializable]
public class Tender
{
[XmlAttribute("SubTenderType")]
public string SubTenderType { get; set; }
[XmlAttribute("TenderType")]
public string TenderType { get; set; }
[XmlElement("TenderTotal")]
public TenderTotal TenderTotal { get; set; }
}
[Serializable]
public class TenderTotal
{
[XmlElement("Amount")]
public decimal Amount { get; set; }
}
당신은 (다른 종류의 새로운 객체를 생성)
지도를 만들려면 유형을 매핑 할 첫 번째 유형 "입찰"을 다음 사용 autoMapper XML을 역 직렬화 할 수
[개체에 xml을 비 직렬화하는 방법] 가능한 복제본 (https://stackoverflow.com/questions/10518372/how-to-deserialize-xml-to-object) – OlegI
존재하는 답변이 많습니다. https://stackoverflow.com/questions/10518372/how-to-deserialize-xml-to-object https://stackoverflow.com/questions/364253/how-to-deserialize- xml-document – OlegI
@OlegI 중복되지 않습니다. – mi4man