Due to testing and time measurement, I have to write some kind of log in an existing C # Winforms project.
I want to minimize changes to the application, so I limit my question to replacing text by counting numbers:
I want to pass the line:
Log.WriteLine(position)
many times in the code, and then replace the "position" with numbers from 1 to nin turn.
I cannot use the counter in this case due to many cycles, I am not getting the correct position.
source
share