In boo I can create a dictionary to map objects to keywords. For example I can create a dictionary like the one below to groups lists of employees.
employees = {'engineers':['dave', 'charlie', 'michael', 'doug'], 'drafters':['gary', 'fredrico', 'jim', 'rich'], 'salesmen':['jim', 'eric', 'george', 'kerry']}
for user in employee['drafters']:
print user
Returns:
gary
fredrico
jim
rich
For brevity sake I mapped them to lists of strings, but I could have used class instances or whatever. Is there an easy way to do something like this in C#?