Copyright © 2008-2019 Paula DiTallo

Tag Cloud

Mono /C#

Provides coding samples for beginners and intermediate developers on the topic of C# and/or Mono.

C# Crash Course Series: Why Use the Enum Type?

What is an Enum Type? At first glance, a custom enumeration may look like the old C/C++ struct type, but they are not (we'll talk about those later, since struct types still exist). Think of enums as a way to define named constants that correspond to numerical values. The default value, if you chose NOT to assign a value to a constant name is "0". However many constants you create, the next one on the list will take the next number. If you start your first constant with a number like 1000, the next ......