csharp get innermost exception
Code Example - csharp get innermost exception
while (e.InnerException != null) e = e.InnerException;
while (e.InnerException != null) e = e.InnerException;