July 2015
Intermediate to advanced
1300 pages
87h 27m
English
The 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
Imports System.GlobalizationPublic Class Person Implements IFormattable Public Property FirstName As String Public Property LastName As String Public Property Email As String Public Overloads Function ToString(format As String, formatProvider As System.IFormatProvider) _ As String Implements System.IFormattable.ToString ...