Added new interface IObservableCollection which can be used to find out whether a collection can be observed, even if it is only published by its generic .NET interface
git-svn-id: file:///srv/devel/repo-conversion/nusu@123 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
743fc9cc09
commit
889a47db6d
5 changed files with 53 additions and 2 deletions
|
|
@ -25,7 +25,8 @@ using System.Collections.ObjectModel;
|
|||
namespace Nuclex.Support.Collections {
|
||||
|
||||
/// <summary>Collection which fires events when items are added or removed</summary>
|
||||
public class ObservableCollection<ItemType> : Collection<ItemType> {
|
||||
public class ObservableCollection<ItemType> :
|
||||
Collection<ItemType>, IObservableCollection<ItemType> {
|
||||
|
||||
/// <summary>Raised when an item has been added to the collection</summary>
|
||||
public event EventHandler<ItemEventArgs<ItemType>> ItemAdded;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue