摘要:
System.Xml.Serialization.XmlSerializer反序列化类型包含集合自动属性运行在.NET Framework 4.0下则会抛出如下异常信息:System.InvalidOperationException: Unable to generate a temporary class (result=1).error CS0200: Property or indexer 'SomeClass.CollectionProperty' cannot be assigned to — it is read only.出于对集合属性Classes的set保护 阅读全文