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
- cookie.cs
- FacetEnabledSchemaElement.cs
- HttpStaticObjectsCollectionWrapper.cs
- XmlArrayItemAttribute.cs
- TypeSource.cs
- TextOptions.cs
- CollectionDataContractAttribute.cs
- Point3D.cs
- KeyEventArgs.cs
- JoinSymbol.cs
- UnsafeNativeMethods.cs
- WebSysDisplayNameAttribute.cs
- XPathNodePointer.cs
- CustomExpressionEventArgs.cs
- OptimizedTemplateContentHelper.cs
- sitestring.cs
- TablePatternIdentifiers.cs
- ItemsControlAutomationPeer.cs
- SqlGenerator.cs
- AutoScrollHelper.cs
- AnonymousIdentificationModule.cs
- ChoiceConverter.cs
- MeasureItemEvent.cs
- UnsafeNativeMethods.cs
- HtmlFormParameterReader.cs
- DirectoryGroupQuery.cs
- ItemType.cs
- CodeObjectCreateExpression.cs
- FormViewDeleteEventArgs.cs
- DBSchemaTable.cs
- UserPreferenceChangedEventArgs.cs
- MatchSingleFxEngineOpcode.cs
- SqlMethodCallConverter.cs
- UserControlParser.cs
- Stack.cs
- RsaSecurityTokenAuthenticator.cs
- RenderCapability.cs
- Typography.cs
- SQLByteStorage.cs
- OrderedDictionaryStateHelper.cs
- PersonalizationDictionary.cs
- SizeChangedInfo.cs
- CoTaskMemHandle.cs
- IpcManager.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- CodeObject.cs
- StandardToolWindows.cs
- ExecutionContext.cs
- MonthCalendar.cs
- TextParentUndoUnit.cs
- RepeaterItemEventArgs.cs
- LightweightCodeGenerator.cs
- Random.cs
- ColumnHeaderConverter.cs
- XmlSchema.cs
- RightsDocument.cs
- DebugView.cs
- DocumentGridContextMenu.cs
- GlobalizationSection.cs
- PropertyBuilder.cs
- BinaryUtilClasses.cs
- NavigationProperty.cs
- TreeViewImageIndexConverter.cs
- HyperLinkField.cs
- SignatureTargetIdManager.cs
- QilLoop.cs
- ProxyManager.cs
- DoubleLink.cs
- TdsParserSafeHandles.cs
- FrameworkTextComposition.cs
- sitestring.cs
- MetadataArtifactLoader.cs
- DataRecordInternal.cs
- MediaTimeline.cs
- BoolExpressionVisitors.cs
- ListSortDescription.cs
- _LocalDataStoreMgr.cs
- AnnotationDocumentPaginator.cs
- MeasureData.cs
- DurationConverter.cs
- Facet.cs
- PerformanceCounterManager.cs
- InfoCardBaseException.cs
- TypeExtensionConverter.cs
- MetadataCache.cs
- SiteMapDataSourceView.cs
- StorageConditionPropertyMapping.cs
- StateDesignerConnector.cs
- RichTextBoxAutomationPeer.cs
- LogicalTreeHelper.cs
- Input.cs
- ItemAutomationPeer.cs
- ProxyAttribute.cs
- RequiredArgumentAttribute.cs
- SQLInt16.cs
- ObjectStateManager.cs
- BufferBuilder.cs
- XNameTypeConverter.cs
- InstanceKeyNotReadyException.cs
- MediaCommands.cs