Resvolution - Prepare

This commit is contained in:
Stephan
2016-08-16 10:00:14 +02:00
parent dbdff2e2c4
commit 0817ffdd28
11 changed files with 307 additions and 6 deletions
@@ -0,0 +1,23 @@
using System.Collections.Generic;
namespace Umbraco.Core.DependencyInjection
{
/// <summary>
/// Provides a base class for injected collections.
/// </summary>
/// <typeparam name="TItem">The type of the items.</typeparam>
public abstract class InjectCollectionBase<TItem> : IInjectCollection<TItem>
{
/// <summary>
/// Initializes a new instance of the <see cref="InjectCollectionBase{TItem}"/> with items.
/// </summary>
/// <param name="items">The items.</param>
protected InjectCollectionBase(IEnumerable<TItem> items)
{
Items = items;
}
/// <inheritdoc />
public IEnumerable<TItem> Items { get; }
}
}