Skip to main content
.NET 6.0+

BoolList.GetKeys() Method

Returns a list of key/value pair keys from the BoolList‘s collection.

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public IEnumerable<string> GetKeys()

Returns

Type Description
IEnumerable<String>

An IEnumerable<String> object representing a list of key/value pair keys from the BoolList‘s collection.

Remarks

The GetKeys method exposes an enumerator allowing you to iterate over the BoolList‘s keys via the foreach statement. The following code snippet illustrates this.

//...
BoolList mylist = new BoolList();
//...
foreach(string key in mylist.GetKeys()) {
    // process "key"
}

The keys returned by the GetKeys method can be used as parameters in the BoolList.RemoveItem and BoolList.SetItemValue methods.

If you need to check whether the BoolList‘s collection of key/value pairs contains a specific key, use the BoolList.Contains method. To get a value associated with a particular key, use the BoolList.Item indexer property.

See Also