41 lines
1.4 KiB
C#
41 lines
1.4 KiB
C#
|
//---------------------------------------------------------------------------
|
||
|
//
|
||
|
// <copyright file="INotifyCollectionChanged.cs" company="Microsoft">
|
||
|
// Copyright (C) 2003 by Microsoft Corporation. All rights reserved.
|
||
|
// </copyright>
|
||
|
//
|
||
|
//
|
||
|
// Description: Allows collections to notify listeners of dynamic updates.
|
||
|
//
|
||
|
// See spec at http://avalon/connecteddata/Specs/INotifyCollectionChanged.mht
|
||
|
//
|
||
|
//---------------------------------------------------------------------------
|
||
|
|
||
|
using System;
|
||
|
using System.Runtime.CompilerServices;
|
||
|
|
||
|
namespace System.Collections.Specialized
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// A collection implementing this interface will notify listeners of dynamic changes,
|
||
|
/// e.g. when items get added and removed or the whole list is refreshed.
|
||
|
/// </summary>
|
||
|
#if !MOBILE
|
||
|
[TypeForwardedFrom("WindowsBase, Version=3.0.0.0, Culture=Neutral, PublicKeyToken=31bf3856ad364e35")]
|
||
|
#endif
|
||
|
public interface INotifyCollectionChanged
|
||
|
{
|
||
|
/// <summary>
|
||
|
/// Occurs when the collection changes, either by adding or removing an item.
|
||
|
/// </summary>
|
||
|
/// <remarks>
|
||
|
/// The event handler receives an argument of type
|
||
|
/// <seealso cref="System.Collections.Specialized.NotifyCollectionChangedEventArgs" />
|
||
|
/// containing data related to this event.
|
||
|
/// </remarks>
|
||
|
event NotifyCollectionChangedEventHandler CollectionChanged;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|