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
- CheckBoxPopupAdapter.cs
- XmlDictionaryReaderQuotasElement.cs
- PageThemeCodeDomTreeGenerator.cs
- DeadLetterQueue.cs
- DictionaryContent.cs
- ManifestResourceInfo.cs
- HtmlLinkAdapter.cs
- ModifierKeysValueSerializer.cs
- QueryCacheManager.cs
- EventLogPermissionEntry.cs
- TextTreeText.cs
- SpeechSynthesizer.cs
- RuntimeVariablesExpression.cs
- SpoolingTaskBase.cs
- ObjectDataSourceFilteringEventArgs.cs
- TypeLoadException.cs
- EllipticalNodeOperations.cs
- ExpressionVisitor.cs
- DynamicILGenerator.cs
- Transaction.cs
- SQlBooleanStorage.cs
- UserPersonalizationStateInfo.cs
- SQLInt16.cs
- GridLengthConverter.cs
- Visual.cs
- TimelineClockCollection.cs
- ForceCopyBuildProvider.cs
- QueryableFilterUserControl.cs
- AssemblyName.cs
- DomNameTable.cs
- TypeElement.cs
- TrackingMemoryStreamFactory.cs
- Int32AnimationBase.cs
- QueryResponse.cs
- DesignOnlyAttribute.cs
- CreateParams.cs
- DecimalMinMaxAggregationOperator.cs
- CachedBitmap.cs
- ClientOptions.cs
- WindowsComboBox.cs
- ContextBase.cs
- SQLInt32.cs
- XsdValidatingReader.cs
- WebPartExportVerb.cs
- ControlCommandSet.cs
- WhitespaceRule.cs
- ShapeTypeface.cs
- IdentifierCreationService.cs
- TableCell.cs
- ConditionCollection.cs
- HttpResponseInternalBase.cs
- ADMembershipUser.cs
- ImageInfo.cs
- Events.cs
- MenuItemCollectionEditor.cs
- PrintPreviewControl.cs
- ScrollableControl.cs
- RequestCachePolicy.cs
- Geometry.cs
- UInt32.cs
- ClientConfigurationSystem.cs
- WebConfigurationHostFileChange.cs
- DoWorkEventArgs.cs
- SudsCommon.cs
- Adorner.cs
- MethodResolver.cs
- DataViewManager.cs
- WebPartDescription.cs
- OverlappedAsyncResult.cs
- FontWeight.cs
- XPathMultyIterator.cs
- BlurBitmapEffect.cs
- ReaderContextStackData.cs
- XmlQuerySequence.cs
- XmlSchemaGroup.cs
- IntSecurity.cs
- HttpFileCollectionBase.cs
- BaseDataList.cs
- OdbcDataReader.cs
- SimpleRecyclingCache.cs
- SpinWait.cs
- PromptStyle.cs
- SystemBrushes.cs
- CompositeClientFormatter.cs
- NativeMethods.cs
- IsolatedStoragePermission.cs
- StringDictionary.cs
- TypeAccessException.cs
- ChildrenQuery.cs
- DataServiceQueryOfT.cs
- ChtmlCommandAdapter.cs
- Int64Animation.cs
- SqlConnectionManager.cs
- WebPartEditorCancelVerb.cs
- PageScaling.cs
- WebPartEditVerb.cs
- ResponseBodyWriter.cs
- CancellationTokenRegistration.cs
- ContextMenu.cs
- AspNetHostingPermission.cs