This documentation is archived and is not being maintained.

Decimal.TryParse Method

Converts the String representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.

Name Description
Decimal.TryParse (String, Decimal) Converts the String representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Decimal.TryParse (String, NumberStyles, IFormatProvider, Decimal) Converts the String representation of a number to its Decimal equivalent using the specified style and culture-specific format. A return value indicates whether the conversion succeeded or failed.
Show: