How can I create a dictionary of all values of an enum in c#? I wish to create a dictionary with an enum key by looping over all values of the enum, e.g.