P 
		
								
				
				
			
		Peter Larsen [CPH]
Hi,
How do i get the line number of the calling method in debug-mode.
This is what i do:
StackTrace st = new StackTrace();
string s = string.Format("Method:{0}, line:{1}",
st.GetFrame(1).GetMethod(), "??");
This method gets the callers function name, but i don't know how to get the
line number.
Is it possible to get the same line number as shown in Visual Studio ??
Thank you in advance.
BR
Peter
				
			How do i get the line number of the calling method in debug-mode.
This is what i do:
StackTrace st = new StackTrace();
string s = string.Format("Method:{0}, line:{1}",
st.GetFrame(1).GetMethod(), "??");
This method gets the callers function name, but i don't know how to get the
line number.
Is it possible to get the same line number as shown in Visual Studio ??
Thank you in advance.
BR
Peter
