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
- TouchEventArgs.cs
- PointAnimation.cs
- BufferModeSettings.cs
- StylusCaptureWithinProperty.cs
- WorkflowRuntimeEndpoint.cs
- BitmapSourceSafeMILHandle.cs
- EventlogProvider.cs
- OdbcConnectionString.cs
- _RegBlobWebProxyDataBuilder.cs
- PieceDirectory.cs
- CounterSetInstance.cs
- UriExt.cs
- PopOutPanel.cs
- MediaContext.cs
- DBCSCodePageEncoding.cs
- DynamicMethod.cs
- PropertyEntry.cs
- HashHelpers.cs
- PreviewKeyDownEventArgs.cs
- AttributeProviderAttribute.cs
- CodeMethodInvokeExpression.cs
- SqlOuterApplyReducer.cs
- TransactionScope.cs
- ContractInstanceProvider.cs
- Label.cs
- RemotingSurrogateSelector.cs
- XmlFormatExtensionAttribute.cs
- CompatibleIComparer.cs
- ADConnectionHelper.cs
- sqlinternaltransaction.cs
- MemberRestriction.cs
- Vector3D.cs
- ByteStack.cs
- QueryAccessibilityHelpEvent.cs
- CodeArgumentReferenceExpression.cs
- InfoCardTrace.cs
- PointCollection.cs
- ProcessRequestAsyncResult.cs
- SizeConverter.cs
- Stackframe.cs
- WebPartZoneBase.cs
- ObjRef.cs
- UDPClient.cs
- CodeGeneratorOptions.cs
- ValidatorAttribute.cs
- CursorConverter.cs
- SqlCommandSet.cs
- GraphicsPathIterator.cs
- Context.cs
- BaseDataBoundControl.cs
- ImageFormatConverter.cs
- AlphabeticalEnumConverter.cs
- ClientRoleProvider.cs
- MultipartIdentifier.cs
- ListItemParagraph.cs
- MouseWheelEventArgs.cs
- ColorConvertedBitmap.cs
- ToolStripDropDown.cs
- TextViewBase.cs
- DrawingServices.cs
- InvalidProgramException.cs
- RSAPKCS1SignatureFormatter.cs
- ReflectionHelper.cs
- QueuedDeliveryRequirementsMode.cs
- AbandonedMutexException.cs
- QueryHandler.cs
- RSAOAEPKeyExchangeFormatter.cs
- MembershipValidatePasswordEventArgs.cs
- SimpleBitVector32.cs
- DocumentViewerConstants.cs
- ImageEditor.cs
- FormattedTextSymbols.cs
- StaticExtension.cs
- ListItemCollection.cs
- WhitespaceRuleReader.cs
- WebPartUserCapability.cs
- DataGridViewRowCancelEventArgs.cs
- DataGridLinkButton.cs
- cookiecollection.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlRawWriterWrapper.cs
- MatrixKeyFrameCollection.cs
- Queue.cs
- GridViewCancelEditEventArgs.cs
- SecurityElement.cs
- handlecollector.cs
- ProviderConnectionPointCollection.cs
- ImageButton.cs
- DataGridColumnCollection.cs
- DataBoundControlAdapter.cs
- BaseInfoTable.cs
- InnerItemCollectionView.cs
- GroupBox.cs
- RoutedEventArgs.cs
- UIntPtr.cs
- StructuredType.cs
- IPHostEntry.cs
- IUnknownConstantAttribute.cs
- RemoteX509Token.cs
- PrimaryKeyTypeConverter.cs