Int32.IConvertible.ToBoolean(IFormatProvider) Int32.IConvertible.ToBoolean(IFormatProvider) Int32.IConvertible.ToBoolean(IFormatProvider) Method

Definition

For a description of this member, see ToBoolean(IFormatProvider).

 virtual bool System.IConvertible.ToBoolean(IFormatProvider ^ provider) = IConvertible::ToBoolean;
bool IConvertible.ToBoolean (IFormatProvider provider);
Function ToBoolean (provider As IFormatProvider) As Boolean Implements IConvertible.ToBoolean

Parameters

provider
IFormatProvider IFormatProvider IFormatProvider

This parameter is ignored.

Returns

true if the value of the current instance is not zero; otherwise, false.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the Int32 instance is cast to an IConvertible interface. The recommended alternative is to call the Convert.ToBoolean(Int32) method.

Applies to