Files
mixtape/zero.Core/Options/ZeroBackofficeCollection.cs
T
2020-07-06 15:58:31 +02:00

28 lines
441 B
C#

using System.Collections.Generic;
namespace zero.Core.Options
{
public abstract class ZeroBackofficeCollection<T>
{
protected List<T> Items { get; set; } = new List<T>();
public IReadOnlyCollection<T> GetAllItems()
{
return Items.AsReadOnly();
}
public void RemoveAt(int index)
{
Items.RemoveAt(index);
}
public bool Remove(T item)
{
return Items.Remove(item);
}
}
}