Parsing Numeric Strings in the .NET Framework

In this paper, the authors highlight the parsing of numeric strings in .NET framework. A parsing operation converts a string that represents a .NET Framework base type into that base type. The method most commonly used to perform a parsing operation is the parse method. Because parsing is the reverse operation of formatting (which involves converting a base type into its string representation), many of the same rules and conventions apply. Just as formatting uses an object that implements the IFormatProvider interface to provide culture-sensitive formatting information, parsing also uses an object that implements the IFormatProvider interface to determine how to interpret a string representation.

Subscribe to the Developer Insider Newsletter

From the hottest programming languages to commentary on the Linux OS, get the developer and open source news and tips you need to know. Delivered Tuesdays and Thursdays

Subscribe to the Developer Insider Newsletter

From the hottest programming languages to commentary on the Linux OS, get the developer and open source news and tips you need to know. Delivered Tuesdays and Thursdays

Resource Details

Provided by:
Creative Commons
Topic:
Developer
Format:
PDF