|
May 8, 2002 Defining the Enumeration Data Type Tips: May 2002
Yehuda Shiran, Ph.D.
|
|
Symbolic names you declare within the enum statement are numbered sequentially, starting at zero. In the following example:
the enumerated values are:
You can declare the underlying type of enumerated variable to be any integral data type, i.e. one of the following: int, short, long, byte, uint, ushort, ulong, or sbyte.
By default, the underlying data type of an enumeration is
To learn more on JScript .NET, go to Column 108, JScript .NET, Part II: Major Features.
People who read this tip also read these tips: Look for similar tips by subject: |