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
- Panel.cs
- ImageMapEventArgs.cs
- Component.cs
- PageEventArgs.cs
- RegisteredHiddenField.cs
- LogicalTreeHelper.cs
- ToolStripAdornerWindowService.cs
- RegexCompilationInfo.cs
- BamlLocalizationDictionary.cs
- EdmType.cs
- Int32AnimationUsingKeyFrames.cs
- MachineKey.cs
- HttpInputStream.cs
- LocatorPart.cs
- XmlSchemaGroup.cs
- Condition.cs
- DesignTimeVisibleAttribute.cs
- nulltextcontainer.cs
- EditingScope.cs
- PtsHost.cs
- TransformGroup.cs
- Baml2006Reader.cs
- WeakEventTable.cs
- ScalarConstant.cs
- WebPartDisplayModeCancelEventArgs.cs
- HtmlTextArea.cs
- RegexCompilationInfo.cs
- HostedAspNetEnvironment.cs
- CompiledRegexRunnerFactory.cs
- CallContext.cs
- VisualBasic.cs
- ConfigXmlSignificantWhitespace.cs
- VariantWrapper.cs
- ValidationRuleCollection.cs
- EntitySetBaseCollection.cs
- UDPClient.cs
- BamlResourceContent.cs
- SqlProfileProvider.cs
- ElementFactory.cs
- JulianCalendar.cs
- MailMessageEventArgs.cs
- nulltextcontainer.cs
- RectangleHotSpot.cs
- RadioButton.cs
- ObjectComplexPropertyMapping.cs
- XmlAttributeAttribute.cs
- WebRequestModuleElementCollection.cs
- SrgsElementFactoryCompiler.cs
- SchemaCollectionPreprocessor.cs
- ExpressionsCollectionConverter.cs
- recordstatescratchpad.cs
- InstanceView.cs
- DispatcherBuilder.cs
- LambdaCompiler.Lambda.cs
- ScriptingScriptResourceHandlerSection.cs
- ConnectivityStatus.cs
- StringSorter.cs
- TemplateField.cs
- IResourceProvider.cs
- TextServicesDisplayAttributePropertyRanges.cs
- XmlNode.cs
- AQNBuilder.cs
- Win32Exception.cs
- TransformerInfoCollection.cs
- AutoCompleteStringCollection.cs
- FrameworkRichTextComposition.cs
- SqlMethodAttribute.cs
- SystemIcons.cs
- SqlGatherProducedAliases.cs
- TcpConnectionPoolSettingsElement.cs
- DrawingContext.cs
- ColorMatrix.cs
- ToolStripPanelRow.cs
- Util.cs
- AdornerLayer.cs
- WorkflowDesignerMessageFilter.cs
- ReaderWriterLockWrapper.cs
- AvTrace.cs
- PanelDesigner.cs
- BinaryObjectWriter.cs
- ThrowOnMultipleAssignment.cs
- Regex.cs
- ServerValidateEventArgs.cs
- FileNotFoundException.cs
- remotingproxy.cs
- SynchronizedInputHelper.cs
- DataRow.cs
- TableAutomationPeer.cs
- GlobalAllocSafeHandle.cs
- ClrPerspective.cs
- DynamicDataManager.cs
- __Error.cs
- ExtractorMetadata.cs
- PropertyGridCommands.cs
- SQLRoleProvider.cs
- FigureHelper.cs
- VarRefManager.cs
- SourceFilter.cs
- WebPartDeleteVerb.cs
- BehaviorService.cs