Skip to main content
.NET Framework 4.5.2+

BoolList.ResultValue Property

Specifies the resulting value of the BoolList.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public bool ResultValue { get; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ResultValue property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also