XML to C# Class Question

前端 未结 7 1313
走了就别回头了
走了就别回头了 2020-12-17 01:07

Can someone please help me, I have this xml snippet



  123         


        
7条回答
  •  难免孤独
    2020-12-17 01:34

    Using .NET 3.5:

    [XmlRoot]
    public class EmailConfiguration
    {
        [XmlElement]
        public string DataBoxID { get; set; }
    
        [XmlElement]
        public DefaultSendToAddressCollectionClass DefaultSendToAddressCollection { get; set; }
    }
    
    public class DefaultSendToAddressCollectionClass
    {
        [XmlElement]
        public string[] EmailAddress { get; set; }
    }
    

提交回复
热议问题