BoolList.Equals(Object) Method

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public override bool Equals(
    object obj
)
Public Overrides Function Equals(
    obj As Object
) As Boolean

Parameters

Type Name Description
Object obj

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