Replace text in code with counting numbers
- by Gpx
Hi,
due to testing and time measuring i have to write some kind of log into existing c# winforms code in Visual Studio 2010.
I want to hold the changes and the work very small so my question is about replacing text in my call by counting numbers.
Lets say i want to past a line like
Log.WriteLine(position)
many times in the code and then replace "position" with numbers starting from 1 to n in on turn.
I cant use a counter in this case because of many loops i don´t get the right position.
Thanks for any suggestions,
Gpx