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
- ResourceExpressionBuilder.cs
- XmlDataSourceNodeDescriptor.cs
- SecurityException.cs
- DrawingImage.cs
- MailDefinition.cs
- DataError.cs
- XmlSchemaInfo.cs
- StyleConverter.cs
- TypeUtils.cs
- StaticSiteMapProvider.cs
- TextMetrics.cs
- EntitySqlQueryState.cs
- DataGridSortCommandEventArgs.cs
- documentsequencetextpointer.cs
- RMEnrollmentPage3.cs
- ScrollPattern.cs
- ToolboxComponentsCreatingEventArgs.cs
- EncoderParameter.cs
- MarkupExtensionSerializer.cs
- ValueQuery.cs
- Mappings.cs
- DataContractJsonSerializer.cs
- CharacterShapingProperties.cs
- FontWeight.cs
- ImplicitInputBrush.cs
- SerialPinChanges.cs
- CodeSnippetStatement.cs
- LeftCellWrapper.cs
- Literal.cs
- userdatakeys.cs
- DataListGeneralPage.cs
- XmlAttributeAttribute.cs
- SelectionHighlightInfo.cs
- TextServicesCompartmentEventSink.cs
- XomlCompilerResults.cs
- DescendentsWalkerBase.cs
- Encoder.cs
- TraceUtils.cs
- ShaperBuffers.cs
- ContractDescription.cs
- StickyNoteContentControl.cs
- DefaultValueConverter.cs
- ProfileSection.cs
- CodeCommentStatementCollection.cs
- DataGridViewHeaderCell.cs
- ConfigXmlSignificantWhitespace.cs
- OleDbTransaction.cs
- ScrollableControl.cs
- DynamicObject.cs
- PowerStatus.cs
- AddingNewEventArgs.cs
- ListSortDescriptionCollection.cs
- DataKeyArray.cs
- ListViewContainer.cs
- DocumentsTrace.cs
- PageThemeCodeDomTreeGenerator.cs
- ColorConvertedBitmapExtension.cs
- ToolConsole.cs
- ObjectDataSource.cs
- ContentPlaceHolder.cs
- GridViewColumnHeaderAutomationPeer.cs
- KerberosSecurityTokenAuthenticator.cs
- AstTree.cs
- LazyLoadBehavior.cs
- RolePrincipal.cs
- CounterCreationData.cs
- DefaultObjectMappingItemCollection.cs
- EdmConstants.cs
- WebPartActionVerb.cs
- IOThreadScheduler.cs
- MethodBuilder.cs
- CustomAttribute.cs
- ElasticEase.cs
- ReceiveReply.cs
- ConstraintCollection.cs
- PerformanceCounterNameAttribute.cs
- MenuItemAutomationPeer.cs
- SafeTimerHandle.cs
- RotationValidation.cs
- HostingPreferredMapPath.cs
- TraceHwndHost.cs
- ManipulationLogic.cs
- TcpTransportBindingElement.cs
- RegionIterator.cs
- WebEvents.cs
- UnsafeNativeMethodsCLR.cs
- ReadOnlyAttribute.cs
- PropertyDescriptors.cs
- WebConfigurationHost.cs
- EmptyQuery.cs
- TraceRecord.cs
- SimpleBitVector32.cs
- ScrollableControl.cs
- ListCollectionView.cs
- SimpleWebHandlerParser.cs
- TextWriterEngine.cs
- VisualStyleRenderer.cs
- BitmapCodecInfo.cs
- PermissionSetTriple.cs
- DrawingBrush.cs