Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- AssociationProvider.cs
- PrePrepareMethodAttribute.cs
- DesignerTextViewAdapter.cs
- BaseServiceProvider.cs
- ConditionCollection.cs
- XMLDiffLoader.cs
- ActiveXSite.cs
- DataColumn.cs
- XmlQueryCardinality.cs
- X509CertificateCollection.cs
- HttpHandler.cs
- CmsInterop.cs
- CreateUserWizardStep.cs
- PseudoWebRequest.cs
- Viewport3DAutomationPeer.cs
- WmiEventSink.cs
- NamedPipeProcessProtocolHandler.cs
- SqlMethodCallConverter.cs
- StaticDataManager.cs
- WorkflowServiceHost.cs
- WebPartMinimizeVerb.cs
- MouseWheelEventArgs.cs
- StrongNamePublicKeyBlob.cs
- Button.cs
- WebResponse.cs
- SmtpClient.cs
- ZoneLinkButton.cs
- ContextMenu.cs
- SQLInt16Storage.cs
- DataBindingCollection.cs
- CollectionBase.cs
- DataGridColumnHeaderAutomationPeer.cs
- OutputScopeManager.cs
- UpdateCompiler.cs
- MethodToken.cs
- FixedBufferAttribute.cs
- Attribute.cs
- NodeFunctions.cs
- PropertyDescriptor.cs
- NamedElement.cs
- _AutoWebProxyScriptHelper.cs
- Helpers.cs
- XmlDictionaryReader.cs
- ChangeNode.cs
- JapaneseLunisolarCalendar.cs
- XmlNodeReader.cs
- SendAgentStatusRequest.cs
- FrameSecurityDescriptor.cs
- StringDictionary.cs
- SafeHandles.cs
- XhtmlBasicPageAdapter.cs
- BindingExpressionUncommonField.cs
- DataBoundControlDesigner.cs
- IisTraceListener.cs
- Cursor.cs
- MaskedTextBoxDesignerActionList.cs
- DynamicMethod.cs
- UInt64Converter.cs
- AdornerLayer.cs
- KeyPressEvent.cs
- CharacterHit.cs
- FormViewDeleteEventArgs.cs
- ChildTable.cs
- HttpCookiesSection.cs
- TileBrush.cs
- SystemWebExtensionsSectionGroup.cs
- CurrencyManager.cs
- _NestedMultipleAsyncResult.cs
- PromptStyle.cs
- WebPartDisplayModeCollection.cs
- SetterBase.cs
- XmlSchemaObjectTable.cs
- ForeignConstraint.cs
- FlowDocumentPaginator.cs
- DesignerDataTableBase.cs
- OrderedParallelQuery.cs
- ImageList.cs
- GenericIdentity.cs
- NestPullup.cs
- Win32SafeHandles.cs
- SQLInt32Storage.cs
- ExpressionBuilder.cs
- TrackingAnnotationCollection.cs
- GregorianCalendar.cs
- NavigationPropertySingletonExpression.cs
- SerialStream.cs
- ConfigurationElementProperty.cs
- MobileTemplatedControlDesigner.cs
- SchemaObjectWriter.cs
- DynamicILGenerator.cs
- WebFaultClientMessageInspector.cs
- mansign.cs
- AvTraceDetails.cs
- Vector3DKeyFrameCollection.cs
- RawTextInputReport.cs
- DataGridViewCellEventArgs.cs
- LabelExpression.cs
- TransformDescriptor.cs
- GroupBoxRenderer.cs
- GZipDecoder.cs