Thursday, September 6, 2018

suck out the InnerException in C#

catch (Exception ex)
{
   string x = "";
   x = x + ex.Message + " | ";
   if (ex.InnerException != null) x = x + ex.InnerException.Message;

No comments:

Post a Comment