CollectionSourceBase.List Property

Return the objects contained in the Collection Source's CollectionSourceBase.Collection.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll


public IList List { get; }
Public ReadOnly Property List As IList

Property Value

Type Description

An IList object representing the objects contained in the Collection Source's collection.


The CollectionSourceBase.Collection property may expose an object which does not implement the IEnumerable interface, and so does not allow iterating over the objects contained in the collection. This can especially be the case when the Server mode is enabled (see CollectionSourceBase.DataAccessMode). By exposing the Collection Source's collection in the form of a list, the List property allows you to iterate over the collection's objects in a collection-agnostic manner.

See Also