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
- ServiceContractDetailViewControl.cs
- XXXInfos.cs
- DocumentGridContextMenu.cs
- CheckBoxPopupAdapter.cs
- DefaultHttpHandler.cs
- InternalEnumValidatorAttribute.cs
- UnsafeNativeMethods.cs
- DbConnectionPoolGroup.cs
- InputLangChangeRequestEvent.cs
- TreeView.cs
- QueryCacheEntry.cs
- DoubleAnimationUsingKeyFrames.cs
- DataServiceKeyAttribute.cs
- PriorityItem.cs
- MenuItemStyle.cs
- DataServiceRequestException.cs
- ContentHostHelper.cs
- ReferencedCollectionType.cs
- ControlHelper.cs
- EpmHelper.cs
- XmlSubtreeReader.cs
- SqlNotificationEventArgs.cs
- WebBrowserSiteBase.cs
- Label.cs
- RadioButton.cs
- WebPartConnection.cs
- MSAAEventDispatcher.cs
- Renderer.cs
- RelationshipWrapper.cs
- Sql8ConformanceChecker.cs
- UIHelper.cs
- GridViewColumnHeaderAutomationPeer.cs
- DataGridViewComboBoxColumnDesigner.cs
- Stack.cs
- MenuItemCollection.cs
- XmlBinaryWriterSession.cs
- ListControlConvertEventArgs.cs
- HtmlInputSubmit.cs
- WindowInteropHelper.cs
- Relationship.cs
- HandleCollector.cs
- FlowDocument.cs
- FormatConvertedBitmap.cs
- AsyncOperationContext.cs
- XmlSignatureManifest.cs
- ScrollEventArgs.cs
- TextEndOfLine.cs
- ExtractedStateEntry.cs
- HtmlTextArea.cs
- RTLAwareMessageBox.cs
- SelectionRangeConverter.cs
- SqlFacetAttribute.cs
- ToolStripItem.cs
- DecodeHelper.cs
- Normalization.cs
- ISO2022Encoding.cs
- CoTaskMemHandle.cs
- _AutoWebProxyScriptWrapper.cs
- NumericUpDown.cs
- SqlProfileProvider.cs
- AtomPub10CategoriesDocumentFormatter.cs
- DispatcherHookEventArgs.cs
- HwndMouseInputProvider.cs
- SqlConnectionStringBuilder.cs
- XmlSerializationReader.cs
- ToolStripLabel.cs
- InteropExecutor.cs
- AssemblyNameProxy.cs
- SortedDictionary.cs
- ExpressionBuilderCollection.cs
- ChannelManagerHelpers.cs
- XPathException.cs
- ToolboxComponentsCreatedEventArgs.cs
- ComplexObject.cs
- HttpResponseInternalWrapper.cs
- SymbolPair.cs
- ConnectionStringsExpressionEditor.cs
- X509Chain.cs
- MarkupCompilePass1.cs
- CharConverter.cs
- NamespaceEmitter.cs
- WindowCollection.cs
- BinaryObjectWriter.cs
- WebPartZone.cs
- HttpRuntimeSection.cs
- ClientSideQueueItem.cs
- UnSafeCharBuffer.cs
- ErrorFormatterPage.cs
- FixedDocumentPaginator.cs
- DecimalConverter.cs
- EraserBehavior.cs
- X509ImageLogo.cs
- ZipIOLocalFileHeader.cs
- ConsoleEntryPoint.cs
- AliasGenerator.cs
- wmiutil.cs
- Profiler.cs
- RelationalExpressions.cs
- Effect.cs
- AssemblyHash.cs