Skip to content

Instantly share code, notes, and snippets.

@nicholascloud
Forked from ajtrujillo/JobData.cs
Last active March 12, 2017 00:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholascloud/19a190f97a072e53f56825a747598caa to your computer and use it in GitHub Desktop.
Save nicholascloud/19a190f97a072e53f56825a747598caa 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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment