System.Reflection.IntrospectionExtensions for .NET 4.0?

被刻印的时光 ゝ 提交于 2019-12-25 01:54:00

问题


Is it possible to get IntrospectionExtensions for .NET 4.0. It is available by default in .NET 4.5, but for various reasons, I would like to use it in .NET 4.0.


回答1:


Simply add the Mono source code to your project and compile it, https://github.com/mono/mono/blob/mono-4.0.2.4/mcs/class/corlib/System.Reflection/IntrospectionExtensions.cs#L40

Make sure you remove it once migrating to .NET 4.5 and above.



来源:https://stackoverflow.com/questions/22366976/system-reflection-introspectionextensions-for-net-4-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!