Welcome to mirror list, hosted at ThFree Co, Russian Federation.

CollectionChangeEventArgs.cs « System.ComponentModel « System « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ace57b02b77e37d5834d54e5e77bf4eb8bcb849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// System.ComponentModel.CollectionChangeEventArgs.cs
//
// Author:
//   Rodrigo Moya (rodrigo@ximian.com)
//
// (C) Ximian, Inc
//

namespace System.ComponentModel
{
	/// <summary>
	/// Provides data for the CollectionChanged event.
	/// </summary>
	public class CollectionChangeEventArgs : EventArgs
	{
		private CollectionChangeAction changeAction;
		private object theElement;
		
		public CollectionChangeEventArgs (CollectionChangeAction action,
						  object element) {
			changeAction = action;
			theElement = element;
		}

		public virtual CollectionChangeAction Action {
			get {
				return changeAction;
			}
		}

		public virtual object Element {
			get {
				return theElement;
			}
		}
	}
}