Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TimeSpanSecondsOrInfiniteConverter.cs
- TextTreeInsertUndoUnit.cs
- RNGCryptoServiceProvider.cs
- PropertyToken.cs
- BamlLocalizableResourceKey.cs
- DesignerExtenders.cs
- SiteMapPathDesigner.cs
- Soap.cs
- FixedSOMTable.cs
- PeerNameRegistration.cs
- ShadowGlyph.cs
- SqlWorkflowPersistenceService.cs
- RawStylusInputCustomDataList.cs
- DomNameTable.cs
- HttpModuleCollection.cs
- CompressEmulationStream.cs
- DataServiceResponse.cs
- CodeRegionDirective.cs
- EastAsianLunisolarCalendar.cs
- XhtmlBasicLiteralTextAdapter.cs
- ProcessProtocolHandler.cs
- TrustManagerMoreInformation.cs
- _SslState.cs
- ExceptionUtil.cs
- ToRequest.cs
- ArithmeticLiteral.cs
- SByte.cs
- DateTimeConverter.cs
- DataSourceSelectArguments.cs
- XmlChildNodes.cs
- DbConnectionPoolCounters.cs
- PropertyChangedEventArgs.cs
- AppSettingsExpressionBuilder.cs
- TextContainer.cs
- CapabilitiesPattern.cs
- PointValueSerializer.cs
- XmlSchemaGroup.cs
- Transactions.cs
- AutomationElement.cs
- WindowsPrincipal.cs
- QueryResults.cs
- ProgressBarBrushConverter.cs
- AnimationLayer.cs
- XmlSchemaAll.cs
- TemplateControl.cs
- FileClassifier.cs
- TileBrush.cs
- HttpPostedFile.cs
- SourceElementsCollection.cs
- WindowsListBox.cs
- DataGridViewRowsRemovedEventArgs.cs
- CodeValidator.cs
- Parameter.cs
- XmlTextEncoder.cs
- StaticExtension.cs
- WebDisplayNameAttribute.cs
- StylusPoint.cs
- LinearGradientBrush.cs
- MetadataArtifactLoaderFile.cs
- SchemaComplexType.cs
- ToolStripDropDownClosedEventArgs.cs
- DetailsViewDeletedEventArgs.cs
- SqlRemoveConstantOrderBy.cs
- SqlDataSourceView.cs
- XmlElementList.cs
- InputGestureCollection.cs
- DataRecordInfo.cs
- ConfigXmlWhitespace.cs
- DataGridLinkButton.cs
- CodePageUtils.cs
- PriorityQueue.cs
- ProjectionPlanCompiler.cs
- XPathParser.cs
- RubberbandSelector.cs
- NumberFormatInfo.cs
- IBuiltInEvidence.cs
- Panel.cs
- HandlerMappingMemo.cs
- Selector.cs
- XmlSchemaProviderAttribute.cs
- DataServiceRequestException.cs
- UIPropertyMetadata.cs
- CryptoConfig.cs
- BuildProviderCollection.cs
- InternalConfigConfigurationFactory.cs
- HMACRIPEMD160.cs
- RemoteWebConfigurationHostStream.cs
- SortFieldComparer.cs
- PasswordTextContainer.cs
- CalendarDay.cs
- ControlParameter.cs
- ListItemCollection.cs
- fixedPageContentExtractor.cs
- EntityContainer.cs
- ShimAsPublicXamlType.cs
- X509Utils.cs
- SettingsBindableAttribute.cs
- FixedSOMContainer.cs
- COM2TypeInfoProcessor.cs
- Shape.cs