ServiceStack.LicenseUtils.GetInnerMostException C# (CSharp) Метод

GetInnerMostException() публичный статический Метод

public static GetInnerMostException ( this ex ) : Exception
ex this
Результат System.Exception
        public static Exception GetInnerMostException(this Exception ex)
        {
            //Extract true exception from static intializers (e.g. LicenseException)
            while (ex.InnerException != null)
            {
                ex = ex.InnerException;
            }
            return ex;
        }
    }