Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SessionKeyExpiredException.cs
- PersonalizationProvider.cs
- RuleRefElement.cs
- CrossSiteScriptingValidation.cs
- FrameworkName.cs
- NaturalLanguageHyphenator.cs
- LambdaReference.cs
- BulletedListEventArgs.cs
- XmlBaseReader.cs
- CompositionAdorner.cs
- XmlSchemaElement.cs
- SafeCoTaskMem.cs
- SingleConverter.cs
- RenderTargetBitmap.cs
- FilterQuery.cs
- FileLogRecordEnumerator.cs
- ThreadSafeList.cs
- HMACSHA512.cs
- ControlType.cs
- ClientUtils.cs
- SplayTreeNode.cs
- HtmlShimManager.cs
- SessionStateModule.cs
- XmlNullResolver.cs
- CodePageUtils.cs
- Debug.cs
- X500Name.cs
- EmptyEnumerator.cs
- InlineCategoriesDocument.cs
- ProtectedConfigurationProviderCollection.cs
- CheckedPointers.cs
- ToolStripDropDownButton.cs
- WindowsRichEditRange.cs
- SqlServices.cs
- FixedSOMPage.cs
- TableRowGroup.cs
- _UriTypeConverter.cs
- ISessionStateStore.cs
- EntityDataSourceContainerNameConverter.cs
- GridViewDeleteEventArgs.cs
- IgnoreDeviceFilterElement.cs
- LayoutEvent.cs
- Propagator.JoinPropagator.cs
- ActivityUtilities.cs
- XmlDictionaryReaderQuotasElement.cs
- PersistenceContextEnlistment.cs
- RepeaterItem.cs
- ColumnWidthChangingEvent.cs
- CfgParser.cs
- DetailsViewRowCollection.cs
- XPathPatternParser.cs
- _PooledStream.cs
- Substitution.cs
- AnnotationResourceChangedEventArgs.cs
- CompositionAdorner.cs
- COM2FontConverter.cs
- Opcode.cs
- WaitHandleCannotBeOpenedException.cs
- HttpListenerRequest.cs
- DataSourceDescriptorCollection.cs
- ToolStripArrowRenderEventArgs.cs
- TraceListener.cs
- MasterPageParser.cs
- InternalResources.cs
- PersonalizationProviderHelper.cs
- DBParameter.cs
- LongValidator.cs
- SmtpNetworkElement.cs
- _NegoState.cs
- GenerateScriptTypeAttribute.cs
- DiscoveryInnerClientAdhoc11.cs
- AnimationLayer.cs
- GridViewRowEventArgs.cs
- DocumentEventArgs.cs
- SwitchCase.cs
- OleDbError.cs
- ResolveMatchesMessageCD1.cs
- ImplicitInputBrush.cs
- NewItemsContextMenuStrip.cs
- AttachedAnnotationChangedEventArgs.cs
- CellParaClient.cs
- Pair.cs
- TableProviderWrapper.cs
- DesignerSerializationVisibilityAttribute.cs
- UnsafeNativeMethodsPenimc.cs
- ObjectToIdCache.cs
- JapaneseLunisolarCalendar.cs
- ErasingStroke.cs
- XmlSchemaSimpleContent.cs
- AnimationClockResource.cs
- ParserExtension.cs
- ApplicationTrust.cs
- SchemaElementLookUpTable.cs
- ListViewSortEventArgs.cs
- DecodeHelper.cs
- CodeGeneratorOptions.cs
- CacheOutputQuery.cs
- TextRenderer.cs
- FloaterParagraph.cs
- HttpRuntime.cs