C# Tip: Exception handling with WHEN clause
From C# 6 on, you can use the when keyword to specify a condition before handling an exception.
Consider this - pretty useless, I have to admit - type of exception:
public class RandomException : System.Exception
{
public int Value { get; }
p...
code4it.hashnode.dev2 min read