If there is an OutOfMemoryException in the try block of the code below, is it ever possible for the is
checks themselves to throw another OutOfMemoryException? In other words do the is
checks allocate memory?
public void Main()
{
try
{
Execute();
}
catch (Exception e)
{
if (e is OutOfMemoryException || e is ThreadAbortException)
{
throw;
}
else
{
Log(e);
throw;
}
}
}