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
- BufferedStream.cs
- TimeoutException.cs
- BamlTreeUpdater.cs
- ColumnCollection.cs
- MemberInfoSerializationHolder.cs
- CqlErrorHelper.cs
- FormsAuthenticationUserCollection.cs
- CircleHotSpot.cs
- XmlSchemaSimpleContent.cs
- ConsumerConnectionPointCollection.cs
- _NtlmClient.cs
- XPathNodeInfoAtom.cs
- Token.cs
- ExceptionUtil.cs
- PointValueSerializer.cs
- XmlQueryType.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SourceFileInfo.cs
- GenericRootAutomationPeer.cs
- WpfSharedXamlSchemaContext.cs
- HostedElements.cs
- _Win32.cs
- EntityUtil.cs
- LayoutDump.cs
- StyleXamlParser.cs
- CodeMemberEvent.cs
- JsonServiceDocumentSerializer.cs
- GlyphShapingProperties.cs
- WebMessageEncoderFactory.cs
- TaiwanCalendar.cs
- QilReference.cs
- ReadOnlyAttribute.cs
- AdapterDictionary.cs
- ToolStripControlHost.cs
- XamlPoint3DCollectionSerializer.cs
- UseAttributeSetsAction.cs
- QueryTaskGroupState.cs
- PerformanceCounterPermissionAttribute.cs
- HitTestFilterBehavior.cs
- OrthographicCamera.cs
- LogExtent.cs
- XPathDescendantIterator.cs
- TemplatedAdorner.cs
- BuildResultCache.cs
- UserPreference.cs
- DiagnosticsConfigurationHandler.cs
- HttpWriter.cs
- FontNamesConverter.cs
- QualifiedId.cs
- RemotingSurrogateSelector.cs
- IncrementalHitTester.cs
- BaseConfigurationRecord.cs
- PeerHelpers.cs
- KeyValuePair.cs
- XamlWriter.cs
- OdbcConnectionFactory.cs
- WebServiceData.cs
- DiscoveryExceptionDictionary.cs
- CodeMemberEvent.cs
- HttpListener.cs
- ArraySortHelper.cs
- DtcInterfaces.cs
- HtmlAnchor.cs
- InputLanguageProfileNotifySink.cs
- XsltQilFactory.cs
- Bitmap.cs
- DataColumn.cs
- SystemIPv6InterfaceProperties.cs
- RoutedEvent.cs
- EntityDataSourceUtil.cs
- EastAsianLunisolarCalendar.cs
- DoubleAnimationUsingPath.cs
- shaperfactory.cs
- HttpApplicationFactory.cs
- ThumbAutomationPeer.cs
- XmlCountingReader.cs
- _TransmitFileOverlappedAsyncResult.cs
- UnicodeEncoding.cs
- ImageSourceConverter.cs
- InputProviderSite.cs
- Subset.cs
- ListViewUpdatedEventArgs.cs
- SourceLineInfo.cs
- Filter.cs
- ImagingCache.cs
- ElementNotEnabledException.cs
- __Error.cs
- IsolatedStorage.cs
- WindowsTooltip.cs
- MessageDesigner.cs
- SettingsPropertyWrongTypeException.cs
- BuildProvider.cs
- linebase.cs
- HMACSHA1.cs
- ButtonFlatAdapter.cs
- SectionRecord.cs
- Paragraph.cs
- Msmq.cs
- TextParentUndoUnit.cs
- GACIdentityPermission.cs