我期待在偷别人的C#代码和公共枚举之前有下面几行:什么[System.SerializableAttribute()做
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.1")]
[System.SerializableAttribute()]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
有人可以用简单的英语解释这些线是什么是做。
这表明一个类可以被序列化:http://msdn.microsoft.com/en-us/library/system.serializableattribute.aspx – Steven
是的,已经遇到了那个页面 - 它对我没有多大意义 - 我是新来的C# – Graham
这不是别人的elses代码,这是生成的代码,由xsd.exe生成。 – Steven