IReadOnlyList<T>

A .NET interface for an ordered collection that can be read by index and counted, but not changed.

In more detail

List<T> and arrays both implement it. Returning it from a service tells callers the truth: they get results to read, and cannot quietly add to a collection the service owns.

Related terms

Taught in

References