Foundation.Server.Areas.HelpPage.HelpPageSampleGenerator.UnwrapException C# (CSharp) 메소드

UnwrapException() 정적인 개인적인 메소드

static private UnwrapException ( Exception exception ) : Exception
exception System.Exception
리턴 System.Exception
        internal static Exception UnwrapException(Exception exception)
        {
            AggregateException aggregateException = exception as AggregateException;
            if (aggregateException != null)
            {
                return aggregateException.Flatten().InnerException;
            }
            return exception;
        }