You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,48 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user