System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw C# (CSharp) Method

Throw() public method

public Throw ( ) : void
return void
		public void Throw ()
		{
			exception.CaptureTrace ();

			throw exception;
		}
	}

Usage Example

        public void Throw(ExceptionDispatchInfo exceptionInfo)
        {
            Debug.Assert(exceptionInfo != null);

            Thread thread = new Thread(() =>
            {
                exceptionInfo.Throw();
            });
            thread.Start();
            thread.Join();
        }
All Usage Examples Of System.Runtime.ExceptionServices.ExceptionDispatchInfo::Throw