Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataEntity / System / Data / Metadata / EdmItemCollection.OcAssemblyCache.cs / 1305376 / EdmItemCollection.OcAssemblyCache.cs
//---------------------------------------------------------------------- //// Copyright (c) Microsoft Corporation. All rights reserved. // // // @owner [....] // @backupOwner [....] //--------------------------------------------------------------------- using System.Collections.Generic; using System.Reflection; namespace System.Data.Metadata.Edm { internal class OcAssemblyCache { ////// cache for loaded assembly /// private Dictionary_conventionalOcCache; internal OcAssemblyCache() { _conventionalOcCache = new Dictionary (); } /// /// Please do NOT call this method outside of AssemblyCache. Since AssemblyCache maintain the lock, /// this method doesn't provide any locking mechanism. /// /// /// ///internal bool TryGetConventionalOcCacheFromAssemblyCache(Assembly assemblyToLookup, out ImmutableAssemblyCacheEntry cacheEntry) { cacheEntry = null; return _conventionalOcCache.TryGetValue(assemblyToLookup, out cacheEntry); } /// /// Please do NOT call this method outside of AssemblyCache. Since AssemblyCache maintain the lock, /// this method doesn't provide any locking mechanism. /// /// /// internal void AddAssemblyToOcCacheFromAssemblyCache(Assembly assembly, ImmutableAssemblyCacheEntry cacheEntry) { if (_conventionalOcCache.ContainsKey(assembly)) { // we shouldn't update the cache if we already have one return; } _conventionalOcCache.Add(assembly, cacheEntry); } } } // 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
- DesignTimeTemplateParser.cs
- Assert.cs
- DecimalConverter.cs
- AttachedProperty.cs
- ValueChangedEventManager.cs
- ExpressionVisitor.cs
- ResourceAssociationType.cs
- SingleConverter.cs
- ObjectComplexPropertyMapping.cs
- ExtensibleClassFactory.cs
- LoginName.cs
- SubstitutionResponseElement.cs
- EnumerableRowCollectionExtensions.cs
- FrugalList.cs
- SmiXetterAccessMap.cs
- CharacterBuffer.cs
- TextContainerHelper.cs
- ObjectResult.cs
- OutputWindow.cs
- TextServicesHost.cs
- NotCondition.cs
- SecUtil.cs
- ContentType.cs
- securitycriticaldataformultiplegetandset.cs
- Message.cs
- RewritingPass.cs
- SqlRowUpdatingEvent.cs
- SequentialOutput.cs
- CacheHelper.cs
- DataKey.cs
- UnmanagedBitmapWrapper.cs
- ThemeableAttribute.cs
- PropertyExpression.cs
- ConnectionStringsExpressionBuilder.cs
- HostedHttpRequestAsyncResult.cs
- CodeAttributeDeclaration.cs
- InvokeHandlers.cs
- MimeFormatExtensions.cs
- WindowsPen.cs
- DBCommandBuilder.cs
- Label.cs
- SecurityTraceRecordHelper.cs
- ActionMessageFilterTable.cs
- TrailingSpaceComparer.cs
- MediaScriptCommandRoutedEventArgs.cs
- SqlAliasesReferenced.cs
- Registry.cs
- ValidatorCompatibilityHelper.cs
- PhysicalFontFamily.cs
- SupportsEventValidationAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- ImageInfo.cs
- SpellerHighlightLayer.cs
- DropShadowEffect.cs
- PersonalizationStateInfo.cs
- LocationFactory.cs
- StreamResourceInfo.cs
- BamlRecordReader.cs
- SpeechRecognitionEngine.cs
- SemanticResolver.cs
- ConfigXmlText.cs
- BrowserCapabilitiesFactory35.cs
- cryptoapiTransform.cs
- HwndMouseInputProvider.cs
- DataColumn.cs
- CounterCreationData.cs
- Rss20ItemFormatter.cs
- UInt16Storage.cs
- ScalarType.cs
- HttpTransportBindingElement.cs
- Pkcs9Attribute.cs
- BinaryFormatterSinks.cs
- WindowsNonControl.cs
- FontFaceLayoutInfo.cs
- XmlSchemaImport.cs
- TextParagraphCache.cs
- XmlLoader.cs
- FilterException.cs
- HtmlTextArea.cs
- SortedDictionary.cs
- SqlDataSourceSelectingEventArgs.cs
- DetailsViewUpdatedEventArgs.cs
- LinkedResourceCollection.cs
- MobileTextWriter.cs
- UITypeEditor.cs
- OdbcFactory.cs
- SQLDecimal.cs
- CopyNamespacesAction.cs
- ApplicationProxyInternal.cs
- MexNamedPipeBindingCollectionElement.cs
- TemplatePagerField.cs
- DeferredSelectedIndexReference.cs
- ObjectDataProvider.cs
- OutOfProcStateClientManager.cs
- MouseGesture.cs
- RubberbandSelector.cs
- BidOverLoads.cs
- SerializableAttribute.cs
- FixedPage.cs
- GPStream.cs