Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Core / Microsoft / Scripting / Utils / ReferenceEqualityComparer.cs / 1305376 / ReferenceEqualityComparer.cs
/* **************************************************************************** * * Copyright (c) Microsoft Corporation. * * This source code is subject to terms and conditions of the Microsoft Public License. A * copy of the license can be found in the License.html file at the root of this distribution. If * you cannot locate the Microsoft Public License, please send an email to * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound * by the terms of the Microsoft Public License. * * You must not remove this notice, or any other, from this software. * * * ***************************************************************************/ using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.Dynamic.Utils { internal sealed class ReferenceEqualityComparer: IEqualityComparer { internal static readonly ReferenceEqualityComparer Instance = new ReferenceEqualityComparer (); private ReferenceEqualityComparer() { } public bool Equals(T x, T y) { return object.ReferenceEquals(x, y); } public int GetHashCode(T obj) { return RuntimeHelpers.GetHashCode(obj); } } } // 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
- ControlValuePropertyAttribute.cs
- ArraySortHelper.cs
- XmlAnyAttributeAttribute.cs
- ScriptRef.cs
- ControlValuePropertyAttribute.cs
- ValueQuery.cs
- DateTimeFormatInfoScanner.cs
- PathNode.cs
- PrintDocument.cs
- _HeaderInfo.cs
- AutoGeneratedFieldProperties.cs
- SiteMembershipCondition.cs
- SwitchElementsCollection.cs
- followingsibling.cs
- ActiveXContainer.cs
- CollaborationHelperFunctions.cs
- Parsers.cs
- GroupDescription.cs
- DmlSqlGenerator.cs
- DelegatingHeader.cs
- XmlTextEncoder.cs
- HttpListenerResponse.cs
- ManualResetEvent.cs
- EditingMode.cs
- Int64Storage.cs
- XmlSchemaImporter.cs
- SchemaElementDecl.cs
- DataMisalignedException.cs
- FontUnit.cs
- X509Certificate2.cs
- Misc.cs
- PackUriHelper.cs
- XmlNodeList.cs
- WpfPayload.cs
- SystemException.cs
- MethodImplAttribute.cs
- XmlSchema.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- SchemaImporterExtensionElement.cs
- WebHttpDispatchOperationSelector.cs
- ClientUrlResolverWrapper.cs
- MetadataPropertyAttribute.cs
- FamilyTypefaceCollection.cs
- LinearKeyFrames.cs
- ParameterBuilder.cs
- XmlBinaryWriter.cs
- ListItemCollection.cs
- SmtpFailedRecipientsException.cs
- ListBoxItem.cs
- IgnoreFileBuildProvider.cs
- CommandBinding.cs
- PrintingPermission.cs
- AsymmetricKeyExchangeFormatter.cs
- ScriptingRoleServiceSection.cs
- WinEventWrap.cs
- FileDialogPermission.cs
- TimeSpanFormat.cs
- VerificationException.cs
- RTLAwareMessageBox.cs
- SingleResultAttribute.cs
- ObjectQuery.cs
- SoapClientMessage.cs
- CryptoHelper.cs
- HttpEncoder.cs
- BaseUriHelper.cs
- SequenceFullException.cs
- TitleStyle.cs
- TablePattern.cs
- MultiAsyncResult.cs
- EnvironmentPermission.cs
- XmlnsCache.cs
- HostDesigntimeLicenseContext.cs
- WebConfigurationHost.cs
- FragmentNavigationEventArgs.cs
- Timer.cs
- DispatcherHooks.cs
- EventListenerClientSide.cs
- JsonCollectionDataContract.cs
- SchemaElement.cs
- securestring.cs
- SQLRoleProvider.cs
- IdnMapping.cs
- GeometryCombineModeValidation.cs
- DeclarativeCatalogPartDesigner.cs
- DbConnectionInternal.cs
- WriteableOnDemandStream.cs
- MenuScrollingVisibilityConverter.cs
- TextParaLineResult.cs
- IsolatedStorageFileStream.cs
- QilXmlWriter.cs
- LoginName.cs
- KoreanLunisolarCalendar.cs
- LoginView.cs
- BamlLocalizationDictionary.cs
- RC2.cs
- WorkflowItemPresenter.cs
- InkCanvasSelectionAdorner.cs
- RegistrationServices.cs
- WindowsFormsHost.cs
- HuffCodec.cs