R RA Jan 13, 2004 #1 Hi I need to be able at run time to get the code line - is there a way to do this? Thanks
N Nicholas Paldino [.NET/C# MVP] Jan 13, 2004 #2 RA, This can not be done, not unless you insert that information into the source code itself somewhere. Hope this helps.
RA, This can not be done, not unless you insert that information into the source code itself somewhere. Hope this helps.
M Mickey Williams Jan 13, 2004 #3 I need to be able at run time to get the code line - is there a way to do this? Click to expand... You can do this in builds that have debug information. Create an instance of StackTrace - each StackFrame will include a line number. I have an example in my sample chapter on the MSPress site. Watch for breaks in the URL: http://www.microsoft.com/MSPress/books/reviews/default.asp?id=5029&isbn=0-7356-1290-0
I need to be able at run time to get the code line - is there a way to do this? Click to expand... You can do this in builds that have debug information. Create an instance of StackTrace - each StackFrame will include a line number. I have an example in my sample chapter on the MSPress site. Watch for breaks in the URL: http://www.microsoft.com/MSPress/books/reviews/default.asp?id=5029&isbn=0-7356-1290-0