Jump to content
Tuts 4 You
Sign in to follow this  

[.net]System stack trace patch

Recommended Posts



There is any way to insert new frame into system call stack?(without calling this method)

Edited by ilya01 (see edit history)
  • Like 1

Share this post

Link to post

in C# 5.0 


        static void Display(string input ,
                          [CallerMemberName] string methodname = null,
                          [CallerFilePath] string source = null,
                          [CallerLineNumber] int line_number = 0) {
            Console.Out.WriteLine("input = {0} \nmethodname = {1}  \nsource = {2} \nlinenumber = {3}", 
                                 input , methodname , source , line_number);



Edited by hakouabs (see edit history)
  • Like 2

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Create New...