Share via


IntToBoolConverter.Convert(Object, Type, Object, CultureInfo) Method

Definition

Converts an System.Int32 to corresponding System.Boolean.

public object? Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);

Parameters

value
System.Object

System.Int32 value.

targetType
System.Type

The type of the binding target property. This is not implemented.

parameter
System.Object

Additional parameter for the converter to handle. This is not implemented.

culture
System.Globalization.CultureInfo

The culture to use in the converter. This is not implemented.

Returns

System.Object

False if the value is 0, otherwise if the value is anything but 0 it returns True.

Implements

Applies to