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.v20.1.dll

Declaration

public sealed class NullOperator :
    UnaryOperator
Public NotInheritable Class NullOperator
    Inherits 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