using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
Hashtable hashtable = new Hashtable();
hashtable[1] = "FETAvgas";
hashtable[2] = "GETAvgas";
hashtable[13] = "PETAvgas";
hashtable[3] = "FET1Avgas";
foreach (DictionaryEntry entry in hashtable)
{
Console.WriteLine("{0}, {1}", entry.Key, entry.Value);
}
var smallJobs = hashtable.Values.Cast().Where(x => x.StartsWith("FET"));
List Result = smallJobs.ToList();
Console.WriteLine("Results Starts with FET:");
foreach(string items in Result)
{
Console.WriteLine("{0}", items);
}
Console.ReadLine();
}
}
}