StringExtensions..::..ToInt Method (String, IFormatProvider)

Converts the string representation of a number to an integer.

Namespace:  MichaelBrandonMorris.Extensions.PrimitiveExtensions
Assembly:  MichaelBrandonMorris.Extensions.PrimitiveExtensions (in MichaelBrandonMorris.Extensions.PrimitiveExtensions.dll)

Syntax


public static int ToInt(
	string s,
	IFormatProvider provider
)
Public Shared Function ToInt ( _
	s As String, _
	provider As IFormatProvider _
) As Integer
public:
static int^ ToInt(
	String^ s, 
	IFormatProvider^ provider
)

Parameters

s
Type: String
The s.
provider
Type: IFormatProvider
The provider.

Return Value

System.Int32.