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