C# Get the root InnerException

Date: 2018-06-27

Source: MB

try
{

}
catch (Exception ex)
{
	while (ex.InnerException != null) ex = ex.InnerException;
	throw ex;
}

 

11510cookie-checkC# Get the root InnerException