Formatting Strings for Output
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.
Understanding Concepts and Terminology
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 ...
Get Microsoft® .NET Compact Framework (Core Reference) now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.