Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Common / QueryCache / CompiledQueryCacheKey.cs / 1305376 / CompiledQueryCacheKey.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //----------------------------------------------------------------------------- namespace System.Data.Common.QueryCache { using System; using System.Diagnostics; internal sealed class CompiledQueryCacheKey : QueryCacheKey { private readonly Guid _cacheIdentity; internal CompiledQueryCacheKey(Guid cacheIdentity) { _cacheIdentity = cacheIdentity; } ////// Determines equality of this key with respect to /// ////// public override bool Equals(object compareTo) { Debug.Assert(compareTo != null, "Comparison key should not be null"); if (typeof(CompiledQueryCacheKey) != compareTo.GetType()) { return false; } return ((CompiledQueryCacheKey)compareTo)._cacheIdentity.Equals(this._cacheIdentity); } /// /// Returns the hashcode for this cache key /// ///public override int GetHashCode() { return _cacheIdentity.GetHashCode(); } /// /// Returns a string representation of the state of this cache key /// ////// A string representation that includes query text, parameter information, include path information /// and merge option information about this cache key. /// public override string ToString() { return _cacheIdentity.ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StatusBar.cs
- SafeNativeMethods.cs
- SR.cs
- SqlCommand.cs
- SslSecurityTokenParameters.cs
- FormatVersion.cs
- WebConfigurationFileMap.cs
- TraceShell.cs
- SmtpFailedRecipientException.cs
- VirtualPathUtility.cs
- CodeIdentifiers.cs
- RecommendedAsConfigurableAttribute.cs
- ListBoxDesigner.cs
- MatchSingleFxEngineOpcode.cs
- GridViewUpdatedEventArgs.cs
- EpmCustomContentSerializer.cs
- AsyncPostBackTrigger.cs
- _BasicClient.cs
- ConnectionInterfaceCollection.cs
- ComponentRenameEvent.cs
- LongValidatorAttribute.cs
- DetailsViewRow.cs
- RecommendedAsConfigurableAttribute.cs
- DbConnectionPool.cs
- ListBoxItem.cs
- MetabaseServerConfig.cs
- SuppressMessageAttribute.cs
- UiaCoreApi.cs
- DataRelationPropertyDescriptor.cs
- UserPreferenceChangingEventArgs.cs
- ConfigurationPropertyCollection.cs
- ConnectionManagementElementCollection.cs
- EditorPart.cs
- EncryptedReference.cs
- Message.cs
- ProfileGroupSettingsCollection.cs
- TransactionBridge.cs
- MetafileHeader.cs
- ImageAnimator.cs
- ParallelTimeline.cs
- WpfGeneratedKnownProperties.cs
- DistributedTransactionPermission.cs
- DynamicDataExtensions.cs
- NativeMethods.cs
- VisualTreeHelper.cs
- ADConnectionHelper.cs
- SamlAudienceRestrictionCondition.cs
- SiteMapNodeItemEventArgs.cs
- CodeCommentStatement.cs
- SafeEventLogReadHandle.cs
- ObjectTag.cs
- linebase.cs
- SmtpMail.cs
- OleServicesContext.cs
- FrameDimension.cs
- GridEntryCollection.cs
- DefaultSection.cs
- GatewayDefinition.cs
- WindowsImpersonationContext.cs
- LogPolicy.cs
- OpenTypeLayoutCache.cs
- InternalCache.cs
- Crc32Helper.cs
- XmlSerializationWriter.cs
- NotCondition.cs
- MatchSingleFxEngineOpcode.cs
- ParallelTimeline.cs
- Int32Animation.cs
- ObjectIDGenerator.cs
- formatter.cs
- TextureBrush.cs
- HtmlTextArea.cs
- ProjectionCamera.cs
- RecognizerInfo.cs
- Image.cs
- ScrollItemPatternIdentifiers.cs
- StateItem.cs
- ImageSource.cs
- IPHostEntry.cs
- SortedDictionary.cs
- SafeFileMapViewHandle.cs
- DrawTreeNodeEventArgs.cs
- ListCommandEventArgs.cs
- Emitter.cs
- TcpClientSocketManager.cs
- WindowsPen.cs
- SingleResultAttribute.cs
- EventSinkHelperWriter.cs
- TableCell.cs
- NativeMethods.cs
- EmbossBitmapEffect.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ItemContainerGenerator.cs
- QuaternionAnimation.cs
- Popup.cs
- CopyAction.cs
- NotifyCollectionChangedEventArgs.cs
- UserCancellationException.cs
- EncryptedData.cs
- EntityDataSourceDataSelection.cs