Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / ComponentModel / PropertyDescriptorComparer.cs / 1305600 / 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
- DropDownList.cs
- ISAPIWorkerRequest.cs
- GestureRecognitionResult.cs
- AnonymousIdentificationSection.cs
- ScrollChrome.cs
- ItemList.cs
- AuthorizationSection.cs
- FormViewUpdateEventArgs.cs
- AnonymousIdentificationSection.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SByteConverter.cs
- ActivationArguments.cs
- XmlRawWriterWrapper.cs
- GetPageCompletedEventArgs.cs
- DisplayMemberTemplateSelector.cs
- WindowCollection.cs
- XmlIncludeAttribute.cs
- CryptoHelper.cs
- ComboBoxAutomationPeer.cs
- WaitForChangedResult.cs
- UnlockInstanceCommand.cs
- Normalization.cs
- ConfigurationStrings.cs
- Solver.cs
- BoolExpressionVisitors.cs
- ITreeGenerator.cs
- EventLogHandle.cs
- BroadcastEventHelper.cs
- RestHandlerFactory.cs
- X509Certificate.cs
- RowToFieldTransformer.cs
- figurelength.cs
- DataRelationPropertyDescriptor.cs
- TransformGroup.cs
- ObjectStateManager.cs
- ListDictionaryInternal.cs
- EntityProviderFactory.cs
- ScaleTransform3D.cs
- RowUpdatingEventArgs.cs
- XomlCompilerHelpers.cs
- Select.cs
- DoubleConverter.cs
- CollectionViewSource.cs
- TextTreeUndo.cs
- InputReferenceExpression.cs
- ObjectParameter.cs
- UrlPath.cs
- MethodRental.cs
- addressfiltermode.cs
- ComponentRenameEvent.cs
- ReleaseInstanceMode.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BasicKeyConstraint.cs
- CodeTypeMemberCollection.cs
- MSAAEventDispatcher.cs
- SchemaNames.cs
- SystemTcpConnection.cs
- _DigestClient.cs
- DataBoundControlHelper.cs
- ConditionalBranch.cs
- SerialPinChanges.cs
- CryptoStream.cs
- WmiEventSink.cs
- DynamicPhysicalDiscoSearcher.cs
- FixedFindEngine.cs
- StringConverter.cs
- XmlSchema.cs
- SafeProcessHandle.cs
- TableColumnCollection.cs
- StringValueConverter.cs
- DataSourceHelper.cs
- TableProviderWrapper.cs
- DbConnectionStringBuilder.cs
- NumberFormatter.cs
- XamlWriterExtensions.cs
- EventLogPropertySelector.cs
- DateTimeParse.cs
- WindowsScrollBar.cs
- OverlappedAsyncResult.cs
- Substitution.cs
- ProgressBarBrushConverter.cs
- ObjectDisposedException.cs
- ImageSourceValueSerializer.cs
- EditingCommands.cs
- DocumentPageTextView.cs
- OdbcCommand.cs
- DocumentPageView.cs
- X509Logo.cs
- DataGridViewColumnEventArgs.cs
- ContentType.cs
- ButtonRenderer.cs
- PageSetupDialog.cs
- NotSupportedException.cs
- WindowsFormsSynchronizationContext.cs
- ObjectDataSourceStatusEventArgs.cs
- DependencyPropertyAttribute.cs
- EntityDescriptor.cs
- Timer.cs
- TextPointer.cs
- PropertyChangedEventArgs.cs