System.Exception.Exception.GetBaseException C# (CSharp) 메소드

GetBaseException() 공개 메소드

public GetBaseException ( ) : Exception
리턴 Exception
		public virtual Exception GetBaseException ()
		{
			Exception inner = inner_exception;
				
			while (inner != null)
			{
				if (inner.InnerException != null)
					inner = inner.InnerException;
				else
					return inner;
			}

			return this;
		}