Contents tagged with C# 6.0

  • Exception Handling in C# 6.0

    Tags: .Net, C#, C# 6.0, Exception Handling

    In C# 6 the exception condition/ exception filters feature was added.try { // work } catch (Exception ex) when ( /* filter expression */ ) { //handle exception } The general rule is: … more