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
- Win32KeyboardDevice.cs
- SafeEventLogWriteHandle.cs
- CrossSiteScriptingValidation.cs
- EventsTab.cs
- LinqDataSourceContextEventArgs.cs
- TextDecoration.cs
- RequestCacheManager.cs
- RadioButtonPopupAdapter.cs
- Version.cs
- XslUrlEditor.cs
- AppearanceEditorPart.cs
- DataGridBoolColumn.cs
- ContextMenu.cs
- BaseComponentEditor.cs
- DbMetaDataCollectionNames.cs
- XPathBinder.cs
- Form.cs
- AxisAngleRotation3D.cs
- JapaneseCalendar.cs
- Timeline.cs
- WindowsGraphics.cs
- FocusChangedEventArgs.cs
- InstanceDescriptor.cs
- ExpandedProjectionNode.cs
- DivideByZeroException.cs
- Splitter.cs
- LinqDataSourceContextEventArgs.cs
- DocumentPageHost.cs
- DesignColumn.cs
- FixedNode.cs
- ActivityTrace.cs
- basevalidator.cs
- RectIndependentAnimationStorage.cs
- GridView.cs
- TerminatorSinks.cs
- HttpPostClientProtocol.cs
- BinaryObjectInfo.cs
- HuffCodec.cs
- GeneralTransform2DTo3DTo2D.cs
- GlyphTypeface.cs
- Timeline.cs
- TemplateInstanceAttribute.cs
- Byte.cs
- WindowsListViewScroll.cs
- XPathPatternBuilder.cs
- XmlDataLoader.cs
- Asn1IntegerConverter.cs
- InitialServerConnectionReader.cs
- MappingModelBuildProvider.cs
- SupportingTokenBindingElement.cs
- FamilyTypefaceCollection.cs
- PtsContext.cs
- InputProcessorProfilesLoader.cs
- XmlSchemaAnnotated.cs
- FamilyMapCollection.cs
- XmlDataSource.cs
- BlockCollection.cs
- AppSettingsSection.cs
- ResourceAssociationSetEnd.cs
- DataViewListener.cs
- NavigationPropertyAccessor.cs
- WpfGeneratedKnownProperties.cs
- PrintDialog.cs
- SelectionItemPatternIdentifiers.cs
- ViewBase.cs
- ContainerParaClient.cs
- FixedHyperLink.cs
- BypassElement.cs
- HttpCacheVaryByContentEncodings.cs
- PersonalizableTypeEntry.cs
- StringExpressionSet.cs
- ChannelServices.cs
- ExclusiveNamedPipeTransportManager.cs
- NavigationCommands.cs
- ExclusiveTcpListener.cs
- PersonalizationProvider.cs
- ImageBrush.cs
- LinqDataSourceDisposeEventArgs.cs
- ConfigXmlWhitespace.cs
- ToolStripItem.cs
- PolicyLevel.cs
- ColumnResizeUndoUnit.cs
- MetadataException.cs
- Trigger.cs
- MembershipValidatePasswordEventArgs.cs
- VScrollProperties.cs
- ResourceDisplayNameAttribute.cs
- UIElementPropertyUndoUnit.cs
- CacheVirtualItemsEvent.cs
- Glyph.cs
- AuthenticationSection.cs
- NotFiniteNumberException.cs
- SqlConnectionHelper.cs
- OdbcReferenceCollection.cs
- HttpConfigurationContext.cs
- ClientSession.cs
- DataSourceExpression.cs
- CurrencyManager.cs
- ActivationArguments.cs
- WeakReferenceList.cs