you said, that
IEnumerable , ToList() .
, ToList() . , , (/ ). , , Find GetAll, ICollection<T> IList<T> ( \ ).
, ToList \ . Count - return IReadOnlyCollection<T>, IEnumerable<T> Count. indexer - return IReadOnlyList<T>, IReadOnlyCollection<T> .
Array List<T> , , :
static IReadOnlyList<string> Test() {
return new string[0];
}
, List - IList<T> . , , AsReadOnly ( , ):
static IReadOnlyList<string> Test() {
return new List<string>().AsReadOnly();
}