Answers for "more than one try catch exception in c#"

C#
0

catch multiple exception c#

catch (Exception ex)            
{                
    if (ex is FormatException || ex is OverflowException)
    {
        WebId = Guid.Empty;
        return;
    }

    throw;
}
Posted by: Guest on November-21-2020

C# Answers by Framework

Browse Popular Code Answers by Language