May 2010
Intermediate to advanced
1272 pages
61h 18m
English
IConvertible InterfaceObjects implementing the IConvertible interface expose a series of ToXXX methods exactly as the Convert class does so that such objects can easily be converted into another type. This example uses a structure instead of a class, for the sake of simplicity. Listing 13.4 shows how the IConvertible interface can be implemented.
Listing 13.4 Implementing the IConvertible Interface



The ThreePoint structure is simple; it just ...
Read now
Unlock full access