Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System/Exception.cs')
-rw-r--r--mcs/class/corlib/System/Exception.cs20
1 files changed, 1 insertions, 19 deletions
diff --git a/mcs/class/corlib/System/Exception.cs b/mcs/class/corlib/System/Exception.cs
index 7670ce338e6..19833f0f854 100644
--- a/mcs/class/corlib/System/Exception.cs
+++ b/mcs/class/corlib/System/Exception.cs
@@ -199,26 +199,8 @@ namespace System
/* Not thrown yet */
return null;
- StringBuilder sb = new StringBuilder ();
-
- // Add traces captured using ExceptionDispatchInfo
- if (captured_traces != null) {
- foreach (var t in captured_traces) {
- if (!t.AddFrames (sb, true))
- continue;
-
- sb.Append (Environment.NewLine);
- sb.Append ("--- End of stack trace from previous location where exception was thrown ---");
- sb.Append (Environment.NewLine);
- }
- }
-
StackTrace st = new StackTrace (this, 0, true, true);
- st.AddFrames (sb, true);
-
- stack_trace = sb.ToString ();
-
- return stack_trace;
+ return stack_trace = st.ToString ();
}
}