using System; using System.Collections; using System.Collections.Generic; namespace Service { /// /// Collection of storages only for reading /// public interface IStoragesCollectionReadOnly : IEnumerable, ICollection { Storage this[int Index] { get; set; } } /// /// Collection of storages /// public class StoragesCollection : List, IStoragesCollectionReadOnly { } }