.NET Base Class Library Overview

The .NET Base Class Library (BCL) contains many functions normally found in language-specific runtime libraries. It is therefore important to understand what classes are available in the BCL.

Numeric Formatting

Numeric types are formatted through the Format() member function of that data type. This can be called directly, through String.Format(), which calls the Format() function of each data type, or through Console.WriteLine(), which calls String.Format().

Adding formatting to a user-defined object is discussed in the “Custom Object Formatting” section later in this chapter. This section discusses ...

Get A Programmer's Guide to C# 5.0, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.