Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Server / System / Data / Services / Int32EqualityComparer.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SvcMapFile.cs
- CodeCommentStatement.cs
- BuildProviderCollection.cs
- AnnouncementEndpoint.cs
- TextDecorations.cs
- ParserStreamGeometryContext.cs
- SystemIPInterfaceStatistics.cs
- DirtyTextRange.cs
- MasterPage.cs
- EncryptedData.cs
- ListItem.cs
- NavigationWindow.cs
- HttpConfigurationContext.cs
- TcpAppDomainProtocolHandler.cs
- XmlIlGenerator.cs
- _NestedSingleAsyncResult.cs
- Nullable.cs
- Imaging.cs
- ScriptRegistrationManager.cs
- DnsEndPoint.cs
- SqlXmlStorage.cs
- ProtocolsConfiguration.cs
- TextEmbeddedObject.cs
- TdsParserStateObject.cs
- BooleanFunctions.cs
- ObjectListDesigner.cs
- SqlCacheDependency.cs
- Bitmap.cs
- LinearGradientBrush.cs
- CommandBinding.cs
- Sequence.cs
- IISMapPath.cs
- SQLGuidStorage.cs
- MD5CryptoServiceProvider.cs
- UInt16.cs
- OperationResponse.cs
- DefaultValueAttribute.cs
- SiteIdentityPermission.cs
- StreamReader.cs
- SoapInteropTypes.cs
- UIElementParaClient.cs
- ContainsSearchOperator.cs
- ListBoxAutomationPeer.cs
- SafeNativeMethods.cs
- _DigestClient.cs
- XNodeValidator.cs
- OwnerDrawPropertyBag.cs
- AssemblyCache.cs
- CaretElement.cs
- MenuItemCollection.cs
- NeutralResourcesLanguageAttribute.cs
- XmlReaderSettings.cs
- SynchronousReceiveBehavior.cs
- WebConfigurationManager.cs
- CheckBoxBaseAdapter.cs
- DependentList.cs
- CodeDirectionExpression.cs
- Compiler.cs
- Model3D.cs
- WindowInteropHelper.cs
- ResourcePart.cs
- NetPeerTcpBinding.cs
- ScrollPattern.cs
- ConnectionConsumerAttribute.cs
- XPathParser.cs
- HttpCacheVaryByContentEncodings.cs
- _SslStream.cs
- ClientFormsAuthenticationCredentials.cs
- ReflectionServiceProvider.cs
- CompiledQuery.cs
- SocketConnection.cs
- CancellableEnumerable.cs
- WebZoneDesigner.cs
- OutputCache.cs
- DirectoryObjectSecurity.cs
- MenuItem.cs
- ElementMarkupObject.cs
- HyperLinkField.cs
- ExpressionBuilderContext.cs
- FormatException.cs
- XmlSchemaRedefine.cs
- ContextStaticAttribute.cs
- OSEnvironmentHelper.cs
- RadioButton.cs
- PrimarySelectionGlyph.cs
- InvokeProviderWrapper.cs
- filewebresponse.cs
- StringUtil.cs
- ToolStripRenderEventArgs.cs
- ToolStripDesignerUtils.cs
- HtmlTableRowCollection.cs
- WebPartVerb.cs
- DataServiceStreamProviderWrapper.cs
- RemoteWebConfigurationHost.cs
- EncryptedType.cs
- RegisteredScript.cs
- DeclarationUpdate.cs
- DesignerProperties.cs
- SafeUserTokenHandle.cs
- InvalidProgramException.cs