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
- AppDomainGrammarProxy.cs
- ContentOperations.cs
- Encoder.cs
- UserControlFileEditor.cs
- FixedLineResult.cs
- KnownTypesHelper.cs
- ConstNode.cs
- CharKeyFrameCollection.cs
- DeviceContexts.cs
- EventBuilder.cs
- ExceptionNotification.cs
- ControlBuilderAttribute.cs
- DependencyObjectPropertyDescriptor.cs
- CompilerScopeManager.cs
- __ConsoleStream.cs
- WizardPanelChangingEventArgs.cs
- HttpRawResponse.cs
- PrintPageEvent.cs
- EditorPartCollection.cs
- WebPartZoneBaseDesigner.cs
- SiteOfOriginContainer.cs
- SqlDataReader.cs
- NativeMethods.cs
- DataBoundControlAdapter.cs
- FileSystemWatcher.cs
- FontStretches.cs
- TrackBarRenderer.cs
- GeneralTransformCollection.cs
- ManagementClass.cs
- SortKey.cs
- AssertUtility.cs
- OptionUsage.cs
- DESCryptoServiceProvider.cs
- SiteMapPathDesigner.cs
- UIntPtr.cs
- ReadOnlyTernaryTree.cs
- ThaiBuddhistCalendar.cs
- PieceNameHelper.cs
- HScrollBar.cs
- SoapFault.cs
- XmlNodeComparer.cs
- RoleProviderPrincipal.cs
- ItemsPresenter.cs
- TypeSystemHelpers.cs
- AppSettingsReader.cs
- PermissionSetTriple.cs
- BindingMemberInfo.cs
- TextDpi.cs
- RowUpdatingEventArgs.cs
- WebPartEditorApplyVerb.cs
- FileRecordSequenceHelper.cs
- AuthenticationException.cs
- SchemaMerger.cs
- CompositeDuplexBindingElement.cs
- keycontainerpermission.cs
- GetPageCompletedEventArgs.cs
- PkcsMisc.cs
- TemplateEditingFrame.cs
- ApplicationManager.cs
- PrinterResolution.cs
- SimpleBitVector32.cs
- OdbcStatementHandle.cs
- EventLogger.cs
- CustomActivityDesigner.cs
- HttpServerVarsCollection.cs
- StaticSiteMapProvider.cs
- BamlBinaryWriter.cs
- EncodingStreamWrapper.cs
- ScrollEventArgs.cs
- TextWriterEngine.cs
- ValidateNames.cs
- XmlStringTable.cs
- CodeAssignStatement.cs
- HostSecurityManager.cs
- FirstMatchCodeGroup.cs
- PageTrueTypeFont.cs
- AnimatedTypeHelpers.cs
- ExpressionsCollectionEditor.cs
- DataGridViewColumnCollection.cs
- NamedPipeWorkerProcess.cs
- ClientEventManager.cs
- DomNameTable.cs
- ConfigurationManagerInternalFactory.cs
- Ref.cs
- Executor.cs
- XmlSchemaType.cs
- MenuItemCollection.cs
- DecoderFallbackWithFailureFlag.cs
- DataGridViewRowPostPaintEventArgs.cs
- CoTaskMemSafeHandle.cs
- SerializableAttribute.cs
- ControlPaint.cs
- QuinticEase.cs
- lengthconverter.cs
- SqlNodeAnnotations.cs
- XmlAnyElementAttributes.cs
- CodeIdentifier.cs
- MenuItem.cs
- DesignerView.cs
- ImageAttributes.cs