Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / MS / Internal / ComponentModel / PropertyDescriptorComparer.cs / 1305600 / 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
- RuntimeEnvironment.cs
- DeviceSpecificDialogCachedState.cs
- TextWriter.cs
- Renderer.cs
- SQLChars.cs
- ComponentEditorPage.cs
- TextTreeUndoUnit.cs
- AuthenticationService.cs
- WorkflowMarkupSerializationException.cs
- XmlSerializationReader.cs
- FormsAuthenticationUserCollection.cs
- QilFactory.cs
- ParserStreamGeometryContext.cs
- TransactionInterop.cs
- BufferedReadStream.cs
- UpnEndpointIdentityExtension.cs
- NonParentingControl.cs
- OpCopier.cs
- MetadataCache.cs
- MimeReturn.cs
- columnmapfactory.cs
- PhysicalAddress.cs
- PageVisual.cs
- MultipartContentParser.cs
- GestureRecognitionResult.cs
- Setter.cs
- PopupControlService.cs
- XmlDomTextWriter.cs
- OrCondition.cs
- LayoutTable.cs
- ClientSideQueueItem.cs
- ClickablePoint.cs
- webeventbuffer.cs
- PackWebRequest.cs
- ToggleButtonAutomationPeer.cs
- Pkcs7Recipient.cs
- SystemNetHelpers.cs
- SponsorHelper.cs
- CoreChannel.cs
- HttpListener.cs
- Int64Converter.cs
- DeflateStream.cs
- HandlerMappingMemo.cs
- DoubleCollectionValueSerializer.cs
- CloseSequenceResponse.cs
- CodeTypeMember.cs
- SequentialUshortCollection.cs
- CodeValidator.cs
- Helpers.cs
- WindowsListViewItem.cs
- BulletDecorator.cs
- SqlCommand.cs
- BaseUriHelper.cs
- ControlPaint.cs
- IsolationInterop.cs
- SelectionRange.cs
- WebEventCodes.cs
- StorageInfo.cs
- GenericWebPart.cs
- SqlSelectStatement.cs
- SerializationInfo.cs
- CompilerInfo.cs
- ProfileModule.cs
- DataGridTableCollection.cs
- QuaternionAnimation.cs
- CustomTypeDescriptor.cs
- ProfileSection.cs
- versioninfo.cs
- Helpers.cs
- Point3DCollectionConverter.cs
- MLangCodePageEncoding.cs
- ApplicationActivator.cs
- SQLMembershipProvider.cs
- Int64.cs
- DataGridAddNewRow.cs
- BamlTreeUpdater.cs
- WindowsEditBox.cs
- StreamWithDictionary.cs
- XMLSyntaxException.cs
- AdapterDictionary.cs
- ZoneLinkButton.cs
- InvalidDocumentContentsException.cs
- EntityDataSourceValidationException.cs
- ConfigurationValidatorAttribute.cs
- ReflectTypeDescriptionProvider.cs
- BinaryFormatterWriter.cs
- Dynamic.cs
- WindowsFormsHost.cs
- ProtocolsConfigurationEntry.cs
- CodeDirectionExpression.cs
- JavascriptXmlWriterWrapper.cs
- ObjectDataSourceSelectingEventArgs.cs
- ItemsPresenter.cs
- BaseCollection.cs
- Stroke2.cs
- AccessViolationException.cs
- EntityDataSourceContextCreatingEventArgs.cs
- DataGridViewDataErrorEventArgs.cs
- SignedPkcs7.cs
- RemotingException.cs