System.Reflection.IntrospectionExtensions for .NET 4.0?
本文关键字:NET for Reflection IntrospectionExtensions System | 更新日期: 2023-09-27 17:49:45
是否有可能在。net 4.0中获得IntrospectionExtensions ?它在。net 4.5中默认是可用的,但由于各种原因,我想在。net 4.0中使用它。
只需将Mono源代码添加到您的项目中并编译它,https://github.com/mono/mono/blob/mono-4.0.2.4/mcs/class/corlib/System.Reflection/IntrospectionExtensions.cs L40
确保在迁移到。net 4.5及以上版本时删除它。