28 lines
441 B
C#
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);
|
|
}
|
|
}
|
|
}
|