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
- DropDownButton.cs
- DragStartedEventArgs.cs
- _RequestCacheProtocol.cs
- SmtpAuthenticationManager.cs
- CookielessData.cs
- HandledMouseEvent.cs
- MetadataImporterQuotas.cs
- TdsEnums.cs
- TimeStampChecker.cs
- ComponentCommands.cs
- OpacityConverter.cs
- Peer.cs
- XmlCodeExporter.cs
- UserPreferenceChangingEventArgs.cs
- MulticastNotSupportedException.cs
- ConfigurationSettings.cs
- DrawingCollection.cs
- TextBoxDesigner.cs
- Cursor.cs
- LinkedList.cs
- RawStylusInput.cs
- EmptyQuery.cs
- OrderedHashRepartitionEnumerator.cs
- Stroke2.cs
- ThreadStartException.cs
- WindowsImpersonationContext.cs
- SuppressMergeCheckAttribute.cs
- httpstaticobjectscollection.cs
- ComAwareEventInfo.cs
- SimpleApplicationHost.cs
- TypefaceMap.cs
- HyperLinkStyle.cs
- GeometryCombineModeValidation.cs
- VectorConverter.cs
- Delegate.cs
- CompilerErrorCollection.cs
- OdbcStatementHandle.cs
- LinkLabelLinkClickedEvent.cs
- OrderByBuilder.cs
- Crc32.cs
- PersistenceTypeAttribute.cs
- AssociativeAggregationOperator.cs
- ZipIOExtraFieldPaddingElement.cs
- ListControl.cs
- ExchangeUtilities.cs
- LazyTextWriterCreator.cs
- OletxDependentTransaction.cs
- FolderLevelBuildProvider.cs
- CodeNamespaceCollection.cs
- CookieParameter.cs
- ConfigurationErrorsException.cs
- SettingsSection.cs
- DependencyObjectType.cs
- IndicFontClient.cs
- TemplateColumn.cs
- GcSettings.cs
- ObjectListCommandEventArgs.cs
- SessionParameter.cs
- AuthenticationModuleElement.cs
- KeyValueSerializer.cs
- Properties.cs
- WasHttpHandlersInstallComponent.cs
- TabControlAutomationPeer.cs
- StackOverflowException.cs
- NameObjectCollectionBase.cs
- SelectionItemProviderWrapper.cs
- HttpRequestBase.cs
- FieldBuilder.cs
- ButtonChrome.cs
- IncrementalHitTester.cs
- EastAsianLunisolarCalendar.cs
- RemotingConfigParser.cs
- CredentialSelector.cs
- Inline.cs
- Screen.cs
- DbXmlEnabledProviderManifest.cs
- RefExpr.cs
- FrameworkContentElement.cs
- ArithmeticException.cs
- AssemblyUtil.cs
- SingleResultAttribute.cs
- DriveInfo.cs
- ProgressBarAutomationPeer.cs
- RenderingBiasValidation.cs
- CharacterString.cs
- HostedTransportConfigurationBase.cs
- XPathDocument.cs
- ComAdminInterfaces.cs
- AutomationPatternInfo.cs
- TagPrefixCollection.cs
- GeometryModel3D.cs
- remotingproxy.cs
- ScrollContentPresenter.cs
- DiagnosticTrace.cs
- BindingSource.cs
- XmlUrlEditor.cs
- NamedObject.cs
- ModelFactory.cs
- SqlDataSourceSelectingEventArgs.cs
- ControlBuilder.cs