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
- XPathSelfQuery.cs
- ComplexTypeEmitter.cs
- TemplateParser.cs
- SymLanguageVendor.cs
- DependencyProperty.cs
- DataGridCommandEventArgs.cs
- AuthStoreRoleProvider.cs
- OptionalRstParameters.cs
- CodeSnippetExpression.cs
- WebPartDescription.cs
- BitConverter.cs
- RichTextBoxContextMenu.cs
- MSAAEventDispatcher.cs
- ErrorWebPart.cs
- ParameterCollection.cs
- StructuralObject.cs
- AudioException.cs
- BamlRecordHelper.cs
- DataSourceSerializationException.cs
- DataGridViewLayoutData.cs
- ColorMap.cs
- GuidelineCollection.cs
- FuncTypeConverter.cs
- ELinqQueryState.cs
- Int16Converter.cs
- DataRelationPropertyDescriptor.cs
- SqlPersonalizationProvider.cs
- ModelItem.cs
- DecoderNLS.cs
- CodeVariableReferenceExpression.cs
- LogLogRecordHeader.cs
- DesignSurfaceCollection.cs
- DataObjectCopyingEventArgs.cs
- TypeHelpers.cs
- SelectionProviderWrapper.cs
- PrintController.cs
- DynamicMethod.cs
- LayoutEditorPart.cs
- FixedTextPointer.cs
- DataGridCellInfo.cs
- XmlArrayItemAttribute.cs
- SystemGatewayIPAddressInformation.cs
- SoapBinding.cs
- NGCUIElementCollectionSerializerAsync.cs
- IndexOutOfRangeException.cs
- MarkupCompilePass2.cs
- SettingsProviderCollection.cs
- DataRelation.cs
- MetadataPropertyAttribute.cs
- Vector3DKeyFrameCollection.cs
- PrintPreviewGraphics.cs
- StoryFragments.cs
- TextServicesContext.cs
- Version.cs
- ApplicationManager.cs
- Triplet.cs
- ChangeBlockUndoRecord.cs
- TypeResolver.cs
- Context.cs
- _ProxyRegBlob.cs
- KernelTypeValidation.cs
- IODescriptionAttribute.cs
- RemotingSurrogateSelector.cs
- HyperLinkColumn.cs
- SiteMap.cs
- SimpleWebHandlerParser.cs
- EmptyEnumerable.cs
- ConfigurationStrings.cs
- BitmapEffectInput.cs
- RegularExpressionValidator.cs
- hresults.cs
- AppDomainAttributes.cs
- TranslateTransform.cs
- ExpressionTable.cs
- MessageQueueTransaction.cs
- ArithmeticLiteral.cs
- BmpBitmapDecoder.cs
- OciHandle.cs
- SamlAttribute.cs
- DictationGrammar.cs
- PageContentAsyncResult.cs
- grammarelement.cs
- CodeSnippetCompileUnit.cs
- HybridWebProxyFinder.cs
- CanonicalXml.cs
- MethodCallTranslator.cs
- OutKeywords.cs
- odbcmetadatafactory.cs
- ZipIOBlockManager.cs
- HttpModuleCollection.cs
- DataObjectAttribute.cs
- RuntimeHandles.cs
- WorkflowServiceNamespace.cs
- SqlFunctionAttribute.cs
- PipelineModuleStepContainer.cs
- DataGridHeaderBorder.cs
- FontEmbeddingManager.cs
- ModelVisual3D.cs
- XomlCompilerHelpers.cs
- Int16AnimationUsingKeyFrames.cs