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
- ScrollEvent.cs
- MsmqIntegrationBindingCollectionElement.cs
- PostBackOptions.cs
- EntityDataSourceDataSelection.cs
- GlyphCache.cs
- DataList.cs
- ProxyFragment.cs
- ListBoxAutomationPeer.cs
- SqlConnectionFactory.cs
- ResourcePermissionBase.cs
- SystemColors.cs
- TextParagraphView.cs
- TextEditorThreadLocalStore.cs
- HttpProcessUtility.cs
- MethodBuilder.cs
- ProxyGenerator.cs
- ListViewUpdateEventArgs.cs
- PropertyChangingEventArgs.cs
- EngineSiteSapi.cs
- DataSourceHelper.cs
- CqlGenerator.cs
- CustomTokenProvider.cs
- XappLauncher.cs
- Rect3D.cs
- EditCommandColumn.cs
- HtmlMeta.cs
- XmlAttributeCache.cs
- BuiltInExpr.cs
- DataTable.cs
- WizardStepBase.cs
- GiveFeedbackEventArgs.cs
- ConfigurationConverterBase.cs
- PolyBezierSegmentFigureLogic.cs
- SHA512.cs
- XmlJsonReader.cs
- GatewayDefinition.cs
- MailSettingsSection.cs
- EntityDataSourceContextCreatedEventArgs.cs
- AbsoluteQuery.cs
- HtmlMobileTextWriter.cs
- XmlUnspecifiedAttribute.cs
- List.cs
- ParserExtension.cs
- DbUpdateCommandTree.cs
- NamedObject.cs
- Helpers.cs
- PropertyInformationCollection.cs
- SchemaNamespaceManager.cs
- ScriptManager.cs
- SchemaImporter.cs
- MenuItem.cs
- CompareValidator.cs
- StreamUpgradeBindingElement.cs
- FamilyMapCollection.cs
- MergeFailedEvent.cs
- ComNativeDescriptor.cs
- SolidColorBrush.cs
- Visual3D.cs
- FaultDesigner.cs
- WebReferencesBuildProvider.cs
- InputScopeConverter.cs
- Accessible.cs
- NavigatorInput.cs
- FontEmbeddingManager.cs
- SQLInt64.cs
- GroupStyle.cs
- StructureChangedEventArgs.cs
- UseAttributeSetsAction.cs
- HitTestWithPointDrawingContextWalker.cs
- ConfigurationStrings.cs
- StringTraceRecord.cs
- XmlProcessingInstruction.cs
- NotImplementedException.cs
- ToolZone.cs
- NullableDecimalAverageAggregationOperator.cs
- CategoryNameCollection.cs
- HighlightComponent.cs
- ExpressionPrinter.cs
- ByteStorage.cs
- XmlSchemaObjectCollection.cs
- ScrollBarRenderer.cs
- BindStream.cs
- BrowserCapabilitiesFactoryBase.cs
- TypedReference.cs
- SafeEventLogReadHandle.cs
- UnsafeNativeMethods.cs
- InternalCache.cs
- StickyNoteContentControl.cs
- ShaderEffect.cs
- Debug.cs
- InkCanvasSelection.cs
- TagElement.cs
- DataGridSortCommandEventArgs.cs
- StickyNote.cs
- HtmlMeta.cs
- ToolBar.cs
- UserControl.cs
- WindowsButton.cs
- XappLauncher.cs
- TextBoxRenderer.cs