O'Reilly logo

A Programmer's Guide to C# 5.0, 4th Edition by Nick Wienholt, Eric Gunnerson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required