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
- ICspAsymmetricAlgorithm.cs
- ClientApiGenerator.cs
- ProjectionNode.cs
- SoapFault.cs
- RightsManagementErrorHandler.cs
- CompensationDesigner.cs
- TemplateFactory.cs
- ArraySortHelper.cs
- DrawingContextFlattener.cs
- Stack.cs
- PropertyValueUIItem.cs
- ListCollectionView.cs
- ValueConversionAttribute.cs
- MessageQueueConverter.cs
- ACL.cs
- serverconfig.cs
- PermissionSet.cs
- TearOffProxy.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- ListMarkerSourceInfo.cs
- MenuAdapter.cs
- AuthenticationService.cs
- MoveSizeWinEventHandler.cs
- DecoderFallback.cs
- AuthenticationModulesSection.cs
- AmbiguousMatchException.cs
- XPathItem.cs
- SqlDataSourceTableQuery.cs
- SettingsPropertyWrongTypeException.cs
- DateTimeEditor.cs
- BatchParser.cs
- Int64Storage.cs
- _SslState.cs
- QueryExecutionOption.cs
- EntryPointNotFoundException.cs
- HttpWebRequest.cs
- ConfigXmlText.cs
- Matrix.cs
- OutputCacheSettingsSection.cs
- TextRenderingModeValidation.cs
- ParserExtension.cs
- DataGridCellEditEndingEventArgs.cs
- ChannelManager.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- ExpressionVisitor.cs
- ListDictionaryInternal.cs
- XmlText.cs
- recordstatescratchpad.cs
- LowerCaseStringConverter.cs
- Table.cs
- DataGridViewCellStateChangedEventArgs.cs
- xmlglyphRunInfo.cs
- HttpListenerRequest.cs
- EtwTrace.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- StrongNameMembershipCondition.cs
- MeasureItemEvent.cs
- DuplicateDetector.cs
- XmlSchemaComplexType.cs
- Int64AnimationBase.cs
- DocumentDesigner.cs
- DataGridViewRowConverter.cs
- DateTimeFormat.cs
- OleDbPermission.cs
- _HelperAsyncResults.cs
- _ShellExpression.cs
- ToolStripItemClickedEventArgs.cs
- DesignSurfaceEvent.cs
- RemotingConfiguration.cs
- CellTreeNode.cs
- CodeVariableReferenceExpression.cs
- _SecureChannel.cs
- OletxTransactionHeader.cs
- HeaderElement.cs
- ValidatorCollection.cs
- ObjectPersistData.cs
- WebPartDesigner.cs
- CngProperty.cs
- CultureTableRecord.cs
- RawStylusInputCustomDataList.cs
- DataBindingHandlerAttribute.cs
- SafeArrayRankMismatchException.cs
- XmlSchemaComplexType.cs
- PhonemeEventArgs.cs
- WmlCommandAdapter.cs
- webbrowsersite.cs
- CharacterBufferReference.cs
- SmtpLoginAuthenticationModule.cs
- ItemAutomationPeer.cs
- WebAdminConfigurationHelper.cs
- MD5.cs
- XamlWrappingReader.cs
- LocatorGroup.cs
- IntSecurity.cs
- BigInt.cs
- PropertyPath.cs
- StringSorter.cs
- SimplePropertyEntry.cs
- UserControlParser.cs
- IdnMapping.cs