Click here to Skip to main content
15,886,673 members
Articles / Programming Languages / C#

INotifyPropertyChanged and beyond - Part II

Rate me:
Please Sign up or sign in to vote.
4.97/5 (16 votes)
30 May 2007CPOL11 min read 69.8K   707   71  
Add support for event suppression and event propagation
using System;
using System.Collections.Generic;
using System.Text;

namespace NotifyTest {
	/// <summary>
	/// This enumeration holds all the possible operations that can
	/// be performed on an object that supports the 
	/// <see cref="T:IList{T}"/> interface.
	/// </summary>
	public enum ListOperation {
		/// <summary>
		/// Indicates that operation is unknown.
		/// </summary>
		Unknown,

		/// <summary>
		/// Indicates that operation is <see cref="M:IList{T}.Add"/>.
		/// </summary>
		Add,

		/// <summary>
		/// Indicates that operation is <see cref="M:IList{T}.Remove"/>
		/// or <see cref="M:IList{T}.RemoveAt"/>.
		/// </summary>
		Remove,

		/// <summary>
		/// Indicates that operation is <see cref="M:IList{T}.Insert"/>.
		/// </summary>
		Insert,

		/// <summary>
		/// Indicates that operation is <see cref="M:IList{T}.Clear"/>.
		/// </summary>
		Clear,

		/// <summary>
		/// Indicates that operation is <see cref="M:IList{T}.Item[Int32]"/>.
		/// </summary>
		Set
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer SQL Farms, Inc.
United States United States
My name is Tom Goff and I have been working as a Software Engineer for over 15 years. Over my career, I have primarily focused on Windows programming with C++ and C#. I have also worked extensively with Microsoft SQL Server over the past 6 years.

Comments and Discussions