Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / xsp / System / Web / Extensions / ui / AssemblyCache.cs / 1 / AssemblyCache.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Reflection; // Caches Assembly APIs to improve performance internal static class AssemblyCache { // PERF: Cache reference to System.Web.Extensions assembly public static readonly Assembly SystemWebExtensions = typeof(AssemblyRef).Assembly; // Maps string (assembly name) to Assembly private static readonly Hashtable _assemblyCache = Hashtable.Synchronized(new Hashtable()); public static Assembly Load(string assemblyName) { Assembly assembly = (Assembly)_assemblyCache[assemblyName]; if (assembly == null) { assembly = Assembly.Load(assemblyName); _assemblyCache[assemblyName] = assembly; } return assembly; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.UI { using System; using System.Collections; using System.Reflection; // Caches Assembly APIs to improve performance internal static class AssemblyCache { // PERF: Cache reference to System.Web.Extensions assembly public static readonly Assembly SystemWebExtensions = typeof(AssemblyRef).Assembly; // Maps string (assembly name) to Assembly private static readonly Hashtable _assemblyCache = Hashtable.Synchronized(new Hashtable()); public static Assembly Load(string assemblyName) { Assembly assembly = (Assembly)_assemblyCache[assemblyName]; if (assembly == null) { assembly = Assembly.Load(assemblyName); _assemblyCache[assemblyName] = assembly; } return assembly; } } } // 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
- Visual3D.cs
- ProfileSection.cs
- EtwTrace.cs
- _ConnectionGroup.cs
- EventMappingSettingsCollection.cs
- DbModificationCommandTree.cs
- ObjectHelper.cs
- CustomAttribute.cs
- WinEventTracker.cs
- WebZone.cs
- RequestResizeEvent.cs
- JsonDeserializer.cs
- FormViewInsertedEventArgs.cs
- ClientSideProviderDescription.cs
- SourceItem.cs
- HtmlInputImage.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DataKey.cs
- Translator.cs
- TablePatternIdentifiers.cs
- HandlerBase.cs
- ParentUndoUnit.cs
- SmiContextFactory.cs
- BrowserCapabilitiesFactoryBase.cs
- MouseBinding.cs
- SiteMapProvider.cs
- XDeferredAxisSource.cs
- EntityContainer.cs
- ClientRuntimeConfig.cs
- XmlHierarchicalDataSourceView.cs
- XmlAttributeOverrides.cs
- ApplicationFileParser.cs
- SmiContext.cs
- DoubleLink.cs
- WaitHandle.cs
- IssuanceLicense.cs
- SignatureResourcePool.cs
- _NativeSSPI.cs
- SizeFConverter.cs
- PageCatalogPart.cs
- IDQuery.cs
- TableFieldsEditor.cs
- CheckBox.cs
- MultiBindingExpression.cs
- ProofTokenCryptoHandle.cs
- DependencyStoreSurrogate.cs
- UnsafeCollabNativeMethods.cs
- DesignerOptionService.cs
- HighlightVisual.cs
- BaseHashHelper.cs
- SQLBinaryStorage.cs
- CompilerGeneratedAttribute.cs
- TextTreeRootNode.cs
- FontFaceLayoutInfo.cs
- WebPartEditorOkVerb.cs
- CellQuery.cs
- exports.cs
- ReadOnlyCollection.cs
- PerformanceCounterPermissionEntryCollection.cs
- PrimitiveList.cs
- CreateUserErrorEventArgs.cs
- CircleHotSpot.cs
- AppSettingsReader.cs
- AspNetPartialTrustHelpers.cs
- PreloadedPackages.cs
- Configuration.cs
- DictionaryBase.cs
- LoginCancelEventArgs.cs
- DeclarationUpdate.cs
- JavaScriptString.cs
- DataPagerFieldCommandEventArgs.cs
- StringStorage.cs
- CompatibleComparer.cs
- basevalidator.cs
- UidManager.cs
- XamlWrappingReader.cs
- UniqueEventHelper.cs
- ResourceType.cs
- ScriptingWebServicesSectionGroup.cs
- DiscoveryReference.cs
- SignatureToken.cs
- CollectionTypeElement.cs
- TabControl.cs
- CompiledELinqQueryState.cs
- EncodingTable.cs
- FontStyleConverter.cs
- Type.cs
- ButtonRenderer.cs
- BitmapEffectGeneralTransform.cs
- SynchronizationContext.cs
- ListViewDesigner.cs
- RequestBringIntoViewEventArgs.cs
- BlockUIContainer.cs
- Win32MouseDevice.cs
- X509ThumbprintKeyIdentifierClause.cs
- RoleManagerModule.cs
- View.cs
- DataRelationCollection.cs
- NetworkStream.cs
- EncoderParameter.cs