Version

ToInt32(IFormatProvider) Method

Convert this class instance's value to a int data type
Syntax
public int ToInt32( 
   IFormatProvider provider
)

Parameters

provider
An IFormatProvider interface implementation that supplies culture-specific formatting information

Return Value

A 32-bit signed integer floating-point equivalent to the value of this instance
Remarks

If there is no meaningful conversion, this method will throw an InvalidCastException

Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also