开发者

Using Moles with System.Reflection

开发者 https://www.devze.com 2023-02-02 01:22 出处:网络
I\'m trying to mole the method Assembly.GetEntryAssembly but it appears that only stub types are generated for the System.Reflection namespace i.e.

I'm trying to mole the method Assembly.GetEntryAssembly but it appears that only stub types are generated for the System.Reflection namespace i.e. System.Reflection.Moles.SAssembly is g开发者_运维百科enerated but not System.Reflection.Moles.MAssembly.

I checked and another namespace System.Resource has both the stub and runtime mole types e.g. both System.Resources.Moles.SIResourceWriter and System.Resources.Moles.MResourceWriter are available.

Any knowledge about this specific issue would be great.


It's not possible. See http://social.msdn.microsoft.com/Forums/en-US/pex/thread/c262d8f1-246e-4157-a7b4-f7ddeaf1890c/ for details.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号