public static void Main(string[] args) // to display results in console window { int programChoice = Convert.ToInt16(args[3]); if (programChoice == 1) { var sequentialSearch = new Sequential(); sequentialSearch.GetTotalMatches(args); } if (programChoice == 2) { var threadedSearch = new Threaded(); threadedSearch.GetTotalMatches(args); } if (programChoice == 3) { var parallelSearch = new ParallelFor(); parallelSearch.GetTotalMatches(args); } }
public int GetTotalThreadedSearchMatches(string[] args) { var threadedSearch = new Threaded(); return(threadedSearch.GetTotalMatches(args)); }