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
- FindRequestContext.cs
- odbcmetadatafactory.cs
- KeyBinding.cs
- TextPattern.cs
- ShapeTypeface.cs
- DataGridViewRowEventArgs.cs
- LocationSectionRecord.cs
- SelectionChangedEventArgs.cs
- DataGridViewCellConverter.cs
- Util.cs
- MenuAdapter.cs
- ValidatorCompatibilityHelper.cs
- DataGridViewButtonCell.cs
- ICspAsymmetricAlgorithm.cs
- SortedList.cs
- Rect.cs
- ThreadAttributes.cs
- AppDomain.cs
- SafeFileMapViewHandle.cs
- ScriptIgnoreAttribute.cs
- SafeTimerHandle.cs
- SecurityKeyUsage.cs
- ListChangedEventArgs.cs
- WebRequestModuleElement.cs
- basemetadatamappingvisitor.cs
- InternalControlCollection.cs
- DataGridViewSelectedCellCollection.cs
- ScalarRestriction.cs
- userdatakeys.cs
- WindowsContainer.cs
- GuidConverter.cs
- Rect.cs
- CrossContextChannel.cs
- HostedBindingBehavior.cs
- SpecialNameAttribute.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- References.cs
- DataContractJsonSerializer.cs
- ContextStack.cs
- _AutoWebProxyScriptEngine.cs
- XsltArgumentList.cs
- UdpReplyToBehavior.cs
- CriticalFinalizerObject.cs
- ToolStripPanelRow.cs
- Marshal.cs
- TextLine.cs
- basevalidator.cs
- RIPEMD160.cs
- DrawingImage.cs
- SplitContainer.cs
- DataFormats.cs
- FacetValues.cs
- BamlBinaryReader.cs
- OutputCacheProfile.cs
- CharAnimationBase.cs
- VectorAnimation.cs
- StringArrayConverter.cs
- ellipse.cs
- FrameworkElementFactory.cs
- PageAsyncTaskManager.cs
- TreeViewBindingsEditorForm.cs
- BamlRecords.cs
- TypeConverterAttribute.cs
- RuleConditionDialog.Designer.cs
- ReservationNotFoundException.cs
- HtmlObjectListAdapter.cs
- InvalidCommandTreeException.cs
- DeferredRunTextReference.cs
- PointLight.cs
- RuntimeConfigurationRecord.cs
- CDSCollectionETWBCLProvider.cs
- FontWeights.cs
- PreProcessInputEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- ParserStreamGeometryContext.cs
- PartialClassGenerationTask.cs
- ObjectContextServiceProvider.cs
- BaseValidator.cs
- RootBrowserWindowProxy.cs
- SqlDataSourceView.cs
- PieceDirectory.cs
- EventMappingSettingsCollection.cs
- ProjectionPathSegment.cs
- TextRangeBase.cs
- Material.cs
- SmtpMail.cs
- RadioButtonStandardAdapter.cs
- DTCTransactionManager.cs
- VoiceInfo.cs
- EncoderBestFitFallback.cs
- COM2EnumConverter.cs
- DistributedTransactionPermission.cs
- MimeFormatter.cs
- InputBinder.cs
- FrameworkTemplate.cs
- ProjectionCamera.cs
- sqlnorm.cs
- OdbcHandle.cs
- PerformanceCounterPermission.cs
- NullableConverter.cs