Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@@ -45,6 +45,15 @@ namespace System.Diagnostics {
[MonoTODO ("Serialized objects are not compatible with .NET")]
public class StackTrace {
// TraceFormat is Used to specify options for how the
// string-representation of a StackTrace should be generated.
internal enum TraceFormat
{
Normal,
TrailingNewLine, // include a trailing new line character
NoResourceLookup // to prevent infinite resource recusion
}
public const int METHODS_TO_SKIP = 0;
private StackFrame[] frames;
@@ -148,9 +157,7 @@ namespace System.Diagnostics {
}
[MonoLimitation ("Not possible to create StackTraces from other threads")]
#if NET_4_5
[Obsolete]
#endif
public StackTrace (Thread targetThread, bool needFileInfo)
{
if (targetThread == Thread.CurrentThread){
@@ -234,5 +241,11 @@ namespace System.Diagnostics {
}
return sb.ToString ();
}
internal String ToString (TraceFormat traceFormat)
{
// TODO:
return ToString ();
}
}
}