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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignTimeResourceProviderFactoryAttribute.cs
- BaseEntityWrapper.cs
- StaticContext.cs
- Accessors.cs
- DataGridTable.cs
- IntegrationExceptionEventArgs.cs
- MemberRelationshipService.cs
- AuthenticationConfig.cs
- HighlightVisual.cs
- WebPartDeleteVerb.cs
- WindowsRichEditRange.cs
- TableCell.cs
- WindowsListViewGroup.cs
- LoadGrammarCompletedEventArgs.cs
- MissingFieldException.cs
- DataGridItemAttachedStorage.cs
- RegisteredDisposeScript.cs
- NetDataContractSerializer.cs
- SqlFormatter.cs
- SplineKeyFrames.cs
- FontNamesConverter.cs
- DropSource.cs
- HtmlValidatorAdapter.cs
- SplitterCancelEvent.cs
- InputLanguageManager.cs
- SqlCachedBuffer.cs
- XmlReflectionImporter.cs
- XmlAtomicValue.cs
- DefaultBindingPropertyAttribute.cs
- APCustomTypeDescriptor.cs
- IdleTimeoutMonitor.cs
- DataTableTypeConverter.cs
- ConstraintStruct.cs
- OrthographicCamera.cs
- MDIClient.cs
- DataRowCollection.cs
- VBIdentifierName.cs
- RelatedEnd.cs
- QilGeneratorEnv.cs
- LogicalExpressionEditor.cs
- SQLByteStorage.cs
- LoginDesignerUtil.cs
- EntityKeyElement.cs
- RuntimeConfig.cs
- FontUnitConverter.cs
- HttpConfigurationContext.cs
- PrtTicket_Public.cs
- BitmapInitialize.cs
- RelationshipManager.cs
- SafeTimerHandle.cs
- COAUTHINFO.cs
- XmlCDATASection.cs
- WorkerProcess.cs
- ArrayConverter.cs
- SequenceNumber.cs
- Thumb.cs
- XmlTypeMapping.cs
- WSTrustFeb2005.cs
- WorkflowRuntimeServiceElement.cs
- SqlBulkCopy.cs
- DataGridCell.cs
- ProfileManager.cs
- __ConsoleStream.cs
- AppSecurityManager.cs
- SortableBindingList.cs
- MiniLockedBorderGlyph.cs
- Compress.cs
- DataGridViewColumnEventArgs.cs
- OdbcParameterCollection.cs
- RawStylusSystemGestureInputReport.cs
- EventEntry.cs
- FtpCachePolicyElement.cs
- CollectionContainer.cs
- WebPartDescriptionCollection.cs
- ComponentChangingEvent.cs
- OutputCacheModule.cs
- ConfigurationException.cs
- DataSvcMapFile.cs
- ECDiffieHellmanPublicKey.cs
- MultiPageTextView.cs
- ResolveCriteria11.cs
- HostingMessageProperty.cs
- TemplateComponentConnector.cs
- PersonalizationStateInfoCollection.cs
- DataGridViewColumnEventArgs.cs
- HashSetEqualityComparer.cs
- AttributeUsageAttribute.cs
- BamlTreeMap.cs
- TypeConverterAttribute.cs
- MediaPlayerState.cs
- InputLanguage.cs
- TokenFactoryCredential.cs
- HttpFileCollection.cs
- DesignerSerializationOptionsAttribute.cs
- ColorPalette.cs
- Converter.cs
- NumberSubstitution.cs
- _LoggingObject.cs
- Closure.cs
- GridViewAutomationPeer.cs