阅读背景:

如何使用类名作为根元素序列化C#类

来源:互联网 

I have the following C# class

我有以下C#类

[XmlRoot("Customer")]
public class MyClass
{
    [XmlElement("CustId")]
    public int Id {get;set;}

    [XmlElement("CustName")]
    public string Name {get;set;}
}
[XmlR



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: