Stack frames : StackTrace : Development C# Examples


C# Examples » Development » StackTrace »

 

Stack frames









    
using  System;
using  System.Collections.Generic;
using  System.Diagnostics;
using  System.Runtime.CompilerServices;
using  System.Security.Principal;

public  class  MainClass
{
        internal  static  void  A()
        {
                B(10,  50);
        }

        internal  static  void  B(int  x,  int  y)
        {
                C("Hello",  x  *  y);
        }

        internal  static  void  C(string  label,  int  num)
        {
                StackTrace  trace  =  new  StackTrace();
                Console.WriteLine(trace.ToString());
        }

        public  static  void  Main()
        {
                A();
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» StackTrace