FormatterConverter::ToInt32 Method (Object^)

 

Converts a value to a 32-bit signed integer.

Namespace:   System.Runtime.Serialization
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual int ToInt32(
	Object^ value
) sealed

Parameters

value
Type: System::Object^

The object to convert.

Return Value

Type: System::Int32

The converted value or null if the type parameter is null.

Exception Condition
ArgumentNullException

The value parameter is null.

This method uses the invariant culture (see CultureInfo::InvariantCulture). To use the current culture or to specify a culture, use the Convert::ToInt32 method instead. For more information, see Int32, Convert, and ValueType.

.NET Framework
Available since 1.1
Return to top
Show: