private void GetFilter(HtmlDocument doc) { if (this.filterOn == null) { Console.Write("Do you wish to enable the match filter? (Y/n, S to configure match filters): "); string filterInput = Console.ReadLine().Trim().ToLower(); filter = new MatchFilter(); if (filterInput == "y" || filterInput == "yes" || filterInput == "") { this.filterOn = true; } else if (filterInput == "n" || filterInput == "no") { this.filterOn = false; } else if (filterInput == "s") { Etc.SetMatchFilters(); Get(doc); return; } else { Console.Write("Only y/yes and n/no are allowed. Blanks will be counted as yeses."); Get(doc); return; } } }