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;
}
 
PREVIOUS NEXT
Tagged: #exceptions #catch
ADD COMMENT
Topic
Name
9+5 =