Tries to convert the string representation of a number in a specified style
and culture-specific format to its System.Numerics.BigInteger equivalent,
and returns a value that indicates whether the conversion succeeded.
Namespace: Renci.SshNet.CommonAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
public static bool TryParse( string value, NumberStyles style, CultureInfo cultureInfo, out BigInteger result )
Parameters
- value
- Type:
System String
The string representation of a number. The string is interpreted using the style specified by style.
- style
- Type:
System.Globalization NumberStyles
A bitwise combination of enumeration values that indicates the style elements that can be present in value. A typical value to specify is System.Globalization.NumberStyles.Integer.
- cultureInfo
- Type:
System.Globalization CultureInfo
An object that supplies culture-specific formatting information about value.
- result
- Type: Renci.SshNet.Common BigInteger
When this method returns, contains the System.Numerics.BigInteger equivalent to the number that is contained in value, or System.Numerics.BigInteger.Zero if the conversion failed. The conversion fails if the value parameter is null or is not in a format that is compliant with style. This parameter is passed uninitialized.
Return Value
true if the value parameter was converted successfully; otherwise, false.See Also