Lecture overview -- Keyboard shortcut: 'u'  Previous page: Sample use of IEnumerator and IEnumerable -- Keyboard shortcut: 'p'  Next page: Explicit Interface Member Implementations -- Keyboard shortcut: 'n'  Lecture notes - all slides together  Annotated slide -- Keyboard shortcut: 't'  Textbook -- Keyboard shortcut: 'v'  Alphabetic index  Help page about these notes  Course home    Abstract classes, Interfaces, and Patterns - slide 17 : 37

Sample use of IFormattable
The ToString method prescribed by IFormattable takes two parameters which allow finer control of the string generation than the parameterless method ToString from class Object.
A reproduction of the interface IFormattable.
The struct Card that implements IFormattable.
A client of Card which applies formatting of cards.
Output from the client program.