Class
GroupDescriptorBase

Provides a base class for group descriptors that implement key-based grouping functionality.

Definition

Constructors

GroupDescriptorBase()

Declaration

cs-api-definition
protected GroupDescriptorBase()

Methods

GetDefaultKey(object)

Gets the default key for the specified item when no custom key extraction is needed.

Declaration

cs-api-definition
protected virtual object GetDefaultKey(object item)

Parameters

item

object

The item to get the default key for.

Returns

object

The item itself as the default key.

GetKey(object)

Gets the key for the specified item used for grouping.

Declaration

cs-api-definition
public object GetKey(object item)

Parameters

item

object

The item to get the key for.

Returns

object

The key object used for grouping.

Implements IKeyLookup.GetKey(object)

GetKeyCore(object)

When implemented in a derived class, provides the core logic for extracting the grouping key from an item.

Declaration

cs-api-definition
protected abstract object GetKeyCore(object item)

Parameters

item

object

The item to extract the key from.

Returns

object

The key object used for grouping.