using System;
using System.Collections.Generic;
public enum Enum1
{
Value1
}
public enum Enum2
Value2
public class Program
public static void Main()
var dict = new Dictionary<string, Enum>
{"key1", Enum1.Value1 },
{"key2", Enum2.Value2 }
};
Console.WriteLine(dict["key2"]);