Skip to main content
.NET 6.0+

BoolList.Equals(Object) Method

Determines whether the specified object is equal to the current BoolList.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public override bool Equals(
    object obj
)

Parameters

Name Type Description
obj Object

An object that can be cast to the System.Boolean type, to compare to the current BoolList.

Returns

Type Description
Boolean

true, if the specified object’s Boolean value equals the current BoolList‘s BoolList.ResultValue; otherwise, false.

Remarks

Generally, you do not need to call this method. The BoolList class overrides this method, to allow you to use instances of the BoolList class in Boolean expressions, and compare such instances directly to Boolean values. The following code snippet illustrates this.

BoolList myList = new BoolList();
myList["myKey"] = true;
//...
if(myList) {
    //...
}
See Also