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
- ObjectSet.cs
- LocalBuilder.cs
- SqlDelegatedTransaction.cs
- NullExtension.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- EntryPointNotFoundException.cs
- ImageSourceValueSerializer.cs
- COM2ExtendedUITypeEditor.cs
- ProjectionPathBuilder.cs
- GeneralTransform3DTo2DTo3D.cs
- SqlServer2KCompatibilityCheck.cs
- SpAudioStreamWrapper.cs
- RemoteDebugger.cs
- Matrix3DConverter.cs
- ObjectViewQueryResultData.cs
- DocumentsTrace.cs
- AlphaSortedEnumConverter.cs
- LookupNode.cs
- UriSchemeKeyedCollection.cs
- DataGridCellInfo.cs
- IndicShape.cs
- WmlPhoneCallAdapter.cs
- SafeFileMappingHandle.cs
- CollectionView.cs
- ToolStripDropDownMenu.cs
- DocumentAutomationPeer.cs
- HostedImpersonationContext.cs
- DataViewSetting.cs
- XamlSerializationHelper.cs
- TraceRecord.cs
- XmlAttribute.cs
- ClientTargetSection.cs
- SchemaComplexType.cs
- WindowsTooltip.cs
- OracleDataAdapter.cs
- Maps.cs
- TabletDevice.cs
- RepeatInfo.cs
- mediaclock.cs
- BeginStoryboard.cs
- cookiecontainer.cs
- Matrix3DStack.cs
- DictionaryGlobals.cs
- HashAlgorithm.cs
- ColumnWidthChangedEvent.cs
- TabControlCancelEvent.cs
- ImageFormat.cs
- SoapExtensionTypeElementCollection.cs
- FileVersionInfo.cs
- EnumerationRangeValidationUtil.cs
- VirtualizingStackPanel.cs
- Parameter.cs
- UIElementParagraph.cs
- cookieexception.cs
- AnimatedTypeHelpers.cs
- MouseButtonEventArgs.cs
- BamlStream.cs
- SiteOfOriginPart.cs
- Missing.cs
- BitmapEffectOutputConnector.cs
- TdsParserHelperClasses.cs
- FixedStringLookup.cs
- VirtualPathData.cs
- DataGridTextBox.cs
- FixedSOMImage.cs
- DatePicker.cs
- ColumnWidthChangingEvent.cs
- ListItemParagraph.cs
- SystemDiagnosticsSection.cs
- SmiEventStream.cs
- ConnectionOrientedTransportChannelFactory.cs
- ObjectParameter.cs
- ViewStateModeByIdAttribute.cs
- DataBindingList.cs
- GeometryValueSerializer.cs
- ProfessionalColors.cs
- SecurityRuntime.cs
- SimpleApplicationHost.cs
- sqlser.cs
- PieceNameHelper.cs
- MetadataItemSerializer.cs
- DetailsViewPageEventArgs.cs
- RowToFieldTransformer.cs
- InputLanguageCollection.cs
- SystemDropShadowChrome.cs
- VariableQuery.cs
- Geometry.cs
- SimpleFileLog.cs
- XNameConverter.cs
- HttpWebRequestElement.cs
- GridViewCommandEventArgs.cs
- ModuleBuilderData.cs
- HandlerFactoryWrapper.cs
- DataGridCellClipboardEventArgs.cs
- ProcessRequestAsyncResult.cs
- XmlSignificantWhitespace.cs
- OrderedDictionaryStateHelper.cs
- FileCodeGroup.cs
- ConfigurationHelpers.cs
- XsdDataContractImporter.cs