Javatpoint Logo
Javatpoint Logo

F# Enumerations

Enumerations popularly known as enums. It is a combination of label and value pair. Labels are assigned to a subset of the values. You can use them in place of literals to make code more readable and maintainable.


An enumeration is much like union except that it allows us to specify values.

F# Enumeration Example

You can access enums either by using label name or integer value. Let's see an example.


Next TopicF# Reference Cells

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA