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,51 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <copyright file="AddingNewEventArgs.cs" company="Microsoft">
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// </copyright>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace System.ComponentModel {
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Security.Permissions;
|
||||
|
||||
/// <devdoc>
|
||||
/// Provides data for an event that signals the adding of a new object
|
||||
/// to a list, allowing any event handler to supply the new object. If
|
||||
/// no event handler supplies a new object to use, the list should create
|
||||
/// one itself.
|
||||
/// </devdoc>
|
||||
[HostProtection(SharedState = true)]
|
||||
public class AddingNewEventArgs : EventArgs
|
||||
{
|
||||
private object newObject = null;
|
||||
|
||||
/// <devdoc>
|
||||
/// Initializes a new instance of the <see cref='System.ComponentModel.AddingNewEventArgs'/> class,
|
||||
/// with no new object defined.
|
||||
/// </devdoc>
|
||||
public AddingNewEventArgs() : base() {
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// Initializes a new instance of the <see cref='System.ComponentModel.AddingNewEventArgs'/> class,
|
||||
/// with the specified object defined as the default new object.
|
||||
/// </devdoc>
|
||||
public AddingNewEventArgs(object newObject) : base() {
|
||||
this.newObject = newObject;
|
||||
}
|
||||
|
||||
/// <devdoc>
|
||||
/// Gets or sets the new object that will be added to the list.
|
||||
/// </devdoc>
|
||||
public object NewObject {
|
||||
get {
|
||||
return newObject;
|
||||
}
|
||||
|
||||
set {
|
||||
newObject = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user