<PrivateImplementationDetails>{GUID}.method$$**** in code file. Doesn't compile !

Munish Goyal picture Munish Goyal · Dec 15, 2010 · Viewed 7.9k times · Source

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

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

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.

How to go about compiling ?

Answer

leppie picture leppie · Dec 15, 2010

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.