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
- propertytag.cs
- _TimerThread.cs
- IPGlobalProperties.cs
- Itemizer.cs
- CheckBoxField.cs
- UnsafeNativeMethods.cs
- Shared.cs
- SafeTokenHandle.cs
- ActivityMarkupSerializationProvider.cs
- TraceHandlerErrorFormatter.cs
- Pkcs9Attribute.cs
- TaiwanCalendar.cs
- MailSettingsSection.cs
- FlowLayout.cs
- TextProviderWrapper.cs
- SchemaDeclBase.cs
- SqlTypesSchemaImporter.cs
- StringArrayConverter.cs
- DesignOnlyAttribute.cs
- SpecialNameAttribute.cs
- CopyCodeAction.cs
- DrawingBrush.cs
- HuffmanTree.cs
- WindowsFormsHostPropertyMap.cs
- URLBuilder.cs
- DrawingImage.cs
- SamlAction.cs
- TypeConvertions.cs
- InputLanguageProfileNotifySink.cs
- OneOfConst.cs
- ToolStripOverflow.cs
- XmlDigitalSignatureProcessor.cs
- GC.cs
- HttpCookiesSection.cs
- SeverityFilter.cs
- ColorTransformHelper.cs
- ParseChildrenAsPropertiesAttribute.cs
- Lease.cs
- HttpValueCollection.cs
- ItemsPanelTemplate.cs
- CharacterBufferReference.cs
- WmpBitmapDecoder.cs
- SmtpSection.cs
- GenericUriParser.cs
- QilNode.cs
- AlternateView.cs
- LongValidatorAttribute.cs
- ManagedWndProcTracker.cs
- SerialReceived.cs
- ThreadStaticAttribute.cs
- streamingZipPartStream.cs
- CellQuery.cs
- DataListItemCollection.cs
- XmlSchemaAny.cs
- WinEventTracker.cs
- InternalControlCollection.cs
- NameObjectCollectionBase.cs
- CheckBoxBaseAdapter.cs
- Restrictions.cs
- SecurityCriticalDataForSet.cs
- LinkUtilities.cs
- ConfigXmlAttribute.cs
- AllMembershipCondition.cs
- RetrieveVirtualItemEventArgs.cs
- MessageHeaders.cs
- ImageKeyConverter.cs
- WebBodyFormatMessageProperty.cs
- SerialPinChanges.cs
- IxmlLineInfo.cs
- ArgumentException.cs
- ConsoleCancelEventArgs.cs
- ValidationResults.cs
- DataGridViewRowsRemovedEventArgs.cs
- CompareValidator.cs
- SecurityTokenParametersEnumerable.cs
- ProfileModule.cs
- EntityContainerEmitter.cs
- RadioButtonStandardAdapter.cs
- FileSecurity.cs
- HtmlTableCell.cs
- AssemblyResourceLoader.cs
- TableItemStyle.cs
- TraceHandler.cs
- HandlerBase.cs
- ClockController.cs
- safelink.cs
- DataGridViewDataConnection.cs
- IPipelineRuntime.cs
- ParserExtension.cs
- _UncName.cs
- OleDbError.cs
- CodeNamespace.cs
- AdjustableArrowCap.cs
- TimeSpanOrInfiniteValidator.cs
- ActiveXHost.cs
- FileDialogCustomPlaces.cs
- BindingCompleteEventArgs.cs
- Viewport2DVisual3D.cs
- Translator.cs
- XmlNodeWriter.cs