April 2003
Intermediate to advanced
1040 pages
25h 22m
English
The TraceSwitch and BooleanSwitch classes are two classes that provide trace switch functionality. If you need different trace levels or different implementations of the Switch class, you can inherit from the Switch class to implement your own custom trace switches.
In this exercise, you will learn how to create a custom switch. You will create a FactorialSwitch class that can be set with four values (Negative (-1), Off (0), Overflow (1), and Both (2)) for the Factorial Calculator form. The class will have two properties: Negative and Overflow.
Estimated time: 25 minutes.
1. | Launch Visual Studio .NET. Select File, New, Blank Solution, and name the new project 320C09Exercises ... |
Read now
Unlock full access