punker76 / gong-wpf-dragdrop

The GongSolutions.WPF.DragDrop library is a drag'n'drop framework for WPF
BSD 3-Clause "New" or "Revised" License
2.25k stars 392 forks source link

Check subclass of ObservableCollection<> #451

Closed kzrnm closed 1 year ago

kzrnm commented 1 year ago

What changed?

Currently, If collection is subclass of ObservableCollection<>, IsObservableCollection(collection) returns false. But I hope the method call returns true.

Sample

void Check()
{
    var result = new StringObservableCollection().IsObservableCollection();
   // I hope result is true, but it's false.
}
class StringObservableCollection : ObservableCollection<string> { }
punker76 commented 1 year ago

@kzrnm your changes have been merged, thanks for your contribution 👍