Does anyone know the difference between System::Collections::ObjectModel::ReadOnlyDictionary and Microsoft::TeamFoundation::Client::ReadOnlyDictionary?
Does anyone know the difference between System::Collections::ObjectModel::ReadOnlyDictionary and Microsoft::TeamFoundation::Client::ReadOnlyDictionary ?
Share
I suspect the Team Foundation one was introduced simply because there wasn’t a read-only dictionary in the main framework, and they wanted to expose one.
The .NET framework one was only introduced in .NET 4.5.
The .NET framework version is documented to just be a wrapper around an existing dictionary – so while it’s read-only from a client point of view, it could still change over time. It’s not clear (from the docs) whether the Team Foundation one behaves in the same way, although I’d expect it to (as the simplest approach).