public void Throw () { exception.CaptureTrace (); throw exception; } }
public void Throw(ExceptionDispatchInfo exceptionInfo) { Debug.Assert(exceptionInfo != null); Thread thread = new Thread(() => { exceptionInfo.Throw(); }); thread.Start(); thread.Join(); }