19 lines
638 B
C#
19 lines
638 B
C#
namespace Umbraco.Core.Composing
|
|
{
|
|
/// <summary>
|
|
/// Represents a collection builder.
|
|
/// </summary>
|
|
/// <typeparam name="TCollection">The type of the collection.</typeparam>
|
|
/// <typeparam name="TItem">The type of the items.</typeparam>
|
|
public interface ICollectionBuilder<out TCollection, TItem>
|
|
where TCollection : IBuilderCollection<TItem>
|
|
{
|
|
/// <summary>
|
|
/// Creates a collection.
|
|
/// </summary>
|
|
/// <returns>A collection.</returns>
|
|
/// <remarks>Creates a new collection each time it is invoked.</remarks>
|
|
TCollection CreateCollection();
|
|
}
|
|
}
|