Content Obsolete

This content is no longer current. Our recommendation for up to date content:

Enumerations and the switch Decision Statement - 19

Download this episode

Download Video

Download captions

Download Captions


Classes can contain many different types of information, not just Properties and Methods. In this lesson we demonstrate the use of Enumerations because in the .NET Framework Class Library, properties can often be set only to a predetermined subset of possible values. To illustrate this point we create our own custom enumeration, then utilize it in a simple application that demonstrates a third Decision statement, the switch. We then demonstrate some Visual Studio IDE magic that automatically implements code blocks for all possible enumeration values.

Enumerations and the switch Decision Statement


C#, Visual Studio



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.