例如我有一流的序列化
[Serializable]
class Person
{
[XmlAttribute("name")]
string Name {get;set;}
}
我需要必需的name属性。如何做到这一点的。NET?
I need to make Name attribute required. How to do this in .NET?
首先, [Serializable接口]
不使用XML序列化。
First of all, [Serializable]
is not used by the XML Serializer.
其次,就没有办法使它所需
Second, there is no way to make it required.
上一篇:Android的,我想设置监听器无线监听状态,谁能帮助我与我的code我的、我想、监听器、谁能
下一篇:将Android Java支持的lambda EX pression在Java 8?Java、Android、lambda、pression