Decimal..::..Parse Method (String)
Converts the string representation of a number to its Decimal equivalent.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static decimal Parse( string s )
<TemplateAttribute> _ Public Shared Function Parse ( _ s As String _ ) As Decimal
[TemplateAttribute] public: static Decimal^ Parse( String^ s )
Parameters
- s
- Type: System..::..String
The string representation of the number to convert.
Return Value
The equivalent to the number contained in s.Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | s is null. |
System..::..FormatException | s is not in the correct format. |
System..::..OverflowException | s represents a number less than MinValue or greater than MaxValue. |