Skip to content

Clear method prevents collections of IDisposable items. #99

@pixsperdavid

Description

@pixsperdavid

Currently, when using an ObservableCollection to store items which implement IDisposable, it is impossible to observe the collection to ensure item disposal. If the 'Clear' method is called, there is no way for an observer to get a reference to the items previously in the list in order to dispose them. Ideally, when clear is called, the list of old items should be available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions