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 ?
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.