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
- EventHandlersStore.cs
- SqlCacheDependency.cs
- SiteMapDesignerDataSourceView.cs
- TemplateControlBuildProvider.cs
- WinEventWrap.cs
- WhitespaceRuleReader.cs
- LocalizabilityAttribute.cs
- HierarchicalDataSourceControl.cs
- UnicastIPAddressInformationCollection.cs
- _ListenerAsyncResult.cs
- FileSystemInfo.cs
- PerfService.cs
- DetailsViewPageEventArgs.cs
- RadialGradientBrush.cs
- SoapEnumAttribute.cs
- WindowsSolidBrush.cs
- PersonalizationProviderHelper.cs
- BaseResourcesBuildProvider.cs
- EditorPart.cs
- RowToFieldTransformer.cs
- ColorDialog.cs
- Panel.cs
- Menu.cs
- DiagnosticTraceSource.cs
- SerialErrors.cs
- ButtonBaseDesigner.cs
- HandlerBase.cs
- UIElementParagraph.cs
- Evidence.cs
- LicenseProviderAttribute.cs
- ExtensionQuery.cs
- ImageSourceValueSerializer.cs
- MiniParameterInfo.cs
- columnmapfactory.cs
- TextTrailingCharacterEllipsis.cs
- CheckBoxList.cs
- ToolStripSplitStackLayout.cs
- XamlTypeMapper.cs
- IdentityManager.cs
- KeyPressEvent.cs
- HostVisual.cs
- WorkflowOwnerAsyncResult.cs
- XmlCharCheckingReader.cs
- _IPv4Address.cs
- FunctionDescription.cs
- AtlasWeb.Designer.cs
- ToolboxComponentsCreatingEventArgs.cs
- ControllableStoryboardAction.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- MachineKeySection.cs
- UInt32Converter.cs
- SubstitutionList.cs
- ExpandCollapseProviderWrapper.cs
- WebConfigurationFileMap.cs
- EntityDataSourceContextCreatingEventArgs.cs
- ListBindableAttribute.cs
- XmlResolver.cs
- IIS7WorkerRequest.cs
- Hash.cs
- SmiEventStream.cs
- TripleDESCryptoServiceProvider.cs
- ListBoxChrome.cs
- xmlsaver.cs
- UnsafeNativeMethods.cs
- TagPrefixInfo.cs
- HttpAsyncResult.cs
- HostingEnvironmentException.cs
- versioninfo.cs
- ScrollBar.cs
- XmlSchemaFacet.cs
- XmlDataCollection.cs
- PriorityChain.cs
- ICspAsymmetricAlgorithm.cs
- TextElement.cs
- GeneralTransform3DTo2DTo3D.cs
- WorkflowItemPresenter.cs
- PointCollection.cs
- ScaleTransform.cs
- WebPartConnectionsCancelEventArgs.cs
- relpropertyhelper.cs
- ResXDataNode.cs
- PerspectiveCamera.cs
- ping.cs
- XPathConvert.cs
- RMPermissions.cs
- CodeExpressionCollection.cs
- ComplexPropertyEntry.cs
- Repeater.cs
- MemoryFailPoint.cs
- SqlNamer.cs
- SqlTriggerAttribute.cs
- Win32.cs
- CodeIdentifiers.cs
- xml.cs
- RoutedEvent.cs
- FixedPage.cs
- ComponentManagerBroker.cs
- RuntimeVariablesExpression.cs
- cryptoapiTransform.cs
- SafeSecurityHelper.cs