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
- DataGridViewCellStyleConverter.cs
- BindingSourceDesigner.cs
- ChangeDirector.cs
- OdbcHandle.cs
- WebBaseEventKeyComparer.cs
- Source.cs
- SocketAddress.cs
- BevelBitmapEffect.cs
- StatusBarPanel.cs
- GroupQuery.cs
- AssemblyCache.cs
- DBCommand.cs
- AttachmentService.cs
- CancellationHandlerDesigner.cs
- WhitespaceRuleReader.cs
- ControlCollection.cs
- cache.cs
- XsdBuildProvider.cs
- TriggerActionCollection.cs
- TemplateNameScope.cs
- Module.cs
- ReflectionUtil.cs
- Win32Exception.cs
- Win32.cs
- RecommendedAsConfigurableAttribute.cs
- ListControlDesigner.cs
- COM2AboutBoxPropertyDescriptor.cs
- DataGridParentRows.cs
- MetafileHeaderWmf.cs
- DaylightTime.cs
- DisplayInformation.cs
- DataGridViewRowsRemovedEventArgs.cs
- PrintPageEvent.cs
- ToolStripStatusLabel.cs
- ProtocolsConfigurationHandler.cs
- XamlDebuggerXmlReader.cs
- EntitySqlQueryCacheEntry.cs
- EDesignUtil.cs
- Atom10FormatterFactory.cs
- TextContainerChangedEventArgs.cs
- DBNull.cs
- TextServicesManager.cs
- TCPClient.cs
- WebScriptMetadataInstanceContextProvider.cs
- SponsorHelper.cs
- ExtensionSimplifierMarkupObject.cs
- ReliableRequestSessionChannel.cs
- MetabaseSettingsIis7.cs
- SystemIPv4InterfaceProperties.cs
- CrossContextChannel.cs
- LocalizabilityAttribute.cs
- Clause.cs
- UseLicense.cs
- PermissionListSet.cs
- NamespaceList.cs
- PropertyInfoSet.cs
- DataListItemEventArgs.cs
- CodeTypeOfExpression.cs
- ObjectStateManager.cs
- ClientScriptItem.cs
- ProcessModelSection.cs
- ReferencedAssembly.cs
- OdbcReferenceCollection.cs
- DataList.cs
- Util.cs
- DependencyPropertyKind.cs
- InfoCardSchemas.cs
- HtmlInputControl.cs
- ToolStripDropDownButton.cs
- CustomTypeDescriptor.cs
- EnumConverter.cs
- ConfigurationSchemaErrors.cs
- CodeGenerator.cs
- TransactionInformation.cs
- CacheChildrenQuery.cs
- ProgressBar.cs
- DataTableNewRowEvent.cs
- DesignTimeVisibleAttribute.cs
- SQLResource.cs
- HostProtectionException.cs
- CompilerResults.cs
- Floater.cs
- StatusBarPanelClickEvent.cs
- DataServiceContext.cs
- FilterElement.cs
- FileEnumerator.cs
- EdmComplexPropertyAttribute.cs
- unsafenativemethodsother.cs
- PipelineModuleStepContainer.cs
- LineServicesRun.cs
- Grid.cs
- ItemList.cs
- ScriptControlManager.cs
- ParamArrayAttribute.cs
- DaylightTime.cs
- TextModifier.cs
- PermissionRequestEvidence.cs
- handlecollector.cs
- Process.cs
- ProfileSection.cs