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
- WorkflowDefinitionDispenser.cs
- HttpProfileGroupBase.cs
- Manipulation.cs
- SafeNativeMethodsOther.cs
- RootBrowserWindowProxy.cs
- DmlSqlGenerator.cs
- UnsafeNativeMethods.cs
- WebPartCatalogAddVerb.cs
- CodeDomLocalizationProvider.cs
- SerializationInfoEnumerator.cs
- TextTreeObjectNode.cs
- XamlReader.cs
- SecureUICommand.cs
- NativeObjectSecurity.cs
- ellipse.cs
- WebPartRestoreVerb.cs
- WindowsHyperlink.cs
- PolicyException.cs
- ContractUtils.cs
- XmlDataSourceView.cs
- QilNode.cs
- Configuration.cs
- CodeStatementCollection.cs
- BamlTreeUpdater.cs
- EdmFunction.cs
- InfoCardSymmetricAlgorithm.cs
- TypeForwardedFromAttribute.cs
- UserPreference.cs
- _NetworkingPerfCounters.cs
- TreeChangeInfo.cs
- recordstatefactory.cs
- SpecialFolderEnumConverter.cs
- ExpandSegment.cs
- ParsedAttributeCollection.cs
- HandlerBase.cs
- Rules.cs
- ZoomPercentageConverter.cs
- MessageLogger.cs
- updateconfighost.cs
- ProgressBarRenderer.cs
- ImageButton.cs
- versioninfo.cs
- Font.cs
- SymbolEqualComparer.cs
- OdbcEnvironmentHandle.cs
- Query.cs
- ExpressionList.cs
- PublisherIdentityPermission.cs
- ImportOptions.cs
- DiscoveryClientBindingElement.cs
- TypeBuilder.cs
- HttpInputStream.cs
- RadioButton.cs
- BlockExpression.cs
- Win32Exception.cs
- WinEventQueueItem.cs
- StyleReferenceConverter.cs
- StringBlob.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlQueryContext.cs
- SByteConverter.cs
- Nodes.cs
- AssemblyCollection.cs
- DataColumnChangeEvent.cs
- TextViewBase.cs
- assertwrapper.cs
- DelayedRegex.cs
- Knowncolors.cs
- SimpleHandlerBuildProvider.cs
- FunctionCommandText.cs
- PointValueSerializer.cs
- Matrix3DConverter.cs
- SchemaElementLookUpTable.cs
- PointIndependentAnimationStorage.cs
- WriteableOnDemandStream.cs
- RoutedEventValueSerializer.cs
- RightsManagementPermission.cs
- BrowserCapabilitiesCompiler.cs
- TdsEnums.cs
- SafeEventLogReadHandle.cs
- SerialReceived.cs
- _IPv6Address.cs
- CalendarAutoFormatDialog.cs
- Debug.cs
- ClientFormsAuthenticationMembershipProvider.cs
- MetadataCacheItem.cs
- ResourceLoader.cs
- AgileSafeNativeMemoryHandle.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- ActivityDefaults.cs
- BaseEntityWrapper.cs
- ParameterBinding.cs
- InstancePersistenceCommandException.cs
- RC2.cs
- DefaultHttpHandler.cs
- TypeBuilder.cs
- InputLangChangeEvent.cs
- WebEvents.cs
- ColorTransformHelper.cs
- MemberPathMap.cs