Random
Source Code

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