< PrivateImplementationDetails> {GUID}。方法$$ ****的代码文件。不编译! [英] <PrivateImplementationDetails>{GUID}.method$$**** in code file. Doesn't compile !

查看:586
本文介绍了< PrivateImplementationDetails> {GUID}。方法$$ ****的代码文件。不编译!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们必须从另一个项目的.NET程序集,从反射器生成的文件已。对于一个片断的方法之一哪里。

We have a .NET assembly from another project where in one of the generated files from Reflector has .. snippet for a method.

现在VS 2010的C#编译器会引发编译错误的种种意想不到的$$。右括号等。

Now VS 2010 c# compiler throws all sorts of compile errors $$ unexpected. close braces etc.

在ILDASM我看到这种方法与许多人提到一起,但在生成的代码中,我发现只有这些编译器cgenerated方法,在未来的1。

In ILDASM i see this method along with many others mentioned, but in generated code i find only 1 of these compiler-cgenerated methods coming in.

如何去编译?

推荐答案

这些通常是由<创建code>静态只读阵列。你不会被编译它们。同时反射是显着马车重建绝不是那么简单的代码。

These are normally created by static readonly arrays. You will not be compiling them. Also Reflector is notably buggy recreating anything but trivial code.

我建议你原来的源代码。

I suggest you get the original source code.

这篇关于&LT; PrivateImplementationDetails&GT; {GUID}。方法$$ ****的代码文件。不编译!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆