Skip to content

Instantly share code, notes, and snippets.

@ajtrujillo
Created March 11, 2017 23:40
Show Gist options
  • Save ajtrujillo/45b50f8919558af607bab82e7932c9e0 to your computer and use it in GitHub Desktop.
Save ajtrujillo/45b50f8919558af607bab82e7932c9e0 to your computer and use it in GitHub Desktop.
TechJobsConsoleJobData FindbyValue
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;
}
@ajtrujillo
Copy link
Author

Can't figure why this isn't working like a charm. It's definitely the if statement, but why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment