专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅
如果我有一个拥有FirstName的属性的类Perso,我能通过如下方式访问: Person.FirstName=\"Mike\"; 能通过下面的方式来访问吗 Person[\"FirstName\"]=\"Mike\"; 通过反射类来实现,但是这种方法性能比较低,,www. 。 publciclassYourClass ...{ //... publicobjectthis[stringname] ...{ get ...{ PropertyInfoinfo=this.PropertyInfoByName(name); returninfo.GetValue(thi [阅读全文] [PDF]
1 共1条 分1页