This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var searchWord = "TextToSearchFor"; | |
var searchPattern = "*.js"; | |
var sourceFolder = @"C:\_Dev\TFS\MyProject\Source\"; | |
var defaultProgram = @"C:\Program Files (x86)\Notepad++\notepad++.exe"; | |
List<string> allFiles = new List<string>(); | |
var fileCount = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
RunDirectly(); | |
RunIndirectly(); | |
var runs = 1000000; | |
var sw = new Stopwatch(); | |
sw.Start(); | |
for (int i = 0; i < runs; i++) |