BigIntegerStatic: TryParseEx

TryParseEx

Tries to convert the string representation of a number in a specified style and culture-specific format to its BigInteger equivalent, and returns a value that indicates whether the conversion succeeded.



 Public Function TryParseEx(
	  ByRef Value As String,
	  ByVal Style As NumberStyles,
	  ByVal Provider As IFormatProvider,
	  ByRef OutResult As BigInteger ) As Boolean

Parameters

Value
[ByRef] String. The string representation of a number. The string is interpreted using the style specified by style.
Style
[ByVal] NumberStyles. A bitwise combination of enumeration values that indicates the style elements that can be present in value. A typical value to specify is NumberStyles.Integer.
Provider
[ByVal] IFormatProvider. An object that supplies culture-specific formatting information about value. If Nothing is passed in the current CultureInfo will be used.
OutResult
[ByRef] BigInteger. When this method returns, contains the BigInteger equivalent to the number that is contained in value, or BigInteger.Zero if the conversion failed. The conversion fails if thevalue parameter is null or is not in a format that is compliant withstyle. This parameter is passed uninitialized.

Return Values

Boolean - 

See Also

Project CorLib Overview

Class BigIntegerStatic Overview