Skip to main content

Enums

Enumerated type
In computer programming, an enumerated type is a data type consisting of a set of named values called elements, members, enumeration, or enumerators of the type. The enumerator names are usually identifiers that behave as constants in the language. An enumerated type can be seen as a degenerate tagged union of unit type.
Enums in c#

enum Direction {

Up,

Down,

Left,

Right
}
by Kratos_RoG September 3, 2022
mugGet the Enums mug.

Share this definition

Sign in to vote

We'll email you a link to sign in instantly.

Or

Check your email

We sent a link to

Open your email