Skip to main content
A newer version of this page is available. .

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.v19.2.dll

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