Today I came across a dilemma what is the difference between ReadOnlyCollection<T>
and ReadOnlyCollectionBuilder<T>
in .Net?
In ReadOnlyCollection<T>
object we cannot add and remove items.
Where as in ReadOnlyCollectionBuilder<T>
object we can add and remove items.
If we can add and remove items in ReadOnlyCollectionBuilder<T>
object, then why the name readonly?