May 2010
Intermediate to advanced
1272 pages
61h 18m
English
Enumerations are another kind of value types available in the .NET Framework. They represent a group of constants enclosed within an Enum..End Enum code block. An enumeration derives from System.Enum, which derives from System.ValueType. The following is an example of enumeration:

By default, enumerations are sets of integer values. The preceding code defines a Sports enumeration of type Integer, which stores a set of integer constants. The Visual Basic compiler can also automatically assign an integer value to each member within an enumeration, starting from zero as indicated in comments. You can eventually manually assign custom ...
Read now
Unlock full access