Value and Enum Types Technology Sample
Introduces developers to the .NET Framework value and enumerated types, and demonstrates how to create and work with them. The sample derives types from the ValueType and Enum classes. Each of these classes provides features that enable the developer to work with them easily.
For information about using the samples, see the following topics:
To build the sample using the command prompt
Open the Command Prompt window and navigate to one of the language-specific subdirectories under the ValueAndEnumTypes directory.
Type msbuild ValueAndEnumTypesCS.sln or msbuild ValueAndEnumTypesVB.sln, depending on your choice of programming language, at the command line.
To build the sample using Visual Studio
Open Windows Explorer and navigate to one of the language-specific subdirectories under the ValueAndEnumTypes directory.
Double-click the ValueAndEnumTypesCS.sln or ValueAndEnumTypesVB.sln file, depending on your choice of programming language, to open the file in Visual Studio.
On the Build menu, click Build Solution.
To run the sample
Navigate to the directory that contains the built executable file.
Type ValueEnum.exe from the command line.
This sample builds a console application. You must launch it from a console window to view its output.
.NET Framework Version: 2.0, 1.1, 1.0
The following bullets briefly describe the classes and technologies used by this sample.
Value and Reference Types
Enum All enumerated types are derived from Enum, which implements ToString() and Parse() among other helper methods used in this sample.
Review comments in the source code files for more information on value and enumerated types.