Freigeben über


Parsing Strings

Microsoft Silverlight will reach end of support after October 2021. Learn more.

The Parse method converts a string that represents a .NET Framework base type into an actual .NET Framework base type. Because parsing is the reverse operation of formatting (converting a base type into a string representation), many of the same rules and conventions apply. Just as formatting uses an object that implements the IFormatProvider interface to format the information into a string, parsing also uses an object that implements the IFormatProvider interface to determine how to interpret a string representation. For more information, see Formatting Overview.

In This Section