January 2003
Intermediate to advanced
896 pages
19h 58m
English
The .NET Compact Framework provides you with comprehensive facilities to format strings for output. In this section, you’ll see how to format various data types, including numeric types, date/time types, and enumerated types. You’ll also see how to provide culture-specific formatting.
This first section contains a brief introduction to concepts in .NET Compact Framework formatting, which involves format specifiers, format specifications, and format providers. In the following code fragment
double amount = 10.0/3.0;
string myString = amount.ToString("F4");the string "F4" is a format specifier and specifies that the value amount is to be formatted as fixed-point (F) with 4 digits ...
Read now
Unlock full access