Files
mixtape/zero.Core/Options/ZeroBackofficeCollection.cs
T

28 lines
441 B
C#
Raw Normal View History

2020-07-06 15:58:31 +02:00
using System.Collections.Generic;
2020-05-13 14:06:11 +02:00
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();
}
2020-07-06 15:58:31 +02:00
public void RemoveAt(int index)
{
Items.RemoveAt(index);
}
public bool Remove(T item)
{
return Items.Remove(item);
}
2020-05-13 14:06:11 +02:00
}
}