Tagged: state machine

C# internals: iterators

In my last post, we got familiar with the internals of string switch statement in C#. Today, we are going to deeply understand another language feature – iterators.   Iterators in C# Despite the fact that iterators (using yield keyword)...

What lies beneath async/await in C# ?

Nowadays, asynchronous programming isn’t something unusual. We all know that when it comes to do some I/O operations or HTTP request, we should do it async. Why? There’re several reasons but two most important  are: Efficiency. In many cases, the...