Enumerations
Create and use enums in C#.
We'll cover the following...
Declaration
In addition to primitive data types, it’s possible to create enumerations in C#. An enumeration represents a collection of logically related constants.
For example, we want our method to accept a day of the week as a parameter. We have several options:
- We could accept a
Access this course and 1400+ top-rated courses and projects.