Mariusz Krzanowski blog

Tag: C#

Is Liskov Substitiuton Principle violated by async pattern?

The async/await keywords change methods behavior. When async/await pattern is used, the method never throws an exception. The method always returns a task which can be eventually Faulted, Canceled or RunToCompletion. So why do I think about violating Liskov Substitution Principle?

Exception filters to catch first thrown exception


This post is inspired by the book ‘C# in depth’ by Jon Skeet and presentation ‘Internals of Exceptions’ made by Adam Furmanek. The topic I want to focus on is stack unwinding when an exception is caught.

Powered by WordPress & Theme by Anders Norén