EnergyParse(String, IFormatProvider) Method
Converts the string representation of a number in a specified culture-specific format to its
Energy equivalent.
Namespace: Gemstone.UnitsAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.165 -- Release Build+e14d337b173ad33e50be6747ce5b02f477f99484
public static Energy Parse(
string s,
IFormatProvider? provider
)
Public Shared Function Parse (
s As String,
provider As IFormatProvider
) As Energy
public:
static Energy Parse(
String^ s,
IFormatProvider^ provider
)
Gemstone.Units.Energy.Parse = function(s, provider);
- s String
- A string containing a number to convert.
- provider IFormatProvider
-
A IFormatProvider that supplies culture-specific formatting information about s.
Energy
An
Energy equivalent to the number contained in s.
| ArgumentNullException | s is null. |
| OverflowException |
s represents a number less than MinValue or greater than MaxValue.
|
| FormatException | s is not in the correct format. |