Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- _NtlmClient.cs
- PropertyMetadata.cs
- URLIdentityPermission.cs
- WhileDesigner.cs
- RegexWorker.cs
- Point3DKeyFrameCollection.cs
- CellConstant.cs
- EastAsianLunisolarCalendar.cs
- IUnknownConstantAttribute.cs
- CollectionContainer.cs
- DerivedKeyCachingSecurityTokenSerializer.cs
- AttributedMetaModel.cs
- SmtpNtlmAuthenticationModule.cs
- PermissionSetTriple.cs
- XPathBinder.cs
- WebControl.cs
- RichTextBox.cs
- SecurityUtils.cs
- GetPageCompletedEventArgs.cs
- SystemFonts.cs
- SqlCaseSimplifier.cs
- CellParaClient.cs
- CharKeyFrameCollection.cs
- DbModificationClause.cs
- WriteTimeStream.cs
- DataGridViewRowStateChangedEventArgs.cs
- TextEditor.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SQLInt16Storage.cs
- ToggleProviderWrapper.cs
- Rotation3DKeyFrameCollection.cs
- RuntimeWrappedException.cs
- EntityDataSourceSelectedEventArgs.cs
- GridItem.cs
- EDesignUtil.cs
- BuildProviderCollection.cs
- RtfToXamlReader.cs
- ServerValidateEventArgs.cs
- TransformCollection.cs
- StoreItemCollection.cs
- XmlSchemaObject.cs
- MonthCalendar.cs
- wgx_render.cs
- PositiveTimeSpanValidator.cs
- SingleAnimationUsingKeyFrames.cs
- ExtensionFile.cs
- UnsafeNativeMethods.cs
- PersonalizationAdministration.cs
- SettingsProperty.cs
- ValueTypeFixupInfo.cs
- AttachInfo.cs
- HtmlControlAdapter.cs
- bindurihelper.cs
- UriPrefixTable.cs
- ConvertEvent.cs
- ObjectDataSourceStatusEventArgs.cs
- BaseResourcesBuildProvider.cs
- DataGridComboBoxColumn.cs
- DbTransaction.cs
- ExtensionFile.cs
- CollectionViewGroup.cs
- MultiBindingExpression.cs
- BreakRecordTable.cs
- SmtpFailedRecipientException.cs
- RIPEMD160Managed.cs
- AxHost.cs
- BasicAsyncResult.cs
- LassoSelectionBehavior.cs
- InlineCollection.cs
- MsmqDecodeHelper.cs
- ApplicationServicesHostFactory.cs
- LineInfo.cs
- QuaternionValueSerializer.cs
- CollectionContainer.cs
- ComponentChangingEvent.cs
- IndexingContentUnit.cs
- EventMappingSettings.cs
- ListViewCommandEventArgs.cs
- CultureInfoConverter.cs
- QueryExecutionOption.cs
- ThreadStateException.cs
- Int32Storage.cs
- ObjectDataSourceDisposingEventArgs.cs
- DynamicContractTypeBuilder.cs
- GlobalAllocSafeHandle.cs
- BinaryFormatterSinks.cs
- ManagementObject.cs
- TransformerConfigurationWizardBase.cs
- PasswordTextContainer.cs
- SystemException.cs
- _UriSyntax.cs
- ReadOnlyPropertyMetadata.cs
- SimpleTextLine.cs
- DropShadowEffect.cs
- StatusBar.cs
- ObjectDisposedException.cs
- COM2IProvidePropertyBuilderHandler.cs
- Light.cs
- IndexerNameAttribute.cs
- EntityConnection.cs