Share via


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

Definition

Convert an System.Enum to corresponding System.Boolean

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

Parameters

value
System.Object

System.Enum value to convert

targetType
System.Type

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

parameter
System.Object

Additional parameter for converter. Can be used for comparison instead of TrueValues

culture
System.Globalization.CultureInfo

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

Returns

System.Object

False, if the value is not in TrueValues. False, if TrueValues is empty and value not equal to parameter.

Implements

Exceptions

System.ArgumentException

If value is not an System.Enum

Applies to