Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / ndp / fx / src / DataWeb / Server / System / Data / Services / Int32EqualityComparer.cs / 1 / Int32EqualityComparer.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Non-default-based implementation of IEqualityComparer<int>. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System.Collections.Generic; ///This class implements IEqualityComparer for System.In32. ////// Using this class rather than EqualityComparer<T>.Default /// saves from JIT'ing it in each AppDomain. /// internal class Int32EqualityComparer : IEqualityComparer{ /// Empty constructor. internal Int32EqualityComparer() { } ///Checks whether two numbers are equal. /// First number.Second number. ///true if x equals y; false otherwise. public bool Equals(int x, int y) { return x == y; } ///Gets a hash code for the specified number. /// Value. ///The hash code for the specified value. public int GetHashCode(int obj) { return obj; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // //// Non-default-based implementation of IEqualityComparer<int>. // // // @owner [....] //--------------------------------------------------------------------- namespace System.Data.Services { using System.Collections.Generic; ///This class implements IEqualityComparer for System.In32. ////// Using this class rather than EqualityComparer<T>.Default /// saves from JIT'ing it in each AppDomain. /// internal class Int32EqualityComparer : IEqualityComparer{ /// Empty constructor. internal Int32EqualityComparer() { } ///Checks whether two numbers are equal. /// First number.Second number. ///true if x equals y; false otherwise. public bool Equals(int x, int y) { return x == y; } ///Gets a hash code for the specified number. /// Value. ///The hash code for the specified value. public int GetHashCode(int obj) { return obj; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MLangCodePageEncoding.cs
- ClientBuildManager.cs
- TypeNameConverter.cs
- NavigateUrlConverter.cs
- FilterException.cs
- ObfuscationAttribute.cs
- BlockCollection.cs
- SQLRoleProvider.cs
- XamlTemplateSerializer.cs
- ProxyFragment.cs
- TemplateBindingExtension.cs
- PersonalizablePropertyEntry.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- IdleTimeoutMonitor.cs
- ForceCopyBuildProvider.cs
- DataRecordObjectView.cs
- RegexTree.cs
- xml.cs
- SimpleBitVector32.cs
- SqlDataSourceQueryEditorForm.cs
- SafeProcessHandle.cs
- TextDecoration.cs
- SqlProfileProvider.cs
- DescriptionAttribute.cs
- XmlNodeReader.cs
- DeclaredTypeElementCollection.cs
- SafeArrayRankMismatchException.cs
- SemaphoreFullException.cs
- DataGridViewRowHeaderCell.cs
- AbstractDataSvcMapFileLoader.cs
- BuilderPropertyEntry.cs
- QuaternionRotation3D.cs
- XmlSerializerFactory.cs
- IssuedTokenServiceElement.cs
- PageContentAsyncResult.cs
- WmlImageAdapter.cs
- Wrapper.cs
- AsyncDataRequest.cs
- ValidationPropertyAttribute.cs
- MenuItemCollection.cs
- XmlBoundElement.cs
- AspNetSynchronizationContext.cs
- ReversePositionQuery.cs
- TemplateParser.cs
- LongAverageAggregationOperator.cs
- SqlInternalConnectionSmi.cs
- base64Transforms.cs
- Line.cs
- COSERVERINFO.cs
- PrintPageEvent.cs
- FormViewCommandEventArgs.cs
- SerializableTypeCodeDomSerializer.cs
- BatchWriter.cs
- PassportAuthenticationModule.cs
- RecordManager.cs
- DesignTimeParseData.cs
- FormViewDeletedEventArgs.cs
- SqlGenericUtil.cs
- CollectionsUtil.cs
- DictionaryGlobals.cs
- ThreadPool.cs
- FragmentQueryKB.cs
- PtsContext.cs
- SafeRightsManagementSessionHandle.cs
- RequestCacheValidator.cs
- TcpChannelFactory.cs
- XmlCollation.cs
- EmptyTextWriter.cs
- DataTableExtensions.cs
- SchemaElement.cs
- MinimizableAttributeTypeConverter.cs
- WebBrowserHelper.cs
- CollectionChangedEventManager.cs
- DataServiceQueryException.cs
- Msec.cs
- SqlNotificationEventArgs.cs
- ListBox.cs
- SqlWebEventProvider.cs
- DataControlImageButton.cs
- OutputCacheProfile.cs
- RelationshipDetailsRow.cs
- LinqDataSource.cs
- MouseWheelEventArgs.cs
- MeshGeometry3D.cs
- SiteOfOriginContainer.cs
- CategoryList.cs
- ComponentDesigner.cs
- ServiceNameCollection.cs
- PersonalizationAdministration.cs
- Parser.cs
- SmtpCommands.cs
- ImageMetadata.cs
- WebProxyScriptElement.cs
- ClientBuildManager.cs
- InputLanguage.cs
- UnaryQueryOperator.cs
- ToolBarTray.cs
- SimpleWebHandlerParser.cs
- JsonEnumDataContract.cs
- ThreadPool.cs