摘要:
下面的代码是利用反射获取类或结构的Field和Property,其中,需要注意的是,当使用反射为结构的Field设置值时,不能使用SetValue方法,而是使用SetValueDirect(),FieldInfo.SetValue (Not work with Structure),具体如下:using System;using System.Collections.Generic;using S... 阅读全文
posted @ 2010-10-25 22:29
-Anny-
阅读(1227)
评论(0)
推荐(0)
浙公网安备 33010602011771号