CHAPTER 38

image

.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 O’Reilly online learning.

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