I have created a very simple event logger. Is there a way to programmatically add line number, in this case "1587", to the text string that is being written?
This must be done with .NET 3.5 without PDB files.
I am not trying to find the line number during execution, but only the line number as shown in Visual Studio at the time of compilation. The thread shown above, "How do I get the current line number?" is not the answer to my question.