Skip to main content

UnaryOperatorType Enum

Enumerates unary operator types.

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v22.1.dll

Declaration

public enum UnaryOperatorType

Members

Name Description
BitwiseNot

Represents the bitwise NOT operator.

To create the bitwise NOT operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“~Field1”)

Plus

Represents the unary plus (+) operator.

Minus

Represents the unary negation (-) operator.

To create the unary negation operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“-Field1 = -10”)

Not

Represents the logical NOT.

To create the logical NOT operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“NOT ((Field1 = A) OR (Field1 = B))”)

IsNull

Represents the operator which determines whether or not a given expression is NULL.

To create the is-null operator using the CriteriaOperator.Parse method use the following syntax:

CriteriaOperator.Parse(“Field1 IS NULL”)

Remarks

The UnaryOperatorType enumeration contains unary operator types that can be used to create expressions via the UnaryOperator objects.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UnaryOperatorType enum.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also