首页 > 解决方案 > 在运行时访问 DisplayClass 对象的属性

问题描述

标签: c#dynamicreflectionanonymous-functionanonymous-types

解决方案


The compiler generates closure types with fields rather than properties, so id is a field. Use tgt.GetType().GetFields() instead.


推荐阅读