.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

BaseObjectSpace.CreateCollection Method

Name Parameters Description
CreateCollection(Type) objectType

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

CreateCollection(Type, CriteriaOperator) objectType, criteria

Creates and initializes a collection of objects of the specified type, filtered according to the specified criteria.

CreateCollection(Type, CriteriaOperator, IList<SortProperty>) objectType, criteria, sorting

Creates and initializes a collection of objects of the specified type, filtered according to the specified criteria and sorted according to the given sorting list.