Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

two exceptions same catch c#

try
{
// Code
}
catch (Exception ex) when (ex is ArbitraryType1 || ex is ArbitraryType2)
{
  throw;
}
Source by csharp.today #
 
PREVIOUS NEXT
Tagged: #exceptions #catch
ADD COMMENT
Topic
Name
5+8 =