后来想到了.Net的 反射 (Reflection) ,于是有了一个 思路: 写入XML文件时,通过反射获取数据对象的公有字段信息(FieldInfo)和字段值,根据类名和字段名自动构造XML节点结构,并存储对应的值。
基于20个网页-相关网页
在本章的后面,我们将看到如何使用字段信息。
Later in this chapter, we will see how to use this information in fields.
注意:注意:在有些情况下,UI 并不会即时刷新新的字段信息。
Note:Note: In some situations, the UI does not immediately refresh with the new column information.
清单中也包含了用来保存收集的字段信息的fieldinfo类。
It also includes the FieldInfo class used to hold collected field information.
应用推荐