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

IObjectSpace.CreateCollection(Type) Method

Creates and initializes a collection of objects of the specified type.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

IList CreateCollection(
    Type objectType
)

#Parameters

Name Type Description
objectType Type

The type of persistent objects to include in the collection.

#Returns

Type Description
IList

A IList collection that includes objects of the specified type.

#Remarks

Use this method to create a collection of objects of the specified type. The newly created collection will use the current Object Space to load and save persistent objects.

If you implement the IObjectSpace interface in the BaseObjectSpace class’ descendant, you should override a virtual protected BaseObjectSpace.CreateCollection method which is called by the BaseObjectSpace.CreateCollection method.

See Also