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
- TextModifierScope.cs
- PowerModeChangedEventArgs.cs
- XmlNotation.cs
- WebCategoryAttribute.cs
- GcHandle.cs
- OleDbEnumerator.cs
- DesignerObject.cs
- TabControlEvent.cs
- IgnoreSection.cs
- ExpressionBinding.cs
- TokenBasedSetEnumerator.cs
- NavigationProperty.cs
- DesignTimeHTMLTextWriter.cs
- MimeXmlImporter.cs
- StrokeNodeOperations.cs
- IconConverter.cs
- HandleCollector.cs
- DictionarySurrogate.cs
- ToolZone.cs
- RunWorkerCompletedEventArgs.cs
- GeometryGroup.cs
- DataRow.cs
- dsa.cs
- TypeUsageBuilder.cs
- CodeTypeReferenceExpression.cs
- ValueTypeFixupInfo.cs
- TypeToken.cs
- IArgumentProvider.cs
- DesignerActionItemCollection.cs
- TransformPattern.cs
- ClientBuildManagerCallback.cs
- PropertyDescriptorCollection.cs
- ComponentResourceKeyConverter.cs
- TextBox.cs
- BasicExpressionVisitor.cs
- EngineSite.cs
- SQLInt64Storage.cs
- XmlComment.cs
- HtmlValidatorAdapter.cs
- WinInetCache.cs
- SelfIssuedSamlTokenFactory.cs
- SerializationException.cs
- ProxyWebPartConnectionCollection.cs
- Highlights.cs
- ISAPIApplicationHost.cs
- ViewKeyConstraint.cs
- AppDomainUnloadedException.cs
- SystemIcmpV4Statistics.cs
- EnumerableWrapperWeakToStrong.cs
- UnmanagedMemoryStreamWrapper.cs
- CryptoKeySecurity.cs
- _ScatterGatherBuffers.cs
- _TLSstream.cs
- ComponentGuaranteesAttribute.cs
- ArgumentReference.cs
- ReadOnlyPropertyMetadata.cs
- UserControlAutomationPeer.cs
- EventRoute.cs
- AjaxFrameworkAssemblyAttribute.cs
- RequestContext.cs
- webeventbuffer.cs
- FontNamesConverter.cs
- FormsAuthenticationUser.cs
- CodeDefaultValueExpression.cs
- Splitter.cs
- XmlSchemaCompilationSettings.cs
- ObsoleteAttribute.cs
- XMLSchema.cs
- TextProperties.cs
- ResXResourceSet.cs
- StatusBar.cs
- HttpCacheVaryByContentEncodings.cs
- FrameDimension.cs
- LogSwitch.cs
- DecoderFallback.cs
- MediaSystem.cs
- MutexSecurity.cs
- RemoteDebugger.cs
- SqlHelper.cs
- XPathException.cs
- GroupItem.cs
- WebPartConnectionCollection.cs
- PersonalizationStateInfoCollection.cs
- EncoderFallback.cs
- ProcessThreadCollection.cs
- MdImport.cs
- WebServiceMethodData.cs
- PublisherMembershipCondition.cs
- EncryptedData.cs
- SystemIcmpV4Statistics.cs
- DataRelationPropertyDescriptor.cs
- XPathConvert.cs
- Int16AnimationUsingKeyFrames.cs
- AttributeAction.cs
- XmlSchema.cs
- HostExecutionContextManager.cs
- CategoryGridEntry.cs
- Rotation3DAnimationUsingKeyFrames.cs
- DateTimeOffsetConverter.cs
- Block.cs