14 lines
263 B
C#
14 lines
263 B
C#
using System;
|
|
|
|
namespace HT.Cloud.Code
|
|
{
|
|
public static partial class Extensions
|
|
{
|
|
public static Exception GetOriginalException(this Exception ex)
|
|
{
|
|
if (ex.InnerException == null) return ex;
|
|
|
|
return ex.InnerException.GetOriginalException();
|
|
}
|
|
}
|
|
} |