Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / ListChangedEventArgs.cs / 1305376 / ListChangedEventArgs.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
//can not fix - Everett breaking change
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="System.ComponentModel.ListChangedEventArgs..ctor(System.ComponentModel.ListChangedType,System.Int32,System.ComponentModel.PropertyDescriptor)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="System.ComponentModel.ListChangedEventArgs..ctor(System.ComponentModel.ListChangedType,System.ComponentModel.PropertyDescriptor)")]
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// [To be supplied.]
///
[HostProtection(SharedState = true)]
public class ListChangedEventArgs : EventArgs {
private ListChangedType listChangedType;
private int newIndex;
private int oldIndex;
private PropertyDescriptor propDesc;
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex) : this(listChangedType, newIndex, -1) {
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor propDesc) : this(listChangedType, newIndex) {
this.propDesc = propDesc;
this.oldIndex = newIndex;
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor propDesc) {
Debug.Assert(listChangedType != ListChangedType.Reset, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemAdded, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemDeleted, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemChanged, "this constructor is used only for changes in the list MetaData");
this.listChangedType = listChangedType;
this.propDesc = propDesc;
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, int oldIndex) {
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorAdded, "this constructor is used only for item changed in the list");
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorDeleted, "this constructor is used only for item changed in the list");
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorChanged, "this constructor is used only for item changed in the list");
this.listChangedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = oldIndex;
}
///
/// [To be supplied.]
///
public ListChangedType ListChangedType {
get {
return listChangedType;
}
}
///
/// [To be supplied.]
///
public int NewIndex {
get {
return newIndex;
}
}
///
/// [To be supplied.]
///
public int OldIndex {
get {
return oldIndex;
}
}
///
/// [To be supplied.]
///
public PropertyDescriptor PropertyDescriptor {
get {
return propDesc;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
//can not fix - Everett breaking change
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="System.ComponentModel.ListChangedEventArgs..ctor(System.ComponentModel.ListChangedType,System.Int32,System.ComponentModel.PropertyDescriptor)")]
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", Scope="member", Target="System.ComponentModel.ListChangedEventArgs..ctor(System.ComponentModel.ListChangedType,System.ComponentModel.PropertyDescriptor)")]
namespace System.ComponentModel {
using Microsoft.Win32;
using System;
using System.Diagnostics;
using System.Security.Permissions;
///
/// [To be supplied.]
///
[HostProtection(SharedState = true)]
public class ListChangedEventArgs : EventArgs {
private ListChangedType listChangedType;
private int newIndex;
private int oldIndex;
private PropertyDescriptor propDesc;
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex) : this(listChangedType, newIndex, -1) {
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, PropertyDescriptor propDesc) : this(listChangedType, newIndex) {
this.propDesc = propDesc;
this.oldIndex = newIndex;
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, PropertyDescriptor propDesc) {
Debug.Assert(listChangedType != ListChangedType.Reset, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemAdded, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemDeleted, "this constructor is used only for changes in the list MetaData");
Debug.Assert(listChangedType != ListChangedType.ItemChanged, "this constructor is used only for changes in the list MetaData");
this.listChangedType = listChangedType;
this.propDesc = propDesc;
}
///
/// [To be supplied.]
///
public ListChangedEventArgs(ListChangedType listChangedType, int newIndex, int oldIndex) {
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorAdded, "this constructor is used only for item changed in the list");
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorDeleted, "this constructor is used only for item changed in the list");
Debug.Assert(listChangedType != ListChangedType.PropertyDescriptorChanged, "this constructor is used only for item changed in the list");
this.listChangedType = listChangedType;
this.newIndex = newIndex;
this.oldIndex = oldIndex;
}
///
/// [To be supplied.]
///
public ListChangedType ListChangedType {
get {
return listChangedType;
}
}
///
/// [To be supplied.]
///
public int NewIndex {
get {
return newIndex;
}
}
///
/// [To be supplied.]
///
public int OldIndex {
get {
return oldIndex;
}
}
///
/// [To be supplied.]
///
public PropertyDescriptor PropertyDescriptor {
get {
return propDesc;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebRequestModulesSection.cs
- MediaTimeline.cs
- OptionalRstParameters.cs
- JsonStringDataContract.cs
- WorkerProcess.cs
- HealthMonitoringSection.cs
- NonVisualControlAttribute.cs
- SqlExpressionNullability.cs
- DBCommandBuilder.cs
- NumericPagerField.cs
- GraphicsPathIterator.cs
- ZipIOExtraFieldZip64Element.cs
- Script.cs
- TreeBuilder.cs
- Serializer.cs
- SocketPermission.cs
- StreamingContext.cs
- Roles.cs
- NativeMethods.cs
- SchemaHelper.cs
- __TransparentProxy.cs
- Helpers.cs
- ConfigViewGenerator.cs
- PrivateFontCollection.cs
- AdRotator.cs
- PerformanceCounterPermissionEntryCollection.cs
- ToolboxComponentsCreatedEventArgs.cs
- assemblycache.cs
- RadioButtonList.cs
- DPCustomTypeDescriptor.cs
- Route.cs
- xml.cs
- UnionCqlBlock.cs
- FlowDocumentReaderAutomationPeer.cs
- ReferenceEqualityComparer.cs
- _HeaderInfoTable.cs
- HttpModulesSection.cs
- ListView.cs
- Stopwatch.cs
- HScrollProperties.cs
- URL.cs
- TemplateBindingExpression.cs
- JsonQNameDataContract.cs
- Focus.cs
- sqlcontext.cs
- DataGridCaption.cs
- MetadataPropertyAttribute.cs
- WindowsFont.cs
- JumpItem.cs
- MarshalDirectiveException.cs
- ArgumentsParser.cs
- CodeTypeDeclaration.cs
- ResourceReferenceKeyNotFoundException.cs
- ScrollProperties.cs
- BoundsDrawingContextWalker.cs
- InstanceNormalEvent.cs
- CapiSafeHandles.cs
- MultiSelectRootGridEntry.cs
- RadialGradientBrush.cs
- CurrentTimeZone.cs
- TimeSpanMinutesConverter.cs
- CollectionBuilder.cs
- ValidationSummaryDesigner.cs
- WindowAutomationPeer.cs
- CookieProtection.cs
- MessageBox.cs
- HScrollBar.cs
- WebServiceReceiveDesigner.cs
- DesignObjectWrapper.cs
- DescriptionAttribute.cs
- MimeTypeMapper.cs
- MaskDesignerDialog.cs
- CodeArrayIndexerExpression.cs
- HierarchicalDataSourceIDConverter.cs
- PrinterSettings.cs
- TableItemPattern.cs
- CommandManager.cs
- Quaternion.cs
- FrameworkContentElement.cs
- XmlAttributeCollection.cs
- StylusEditingBehavior.cs
- MachineKeyConverter.cs
- WSMessageEncoding.cs
- DataGridViewEditingControlShowingEventArgs.cs
- StatusBar.cs
- CompositeFontParser.cs
- DocobjHost.cs
- UnsettableComboBox.cs
- ChildrenQuery.cs
- COM2PropertyDescriptor.cs
- DefaultTraceListener.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WeakEventTable.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- CompressStream.cs
- DynamicQueryStringParameter.cs
- ExpressionDumper.cs
- WorkflowElementDialogWindow.xaml.cs
- basecomparevalidator.cs
- UIPermission.cs