Skip to main content

NullOperator Class

Represents an operator which compares a persistent object’s property value with a null reference (Nothing in Visual Basic).

Namespace: DevExpress.Data.Filtering

Assembly: DevExpress.Data.v24.1.dll

NuGet Package: DevExpress.Data

Declaration

public sealed class NullOperator :
    UnaryOperator

Remarks

This example represents the logical expression (DefaultAddress.City <> "Chicago" AND not (Company is null)).

XPCollection collection = new XPCollection(typeof(Contact), 
    new GroupOperator(GroupOperatorType.And, 
        new BinaryOperator("DefaultAddress.City", "Chicago", BinaryOperatorType.NotEqual), 
        new NotOperator(new NullOperator("Company"))));

Inheritance

See Also