Exception Handling

Exception filtering in C# 6.0

Those of you who read my previous post on What's new in C# 6.0 may have noticed that I forget to discuss an important feature of C# 6.0. Well that is exception filtering. I thought about updating the previous post with this feature explained but again felt that it deserves a post of its own. So let's start. Exception Filtering Exception filtering is nothing but some condition attached to the catch block. Execution of the catch block depends on this condition. Let me give you a simple example.…

Keep reading