The requested page is not available for the requested platform. You are viewing the content for Default platform.

BoolList.ResultValue Property

Specifies the resulting value of the BoolList.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v19.1.dll

Declaration

public bool ResultValue { get; }
Public ReadOnly Property ResultValue As Boolean

Property Value

Type Description
Boolean

A Boolean value representing the resulting value of the BoolList.

Remarks

The ResultValue property specifies the resulting value of the BoolList, which is based on the values from the BoolList's collection of key/value pairs. The resulting value is determined based on the BoolListOperatorType mode specified via the BoolList constructor's operatorType parameter. When the BoolListOperatorType.And mode is used, the resulting value of a BoolList is determined by logically multiplying all the values from the BoolList's collection of key/value pairs. When the BoolListOperatorType.Or mode is used, the resulting value of a BoolList is determined by logically summing all the values from the BoolList's collection of key/value pairs.

Generally, there is no need to use the ResultValue property as BoolList overrides the BoolList.Equals method. This allows 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) {
    //...
}

For a general description of the BoolList class, refer to the BoolList class description.

See Also