May 2010
Intermediate to advanced
1272 pages
61h 18m
English
IFormattable InterfaceThe IFormattable interface enables implementing a new overload of the ToString method to provide customized string formatting with deep control over the process, also defining custom qualifiers. Listing 13.5 shows how you can implement the IFormattable interface.
Listing 13.5 Implementing the IFormattable Interface


Listing 13.5 shows a particular implementation of the Person class, which exposes the FirstName, LastName, and Email properties. It implements the IFormattable interface that offers a new overload of the
Read now
Unlock full access