C#

Let’s say I have this code (C#): void SomeFunc() { HandlerOne(); HandlerTwo(); } async void HandlerOne() { DoX(); await DoYAsync(); DoZ(); } In this case HandlerOne() will return to the […]

In C# code you can write something like decimal d = 1e-10m; However, decimal.Parse(“1e-10”) throws an exception: “System.FormatException: Input string was not in a correct format”. Not cool.

Time and time again I am burnt by the same bug. There are two kinds of enumerables in .NET: enumerators and generators. Enumerators go over some collection and return its […]

Posted a larger and more structured article on the (somewhat surprising) capture rules for outer variables inside C# lambdas. http://www.ikriv.com/en/prog/info/dotnet/Lambdas.html