ComparisonConverterOperator Enum

In This Article

Specifies the operator logic to apply in a ComparisonConverter.

public enum ComparisonConverterOperator

Fields

Name Description
DefaultOrEmpty

The comparison evaluates as true when the value being converted is a null or empty string, a zero number, a false boolean value, or a default value (typically null) of other types. This unary operator does not examine the converter parameter or CompareTo property value.

EqualTo

The comparison evaluates as true when the value being converted has value equality with the right operand, which is the converter parameter (when null, falls back to CompareTo property value). This is a binary operator.

NotDefaultOrEmpty

The comparison evaluates as true when the value being converted is a non-empty string, a non-zero number, a true boolean value, or a non-default value (typically not null) of other types. This unary operator does not examine the converter parameter or CompareTo property value.

NotEqualTo

The comparison evaluates as true when the value being converted does not have value equality with the right operand, which is the converter parameter (when null, falls back to CompareTo property value). This is a binary operator.