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
- ExtensionDataReader.cs
- PropertyGridEditorPart.cs
- SqlDataSourceFilteringEventArgs.cs
- HScrollProperties.cs
- unitconverter.cs
- GraphicsState.cs
- MappingMetadataHelper.cs
- EpmCustomContentDeSerializer.cs
- RoutedPropertyChangedEventArgs.cs
- WebPartZone.cs
- UpWmlPageAdapter.cs
- BindingExpression.cs
- ConnectionStringSettings.cs
- GridItemCollection.cs
- CornerRadiusConverter.cs
- Attributes.cs
- ProcessHost.cs
- EdmScalarPropertyAttribute.cs
- OleStrCAMarshaler.cs
- XmlBufferReader.cs
- Permission.cs
- Trigger.cs
- NullableDoubleAverageAggregationOperator.cs
- InfoCardRSACryptoProvider.cs
- ReturnEventArgs.cs
- XmlIgnoreAttribute.cs
- TouchPoint.cs
- ConditionCollection.cs
- AutoGeneratedFieldProperties.cs
- XmlTextEncoder.cs
- Debug.cs
- Viewport3DVisual.cs
- NameSpaceEvent.cs
- BrowserTree.cs
- EncodingDataItem.cs
- HtmlTableCell.cs
- oledbmetadatacollectionnames.cs
- TrackingWorkflowEventArgs.cs
- NumericPagerField.cs
- XPathAncestorIterator.cs
- ActivationServices.cs
- PageBuildProvider.cs
- BindingsCollection.cs
- MimeTypeAttribute.cs
- SecondaryIndex.cs
- ProxyWebPartManager.cs
- TrustManager.cs
- SecurityHelper.cs
- UserPersonalizationStateInfo.cs
- ContentPlaceHolder.cs
- Transform.cs
- ErrorReporting.cs
- XmlSchemaIdentityConstraint.cs
- ObjectDataSourceFilteringEventArgs.cs
- Timer.cs
- InternalBufferOverflowException.cs
- LineVisual.cs
- WebConfigurationHost.cs
- ConcurrentDictionary.cs
- QilSortKey.cs
- EventDrivenDesigner.cs
- FtpWebResponse.cs
- ComponentDispatcher.cs
- SafeRightsManagementPubHandle.cs
- RtfControls.cs
- TextServicesProperty.cs
- CfgRule.cs
- GZipStream.cs
- UpdatableGenericsFeature.cs
- ConnectorRouter.cs
- BufferBuilder.cs
- XmlDataCollection.cs
- DataGridRelationshipRow.cs
- VirtualDirectoryMappingCollection.cs
- DecimalAnimation.cs
- UnSafeCharBuffer.cs
- HtmlTableRowCollection.cs
- SortQuery.cs
- LogEntryDeserializer.cs
- HttpResponse.cs
- ReflectionUtil.cs
- BinaryObjectInfo.cs
- PackagePart.cs
- ProgressBarHighlightConverter.cs
- NamespaceCollection.cs
- HashStream.cs
- ConditionalAttribute.cs
- HtmlInputReset.cs
- PermissionSetTriple.cs
- Pointer.cs
- GeneralTransform3DGroup.cs
- MetadataPropertyvalue.cs
- WebPartTransformerAttribute.cs
- CorrelationManager.cs
- AnnouncementInnerClientCD1.cs
- XmlDocumentFragment.cs
- URLMembershipCondition.cs
- Region.cs
- DbUpdateCommandTree.cs
- RewritingSimplifier.cs