πΉπππ πΆππππ³πππ<π»> πππ π³πππ<π»>
Using ReadOnlyList<T> you can create any list that would be only ReadOnly and you can not add and update elements in it.
Using ReadOnlyList<T> you can create any list that would be only ReadOnly and you can not add and update elements in it.
If you want to convert an existing List<T> to ReadOnlyList<T> you can use AsReadOnly() extension method of List<T>.
You can create a new ReadOnlyList<T> by using IReadOnly<T>.
If you like my work you can help me in growing through following ways