Csharp/C Sharp by API/System.Diagnostics/StackTrace — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 15:13, 26 мая 2010
new StackTrace
<source lang="csharp">
using System; using System.Runtime.InteropServices; using System.Diagnostics; public sealed class MainClass {
static void Main() { StackTrace creationStackTrace = new StackTrace(1, true); for( int i = 0;i < creationStackTrace.FrameCount; ++i ) { StackFrame frame = creationStackTrace.GetFrame(i); Console.WriteLine( " {0}", frame.ToString() ); } }
}
</source>