In my current implementation, I was trying to create custom class inherited by IDictionary<string, Object>
interface.
While implementation, I have to implement the below property
IsReadOnly { get; } part of ICollection<KeyValuePair<TKey, TValue>> interface.
So while doing this I came across below scenario,
I am not seeing that IsReadOnly
Property in Dictionary<TKey, TValue>
(.NET built in class) class, then how property implementation of ReadOnly
in not exists in Dictionary
class as this class is also inherited through ICollection<KeyValuePair<TKey, TValue>>
interface.
I have same query regarding CopyTo
method also.
This is just my conceptual question.