#if (NET20 || NET35 || NET40) namespace System.Collections.Generic { /// Represents a strongly-typed, read-only collection of elements. /// The type of the elements. /// public interface IReadOnlyCollection : IEnumerable { /// Gets the number of elements in the collection. /// The number of elements in the collection. int Count { get; } } /// Represents a read-only collection of elements that can be accessed by index. /// The type of elements in the read-only list. /// public interface IReadOnlyList : IReadOnlyCollection { /// Gets the element at the specified index in the read-only list. /// The element at the specified index in the read-only list. /// The zero-based index of the element to get. T this[int index] { get; } } } #endif