XML to C# Class Question

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

Can someone please help me, I have this xml snippet



  123         


        
7条回答
  •  既然无缘
    2020-12-17 01:27

    XML serialization requires attributes. The way I've usually done it is to flag the class itself with [Serializable] and [XmlRoot], then mark up public properties with either [XmlElement], [XmlAttribute] or [NoSerialize].

    What specific problem are you having?

提交回复
热议问题