Xamarin Public Jenkins (auto-signing) e79aa3c0ed Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
2016-08-03 10:59:49 +00:00

49 lines
1.6 KiB
C#

//------------------------------------------------------------------------------
// <copyright file="CollectionChangeEventArgs.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
//------------------------------------------------------------------------------
namespace System.ComponentModel {
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Security.Permissions;
/// <devdoc>
/// <para>Provides data for the <see langword='CollectionChange '/> event.</para>
/// </devdoc>
[HostProtection(SharedState = true)]
public class CollectionChangeEventArgs : EventArgs
{
private CollectionChangeAction action;
private object element;
/// <devdoc>
/// <para>Initializes a new instance of the <see cref='System.ComponentModel.CollectionChangeEventArgs'/> class.</para>
/// </devdoc>
public CollectionChangeEventArgs(CollectionChangeAction action, object element) {
this.action = action;
this.element = element;
}
/// <devdoc>
/// <para>Gets an action that specifies how the collection changed.</para>
/// </devdoc>
public virtual CollectionChangeAction Action {
get {
return action;
}
}
/// <devdoc>
/// <para>Gets the instance of the collection with the change. </para>
/// </devdoc>
public virtual object Element {
get {
return element;
}
}
}
}