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
- ThreadStaticAttribute.cs
- DocumentReference.cs
- TextFormatterContext.cs
- WindowsListViewGroupSubsetLink.cs
- DataGridRelationshipRow.cs
- StyleBamlRecordReader.cs
- PathFigure.cs
- CorrelationManager.cs
- TextLineBreak.cs
- LocalizableAttribute.cs
- ImmComposition.cs
- DataGridViewCellConverter.cs
- CalendarButtonAutomationPeer.cs
- StylusPoint.cs
- ValidatorCollection.cs
- SafeCryptContextHandle.cs
- _Win32.cs
- PathFigureCollectionValueSerializer.cs
- UnsafeNativeMethods.cs
- HttpStreams.cs
- HtmlDocument.cs
- DrawingContextDrawingContextWalker.cs
- LabelExpression.cs
- PropertyPathWorker.cs
- SqlColumnizer.cs
- GraphicsPath.cs
- TypeSemantics.cs
- SqlParameterCollection.cs
- ElapsedEventArgs.cs
- PeerApplicationLaunchInfo.cs
- EntityContainerEmitter.cs
- DiscardableAttribute.cs
- InfoCardRequestException.cs
- TableSectionStyle.cs
- Stroke2.cs
- TemplateLookupAction.cs
- ScrollContentPresenter.cs
- VirtualDirectoryMapping.cs
- WebConfigurationHost.cs
- ContentTextAutomationPeer.cs
- EntityContainerEmitter.cs
- PermissionSetEnumerator.cs
- CompilationUtil.cs
- CodeSnippetStatement.cs
- MatrixTransform3D.cs
- FormViewModeEventArgs.cs
- ExpressionVisitorHelpers.cs
- ArgIterator.cs
- RadioButton.cs
- GeometryModel3D.cs
- DBBindings.cs
- TextProperties.cs
- OleDbRowUpdatingEvent.cs
- SqlVersion.cs
- CompilerCollection.cs
- StrokeCollectionConverter.cs
- _ListenerResponseStream.cs
- MonthChangedEventArgs.cs
- KeyValuePairs.cs
- VirtualPathData.cs
- XmlConverter.cs
- ByteConverter.cs
- HttpHandlersSection.cs
- DateTimeConverter2.cs
- InlineObject.cs
- ImagingCache.cs
- MimeTextImporter.cs
- SoapAttributeAttribute.cs
- EmbeddedMailObject.cs
- _NegotiateClient.cs
- GlobalEventManager.cs
- Timer.cs
- EmptyEnumerator.cs
- HttpContext.cs
- CopyCodeAction.cs
- ServiceContractAttribute.cs
- HttpProfileGroupBase.cs
- TextStore.cs
- WebServiceParameterData.cs
- XmlElementElementCollection.cs
- TileBrush.cs
- MappingException.cs
- TranslateTransform3D.cs
- PeerToPeerException.cs
- __Filters.cs
- WinHttpWebProxyFinder.cs
- DescendantQuery.cs
- RequestNavigateEventArgs.cs
- PerformanceCounterPermissionEntry.cs
- ObjectHelper.cs
- MessageContractMemberAttribute.cs
- WpfPayload.cs
- OracleString.cs
- MeshGeometry3D.cs
- precedingquery.cs
- Number.cs
- HtmlControl.cs
- MimePart.cs
- XmlSchemaSimpleTypeRestriction.cs
- AssemblyAssociatedContentFileAttribute.cs