using System;
namespace MyStuff.MoreStuff
{
public static class ExceptionExtensions
{
public static Exception GetOriginalException(this Exception ex)
{
if (ex.InnerException == null)
{
return ex;
}
return ex.InnerException.GetOriginalException();
}
}
}
No comments:
Post a Comment