Click or drag to resize
GroupedEnumerableItemType Class
Class providing enumerable grouping - one pass enumerable grouping.
Inheritance Hierarchy
SystemObject
  CMS.BaseGroupedEnumerableItemType

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 9.0.0
Syntax
C#
public class GroupedEnumerable<ItemType> : IGroupedData, 
	IEnumerable

Type Parameters

ItemType

The GroupedEnumerableItemType type exposes the following members.

Constructors
Fields
  NameDescription
Protected fieldfirstLevel
Top level of the collection.
Protected fieldmGroups
Resulting groups.
Protected fieldmTopItem
Top item object.
Top
Properties
  NameDescription
Public propertyGetItemKey
Lambda to evaluate the key of the item
Public propertyGetItemLevel
Lambda to evaluate the level of the item
Public propertyItems
Data source.
Public propertyTopItem
Gets the first available item.
Top
Methods
  NameDescription
Protected methodAddItem
Adds the item to the group table.
Protected methodEnsureList
Ensures the list with specified key value.
Public methodGetEnumerator
Returns grouped datasource enumerator.
Public methodGetGroup
Returns the array list of items from specified group, type of the item depends on the DataSource DataSet, DataView, DataTable -> DataRow
Public methodGetGroupView
Returns the array list of items from specified group, type of the item depends on the DataSource DataSet, DataView, DataTable -> DataRowView
Public methodGetItems
Gets the children based on the given key
Protected methodLoadGroups
Loads the data groups.
Top
Extension Methods
  NameDescription
Public Extension MethodToJSON
Returns JSON representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Public Extension MethodToXML
Returns XML representation of current instance of IEnumerable.
(Defined by DataExtensions.)
Top
See Also