Friday, April 3, 2020

When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.

This is the magic behind .GetBaseException() as shown here:

catch (MagicException ex)
{
   throw ex.GetBaseException();
}

No comments:

Post a Comment