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
- DesignerDataView.cs
- EventHandlerList.cs
- CompiledIdentityConstraint.cs
- DefaultSection.cs
- DocumentManager.cs
- ListenerAdapter.cs
- AppDomainProtocolHandler.cs
- ReferenceConverter.cs
- AsymmetricKeyExchangeDeformatter.cs
- PageThemeParser.cs
- OdbcDataAdapter.cs
- XmlSerializerAssemblyAttribute.cs
- ActivityCollectionMarkupSerializer.cs
- ConsumerConnectionPointCollection.cs
- MissingFieldException.cs
- IssuanceLicense.cs
- InitializerFacet.cs
- InteropBitmapSource.cs
- WebBrowserHelper.cs
- UrlRoutingModule.cs
- AmbientValueAttribute.cs
- ComponentDesigner.cs
- PropertyEntry.cs
- Vector3DAnimationBase.cs
- SqlDependencyUtils.cs
- TextUtf8RawTextWriter.cs
- DataChangedEventManager.cs
- RegexCode.cs
- DataColumnMappingCollection.cs
- AuthenticatingEventArgs.cs
- ListViewUpdatedEventArgs.cs
- ServiceModelEnumValidatorAttribute.cs
- XomlCompiler.cs
- DetailsViewDeletedEventArgs.cs
- ScriptingSectionGroup.cs
- StructuralComparisons.cs
- WebPartTransformerCollection.cs
- SmtpReplyReader.cs
- ReadWriteControlDesigner.cs
- SyndicationContent.cs
- PrivilegeNotHeldException.cs
- ListViewCommandEventArgs.cs
- HandlerBase.cs
- LoadWorkflowByKeyAsyncResult.cs
- DbModificationCommandTree.cs
- WebCategoryAttribute.cs
- InvariantComparer.cs
- ServiceAuthorizationBehavior.cs
- XmlWrappingWriter.cs
- DataSourceHelper.cs
- XmlTextWriter.cs
- TextDecorationCollectionConverter.cs
- InputScopeNameConverter.cs
- RuntimeConfig.cs
- SQLRoleProvider.cs
- JsonFormatGeneratorStatics.cs
- diagnosticsswitches.cs
- SQLInt16.cs
- HtmlTableRowCollection.cs
- StrokeNodeData.cs
- RequestCache.cs
- ScriptControl.cs
- WebPartConnectionsEventArgs.cs
- OdbcEnvironmentHandle.cs
- EventProviderTraceListener.cs
- SymLanguageType.cs
- PromptStyle.cs
- LongPath.cs
- ContentHostHelper.cs
- DataControlField.cs
- DataSourceDescriptorCollection.cs
- PrimitiveXmlSerializers.cs
- EnvironmentPermission.cs
- TextBox.cs
- ForeignKeyConstraint.cs
- DateTimeParse.cs
- DBConnection.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DBProviderConfigurationHandler.cs
- CookieParameter.cs
- QuerySettings.cs
- GetPageCompletedEventArgs.cs
- documentsequencetextpointer.cs
- SiteMapNodeItem.cs
- SqlGatherProducedAliases.cs
- SqlDataSourceEnumerator.cs
- RemoteDebugger.cs
- Rfc2898DeriveBytes.cs
- JournalEntry.cs
- VSWCFServiceContractGenerator.cs
- DataGridCaption.cs
- SmtpNegotiateAuthenticationModule.cs
- XmlWrappingReader.cs
- ConnectionStringSettings.cs
- ListViewDataItem.cs
- StateMachineHelpers.cs
- ZipIOExtraFieldElement.cs
- ObjectTag.cs
- DisplayNameAttribute.cs
- ResponseBodyWriter.cs