More Read-Only Examples

Another couple of ways that you can make a collection read-only is by applying a AsReadOnly() method or by using ReadOnlyCollection. This is just another way that you can expose collection details. For example if you want to expose the element details to another layer of the program for display purposes only. This is one way you can do it.

Continue reading