Top "Enums" questions

A data type consisting of a set of named values called elements, members or enumerators of the type.

Why Python 3.6.1 throws AttributeError: module 'enum' has no attribute 'IntFlag'?

I just installed Python 3.6.1 for MacOS X When I attempt to run the Console(or run anything with Python3), this …

python python-3.x enums python-3.6 attributeerror
How to convert from System.Enum to base integer?

I'd like to create a generic method for converting any System.Enum derived type to its corresponding integer value, without …

c# enums type-conversion
Check if enum exists in Java

Is there anyway to check if an enum exists by comparing it to a given string? I can't seem to …

java string enums compare
What is the KeyCode for ","(comma) and "."(dot) in .NET?

In my KeyDown EventHandler I need to know what is the KeyCode for "," and ".". I can't find them thats why …

c# .net vb.net enums keycode
Getting enum associated with int value

Previously, I had my LegNo enums defined simply as: NO_LEG, LEG_ONE, LEG_TWO and by calling return LegNo.…

java enums
Methods inside enum in C#

In Java, it's possible to have methods inside an enum. Is there such possibility in C# or is it just …

c# enums enumeration
Android: How to put an Enum in a Bundle?

How do you add an Enum object to an Android Bundle?

android enums android-bundle
How to get an array of all enum values in C#?

I have an enum that I'd like to display all possible values of. Is there a way to get an …

c# enums
Can a C++ enum class have methods?

I have an enum class with two values, and I want to create a method which receives a value and …

c++ methods enums
How do you pass multiple enum values in C#?

Sometimes when reading others' C# code I see a method that will accept multiple enum values in a single parameter. …

c# enums