for debugging purpose, you can look intoSystem.Diagnostics.StackFrame's GetFileName /GetFileLineNumber methods http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsStackFrameClassGetFileLineNumberTopic.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemDiagnosticsStackFrameClassGetFileLineNumberTopic.asp