Wpf: Why we custom the HashSet

Created on 3 Jun 2020  路  5Comments  路  Source: dotnet/wpf

All 5 comments

HashSet didn't exist in .NET Framework 3.0 when WPF initially was released, so this probably can be replaced by the framework HashSet now.

The Dictionary exist in .NET Framework 2.0

@weltkante Do you want to do this?

Do you want to do this?

Only if I'm asked to, doesn't seem a complicated PR or urgent to fix, also the team seems still busy with reorganizing itself. I'm more active in the WinForms repo at the moment.

Note that the framework's HashSet<T> derives neither from Dictionary nor IDictionary, so the code consuming it will need to be changed as well.

There is also similar but different System.Xaml.XamlObjectReader.HashSet<T>.

Was this page helpful?
0 / 5 - 0 ratings