I have a dll which I disassemble in Reflector, I then generate a class. The class contains code which does not compile in Visual Studio.
I take it it's leagl IL code, but how can I generate the higher level c# from this.
Seems yield and IEnumerator generate things like <>1__state;
in the IL which will not compile.
Does anybody know how I can generate a class from reflector that contains this sort of IL?
Is there a reflector addin that will solves this?
private sealed class <Rule_Document>d__0 : IEnumerable<HtmlTag>, IEnumerable, IEnumerator<HtmlTag>, IEnumerator, IDisposable
{
private int <>1__state;
private HtmlTag <>2__current;
public HtmlParser <>4__this;
private int <>l__initialThreadId;
public HtmlTag <htmlTag>5__1;