Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / ComponentModel / PropertyDescriptorComparer.cs / 1 / PropertyDescriptorComparer.cs
namespace MS.Internal.ComponentModel { using System; using System.Collections.Generic; using System.ComponentModel; // This is a hashcode comparer we use to key property descriptors. We // want property descriptors keyed off of reference equality. // internal class PropertyDescriptorComparer : IEqualityComparer{ public bool Equals(PropertyDescriptor p1, PropertyDescriptor p2) { return object.ReferenceEquals(p1, p2); } public int GetHashCode(PropertyDescriptor p) { return p.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace MS.Internal.ComponentModel { using System; using System.Collections.Generic; using System.ComponentModel; // This is a hashcode comparer we use to key property descriptors. We // want property descriptors keyed off of reference equality. // internal class PropertyDescriptorComparer : IEqualityComparer { public bool Equals(PropertyDescriptor p1, PropertyDescriptor p2) { return object.ReferenceEquals(p1, p2); } public int GetHashCode(PropertyDescriptor p) { return p.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PasswordBox.cs
- BinaryNegotiation.cs
- Int64KeyFrameCollection.cs
- FamilyTypefaceCollection.cs
- BindingGroup.cs
- ErrorProvider.cs
- ArgumentReference.cs
- SessionEndingEventArgs.cs
- AnnotationComponentManager.cs
- ThousandthOfEmRealPoints.cs
- DataGridViewAccessibleObject.cs
- SourceChangedEventArgs.cs
- FtpCachePolicyElement.cs
- EpmContentSerializerBase.cs
- Typography.cs
- ProgressBar.cs
- ClassHandlersStore.cs
- SmtpNegotiateAuthenticationModule.cs
- NativeMethods.cs
- ToolStripDesignerUtils.cs
- LifetimeServices.cs
- CodeTypeParameterCollection.cs
- Automation.cs
- EventProvider.cs
- ConstrainedDataObject.cs
- ConfigXmlCDataSection.cs
- SessionSwitchEventArgs.cs
- CorePropertiesFilter.cs
- RbTree.cs
- RelatedCurrencyManager.cs
- MonitoringDescriptionAttribute.cs
- TreeNode.cs
- RawUIStateInputReport.cs
- ShapeTypeface.cs
- Metadata.cs
- FtpWebRequest.cs
- SetterBaseCollection.cs
- AlignmentYValidation.cs
- SqlError.cs
- GenerateHelper.cs
- DocumentReferenceCollection.cs
- ProfessionalColors.cs
- HttpCacheParams.cs
- ObjectToIdCache.cs
- MemoryStream.cs
- BaseUriHelper.cs
- JsonReaderDelegator.cs
- XPathChildIterator.cs
- DateTimeStorage.cs
- MatrixAnimationBase.cs
- SHA384Cng.cs
- ColumnResizeAdorner.cs
- DataGridGeneralPage.cs
- CqlLexer.cs
- Privilege.cs
- RowSpanVector.cs
- FileDialogPermission.cs
- SqlDataSourceConfigureSortForm.cs
- DataContractAttribute.cs
- DataGridViewBand.cs
- NativeRecognizer.cs
- Rect3DValueSerializer.cs
- CharacterHit.cs
- SQLConvert.cs
- TabItem.cs
- NumericUpDownAcceleration.cs
- VarRefManager.cs
- SHA1.cs
- CodeObject.cs
- ExtenderProvidedPropertyAttribute.cs
- DataTemplateSelector.cs
- ListViewInsertionMark.cs
- FilteredDataSetHelper.cs
- EnumType.cs
- ManagedWndProcTracker.cs
- ErrorEventArgs.cs
- OleDbParameterCollection.cs
- TimerEventSubscription.cs
- ControlValuePropertyAttribute.cs
- TemplateKeyConverter.cs
- LateBoundBitmapDecoder.cs
- x509store.cs
- SqlClientMetaDataCollectionNames.cs
- DictionaryEntry.cs
- ClientData.cs
- DefaultSettingsSection.cs
- UdpRetransmissionSettings.cs
- EntityContainerEntitySet.cs
- _AuthenticationState.cs
- XmlStreamedByteStreamReader.cs
- FileRecordSequence.cs
- Sorting.cs
- DockPanel.cs
- RuntimeUtils.cs
- NullReferenceException.cs
- ReferencedAssembly.cs
- TransformerInfo.cs
- RegistryHandle.cs
- UnauthorizedAccessException.cs
- MetadataCacheItem.cs