Пример #1
0
    private static MemberInfo ForValue(BuildingType bt)
    {
        Type type = bt.GetType(); // get specific enum type

        return(type.GetField(Enum.GetName(type, bt)));
    }