Cysharp / ObservableCollections

High performance observable collections and synchronized views, for WPF, Blazor, Unity.
MIT License
602 stars 46 forks source link

Add missing equality comparer parameter and getter #55

Closed erri120 closed 3 months ago

erri120 commented 3 months ago

The constructors for both ObservableHashSet<> and ObservableDictionary<,> were missing the IEqualityComparer<> parameter to specify how equality is handled.

I also updated the ObservableDictionary<,> constructor that takes an IEnumerable<KeyValuePair<,>>. The same constructor on Dictionary<,> is also available on .NET Standard 2.1, just not 2.0.

neuecc commented 3 months ago

thanks!