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
- TimeZone.cs
- remotingproxy.cs
- EdmToObjectNamespaceMap.cs
- ParserExtension.cs
- PersonalizablePropertyEntry.cs
- ReferentialConstraintRoleElement.cs
- Geometry3D.cs
- TreeNodeBinding.cs
- StructuredCompositeActivityDesigner.cs
- TreeViewHitTestInfo.cs
- VarRemapper.cs
- TransactionsSectionGroup.cs
- EncoderParameters.cs
- TraceUtility.cs
- SemaphoreFullException.cs
- XmlSiteMapProvider.cs
- CultureSpecificCharacterBufferRange.cs
- SoapInteropTypes.cs
- XmlWhitespace.cs
- MobileControlsSectionHelper.cs
- Empty.cs
- DispatcherFrame.cs
- ImageField.cs
- IsolatedStorageFile.cs
- AbstractDataSvcMapFileLoader.cs
- WebPartEditorOkVerb.cs
- Splitter.cs
- IteratorFilter.cs
- ImageCodecInfo.cs
- LocalizedNameDescriptionPair.cs
- DoubleStorage.cs
- CompiledIdentityConstraint.cs
- CursorInteropHelper.cs
- RewritingProcessor.cs
- GridViewRow.cs
- ToolboxComponentsCreatedEventArgs.cs
- XPathPatternBuilder.cs
- FilterEventArgs.cs
- PaginationProgressEventArgs.cs
- SafeHandles.cs
- EventManager.cs
- StopStoryboard.cs
- SpecialNameAttribute.cs
- CharacterHit.cs
- QuadTree.cs
- CollectionDataContractAttribute.cs
- TimeManager.cs
- Transform.cs
- SoapEnumAttribute.cs
- ProxySimple.cs
- LinkTarget.cs
- Compress.cs
- PeerApplication.cs
- IOException.cs
- XmlAttributeCache.cs
- HScrollBar.cs
- MaskedTextBoxDesigner.cs
- DesignerTransactionCloseEvent.cs
- LocalizableAttribute.cs
- SafeReversePInvokeHandle.cs
- initElementDictionary.cs
- DataGridView.cs
- DbResourceAllocator.cs
- CodeEventReferenceExpression.cs
- WS2007FederationHttpBindingCollectionElement.cs
- GeneralTransformGroup.cs
- ElementUtil.cs
- UnauthorizedAccessException.cs
- Image.cs
- TreeViewEvent.cs
- DynamicDataManager.cs
- ScrollChrome.cs
- PersistencePipeline.cs
- FullTextLine.cs
- _AutoWebProxyScriptWrapper.cs
- MasterPageBuildProvider.cs
- SqlNotificationEventArgs.cs
- ViewgenContext.cs
- graph.cs
- MetadataPropertyAttribute.cs
- MissingMethodException.cs
- PreviewPrintController.cs
- DataGridRow.cs
- FilteredAttributeCollection.cs
- DbExpressionVisitor_TResultType.cs
- DocumentViewerConstants.cs
- SqlUdtInfo.cs
- SystemSounds.cs
- MarkupCompilePass1.cs
- RequestContext.cs
- StructuredTypeEmitter.cs
- TableDetailsRow.cs
- OleAutBinder.cs
- ExpressionBinding.cs
- RewritingSimplifier.cs
- BrushMappingModeValidation.cs
- TemplateControlBuildProvider.cs
- InputLanguageManager.cs
- PersonalizableAttribute.cs
- Property.cs