Interface ICollectionBuilder<TCollection, TItem>
Represents a collection builder.
Namespace: Umbraco.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public interface ICollectionBuilder<out TCollection, TItem> : ICollectionBuilder where TCollection : IBuilderCollection<TItem>
Type Parameters
Name | Description |
---|---|
TCollection | The type of the collection. |
TItem | The type of the items. |
Methods
View SourceCreateCollection(IFactory)
Creates a collection.
Declaration
TCollection CreateCollection(IFactory factory)
Parameters
Type | Name | Description |
---|---|---|
IFactory | factory |
Returns
Type | Description |
---|---|
TCollection | A collection. |
Remarks
Creates a new collection each time it is invoked.