Skip to content

Instantly share code, notes, and snippets.

@ajtrujillo
ajtrujillo / JobData.cs
Created March 11, 2017 23:40
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))
{
@ajtrujillo
ajtrujillo / JobData.cs
Created March 13, 2017 00:02
FindbyValue Solution (TechJobsConsole)
/*Enable user Search by any value in the table, without duplicates*/
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)
foreach(KeyValuePair<string,string> kvp in row)
{