Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BoolList.GetKeys() Method

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

Namespace: DevExpress.ExpressApp.Utils

Assembly: DevExpress.ExpressApp.v24.2.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