Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Int64AnimationBase.cs
- SrgsDocumentParser.cs
- QueueProcessor.cs
- FontResourceCache.cs
- HashCodeCombiner.cs
- StorageEndPropertyMapping.cs
- SynchronizedChannelCollection.cs
- ColorMap.cs
- DataSysAttribute.cs
- BitmapDownload.cs
- DataList.cs
- ModelEditingScope.cs
- RuntimeResourceSet.cs
- MediaTimeline.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- TabRenderer.cs
- AuthenticationSection.cs
- Timeline.cs
- DateTimeStorage.cs
- AlphaSortedEnumConverter.cs
- EventLogger.cs
- XmlAttributeProperties.cs
- sqlstateclientmanager.cs
- ToolBarOverflowPanel.cs
- AccessKeyManager.cs
- XmlSchemas.cs
- AttributeEmitter.cs
- StandardOleMarshalObject.cs
- BitmapCodecInfo.cs
- SchemaImporter.cs
- BrowsableAttribute.cs
- SqlClientFactory.cs
- ResXDataNode.cs
- Page.cs
- ProcessHostMapPath.cs
- StrokeDescriptor.cs
- SafeSecurityHandles.cs
- CollectionBuilder.cs
- ToolStripButton.cs
- RangeValidator.cs
- ButtonAutomationPeer.cs
- UxThemeWrapper.cs
- MultipleCopiesCollection.cs
- ToolStripItemClickedEventArgs.cs
- PropertySegmentSerializer.cs
- ContentElement.cs
- SoapSchemaImporter.cs
- ConstraintEnumerator.cs
- DataSourceXmlSerializer.cs
- JsonDeserializer.cs
- PingReply.cs
- input.cs
- LassoSelectionBehavior.cs
- TextDocumentView.cs
- MultilineStringConverter.cs
- XmlWhitespace.cs
- InputGestureCollection.cs
- AxDesigner.cs
- SafeArrayTypeMismatchException.cs
- ToolStripHighContrastRenderer.cs
- BindingMemberInfo.cs
- Size.cs
- SqlMethods.cs
- BooleanToVisibilityConverter.cs
- XmlBoundElement.cs
- WebColorConverter.cs
- EditorServiceContext.cs
- DataObjectAttribute.cs
- StylusCaptureWithinProperty.cs
- PointCollectionValueSerializer.cs
- IconHelper.cs
- LostFocusEventManager.cs
- COM2EnumConverter.cs
- TemplatingOptionsDialog.cs
- ContainerControl.cs
- CompressedStack.cs
- DataGridViewImageCell.cs
- WebPartVerb.cs
- ServerValidateEventArgs.cs
- JsonStringDataContract.cs
- columnmapkeybuilder.cs
- TextServicesLoader.cs
- Page.cs
- MetadataSection.cs
- HTMLTagNameToTypeMapper.cs
- TextTreeFixupNode.cs
- SiteOfOriginPart.cs
- ObjectViewEntityCollectionData.cs
- SqlUnionizer.cs
- DataGridPagerStyle.cs
- RoleManagerEventArgs.cs
- newinstructionaction.cs
- BasePropertyDescriptor.cs
- versioninfo.cs
- ModelEditingScope.cs
- InstanceData.cs
- GroupJoinQueryOperator.cs
- ExpressionPrinter.cs
- InertiaRotationBehavior.cs
- SafeRightsManagementQueryHandle.cs