Files
Umbraco-CMS/src/Umbraco.Core/Composing/ICollectionBuilder.cs
2017-07-20 11:21:28 +02:00

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();
}
}