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
- LinqDataSourceContextEventArgs.cs
- ImageList.cs
- RecordManager.cs
- TemplateBamlTreeBuilder.cs
- ObjectDataSourceStatusEventArgs.cs
- TraceSource.cs
- AppSettingsReader.cs
- AspCompat.cs
- HttpConfigurationSystem.cs
- AllMembershipCondition.cs
- AstTree.cs
- VisualTreeHelper.cs
- PropertyDescriptorCollection.cs
- LinqDataSourceDeleteEventArgs.cs
- EventRoute.cs
- RoleService.cs
- SymLanguageVendor.cs
- HostingMessageProperty.cs
- RegexWorker.cs
- TimeManager.cs
- StylusLogic.cs
- GraphicsPathIterator.cs
- FormatterConverter.cs
- SystemThemeKey.cs
- WriteableOnDemandPackagePart.cs
- StringKeyFrameCollection.cs
- ModuleBuilderData.cs
- WinInet.cs
- TargetInvocationException.cs
- HebrewNumber.cs
- ToolStripStatusLabel.cs
- WSFederationHttpBindingCollectionElement.cs
- RootBuilder.cs
- ReferentialConstraint.cs
- IriParsingElement.cs
- FunctionCommandText.cs
- OracleParameter.cs
- DynamicDiscoSearcher.cs
- DesignerCommandAdapter.cs
- DesignerTransactionCloseEvent.cs
- XmlAtomicValue.cs
- ReferenceService.cs
- ControlValuePropertyAttribute.cs
- DataFormats.cs
- StorageMappingItemCollection.cs
- TdsParserStaticMethods.cs
- MatrixUtil.cs
- SqlDataReader.cs
- ExtenderProvidedPropertyAttribute.cs
- QueryStringHandler.cs
- OdbcParameter.cs
- XmlChoiceIdentifierAttribute.cs
- CryptoApi.cs
- PageContentAsyncResult.cs
- LinqDataSourceContextEventArgs.cs
- CodeIndexerExpression.cs
- HttpPostedFile.cs
- _NetRes.cs
- ActivityExecutorSurrogate.cs
- GroupItemAutomationPeer.cs
- Delegate.cs
- Color.cs
- TypeGeneratedEventArgs.cs
- DiscoveryServerProtocol.cs
- ZipIOExtraFieldPaddingElement.cs
- OleDbMetaDataFactory.cs
- IsolatedStorageFileStream.cs
- FontUnit.cs
- URL.cs
- ListenerHandler.cs
- ToolStripDropDownMenu.cs
- __FastResourceComparer.cs
- UnsafeNativeMethods.cs
- DependentList.cs
- SettingsProviderCollection.cs
- Pointer.cs
- Win32SafeHandles.cs
- SystemIPAddressInformation.cs
- WebControlsSection.cs
- ColumnPropertiesGroup.cs
- InternalUserCancelledException.cs
- GroupBoxRenderer.cs
- FixedPage.cs
- AdornedElementPlaceholder.cs
- Models.cs
- SqlGatherConsumedAliases.cs
- StringConverter.cs
- SQLDecimal.cs
- EventEntry.cs
- PublishLicense.cs
- DecimalMinMaxAggregationOperator.cs
- RadioButtonFlatAdapter.cs
- EncryptedXml.cs
- ButtonBase.cs
- StreamUpgradeInitiator.cs
- QueryPageSettingsEventArgs.cs
- WebBrowser.cs
- JavaScriptSerializer.cs
- XmlLoader.cs
- PageContentAsyncResult.cs