How to work with read-only collections in C#
Take advantage of read-only generic interfaces such as IReadOnlyList, IReadOnlyDictionary, and IReadOnlyCollection to prevent modifications to collections in your .NET Core applications.
Ireadonlylist Getauthors Mymethod Ireadonlylist Mymethod Ienumerable System Collections System Collections Generic Visual Studio
Source: infoworld.com