Skip to content

Instantly share code, notes, and snippets.

@nicholascloud
Forked from ajtrujillo/JobData.cs
Created March 12, 2017 00:22
Show Gist options
  • Save nicholascloud/03df074c0ff5ffb5c7305516cdd3d3fe to your computer and use it in GitHub Desktop.
Save nicholascloud/03df074c0ff5ffb5c7305516cdd3d3fe 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