Iterator blocks in C# 2: auto-generated state machines

csharp , .net , iterators , yield , state machine
This is a comment thread discussing Iterator blocks in C# 2: auto-generated state machines
  • 11 years ago

    Hi Jon, Thanks for the article. I am facing a problem and would be great if you could guide me. I have a certain dll file which I converted into C# code using Reflector. After having generated my source code, when I try to build the cs project I get build errors as expected (due to illegal C# syntax as mentioned by you), due to the presence of iterator blocks. Is there any way that this piece of code can be converted into C# compatible form? I need to debug through the code that has been produced by the Reflector.

    Thanks in advance, Sulaksha

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only two kinds of languages: the ones people complain about and the ones nobody uses” - Bjarne Stroustrup