CollectionSourceBase.List Property
Return the objects contained in the Collection Source’s CollectionSourceBase.Collection.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
IList | An IList object representing the objects contained in the Collection Source’s collection. |
Remarks
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.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the List property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.