Created
March 11, 2017 23:40
-
-
Save ajtrujillo/45b50f8919558af607bab82e7932c9e0 to your computer and use it in GitHub Desktop.
TechJobsConsoleJobData FindbyValue
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
public static List<Dictionary<string, string>> FindbyValue(string searchTerm) | |
{ | |
LoadData(); | |
List<Dictionary<string, string>> jobs = new List<Dictionary<string, string>>(); | |
foreach (Dictionary<string, string> row in AllJobs) | |
if (row.ContainsValue(searchTerm)) | |
{ | |
jobs.Add(row); | |
} | |
return jobs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't figure why this isn't working like a charm. It's definitely the if statement, but why?