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
- MobileFormsAuthentication.cs
- DetailsViewUpdateEventArgs.cs
- DesignerActionTextItem.cs
- XmlSignatureManifest.cs
- TabItemAutomationPeer.cs
- OperationResponse.cs
- InstanceHandle.cs
- GroupLabel.cs
- SqlDataSourceRefreshSchemaForm.cs
- PeerTransportSecuritySettings.cs
- PathFigureCollection.cs
- DivideByZeroException.cs
- UserControl.cs
- DefaultPrintController.cs
- lengthconverter.cs
- MediaEntryAttribute.cs
- XsdDuration.cs
- regiisutil.cs
- PropertyTabChangedEvent.cs
- DTCTransactionManager.cs
- UserPersonalizationStateInfo.cs
- ListViewContainer.cs
- LayoutTableCell.cs
- RoutedEventValueSerializer.cs
- CodeStatement.cs
- ProtocolViolationException.cs
- ObjectSpanRewriter.cs
- SamlSerializer.cs
- TableLayoutCellPaintEventArgs.cs
- ReferenceConverter.cs
- KeyTimeConverter.cs
- XPathArrayIterator.cs
- DataGridViewRowEventArgs.cs
- DrawItemEvent.cs
- DateTimeParse.cs
- SafeBuffer.cs
- XmlStringTable.cs
- SystemIPv4InterfaceProperties.cs
- HostingPreferredMapPath.cs
- HwndSubclass.cs
- ListViewEditEventArgs.cs
- ThreadExceptionDialog.cs
- LabelLiteral.cs
- DrawListViewItemEventArgs.cs
- LinkedResource.cs
- ExportOptions.cs
- MemberHolder.cs
- XmlSortKeyAccumulator.cs
- TextElement.cs
- shaper.cs
- TextEditorLists.cs
- ProtectedConfigurationSection.cs
- SQLBinaryStorage.cs
- ObfuscateAssemblyAttribute.cs
- XmlSchemaExporter.cs
- TableMethodGenerator.cs
- WebResourceAttribute.cs
- ContentTextAutomationPeer.cs
- SafeLocalMemHandle.cs
- RijndaelManagedTransform.cs
- TextRangeProviderWrapper.cs
- ReceiveDesigner.xaml.cs
- XmlTypeAttribute.cs
- WindowsGraphics2.cs
- Canvas.cs
- FirstMatchCodeGroup.cs
- OleDbDataAdapter.cs
- ContainerVisual.cs
- TextContainer.cs
- bidPrivateBase.cs
- PeerNameRecord.cs
- Part.cs
- DataGridViewComponentPropertyGridSite.cs
- OuterGlowBitmapEffect.cs
- SQLMoney.cs
- CustomWebEventKey.cs
- KeyGestureValueSerializer.cs
- RequiredFieldValidator.cs
- VirtualizedItemPattern.cs
- KeySpline.cs
- TableColumn.cs
- XPathNavigatorKeyComparer.cs
- DataTemplateKey.cs
- OrderedEnumerableRowCollection.cs
- TrackingQueryElement.cs
- RelatedEnd.cs
- GlyphShapingProperties.cs
- Array.cs
- ChangesetResponse.cs
- SHA512Managed.cs
- SafeProcessHandle.cs
- RegistryPermission.cs
- StrokeRenderer.cs
- PrimarySelectionGlyph.cs
- LogEntry.cs
- LineBreak.cs
- storepermission.cs
- XPathSelfQuery.cs
- GridViewRow.cs
- initElementDictionary.cs