// constructor - takes a course dictionary file name private Search(string courseDictionary) { this.spelling = new Spelling(courseDictionary); this.courseDictionary = courseDictionary; this.lastSearchResults = new SearchResults(); this.options = new AdvancedOptions(); }
public SearchResults lastSearchResults; // Stores the search results after using searchForQuery() // constructor - uses default course dictionary filename private Search() { this.spelling = new Spelling("course_dictionary.txt"); this.courseDictionary = "course_dictionary.txt"; this.lastSearchResults = new SearchResults(); this.options = new AdvancedOptions(); }