摘要:
今天有个网友问如何历遍对象的所有公共属性,并且生成XML。采用序列化方式的话比较简单,我写个手工解析的例子,这样能让初学者更加理解也比较灵活,记录一下吧或许会有人用到。 对象模型: public class Master { public string Description { get; set; 阅读全文
摘要:
This uses the FastMember's meta-programming API for maximum performance. If you want to restrict it to particular members (or enforce the order), then 阅读全文