Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormsAuthenticationUserCollection.cs
- BinHexDecoder.cs
- Rectangle.cs
- ArglessEventHandlerProxy.cs
- InstanceHandleConflictException.cs
- HttpGetServerProtocol.cs
- TableLayoutStyleCollection.cs
- AdornerLayer.cs
- SecurityStandardsManager.cs
- UnmanagedMemoryStreamWrapper.cs
- DisposableCollectionWrapper.cs
- UnicodeEncoding.cs
- X509RecipientCertificateServiceElement.cs
- AnimationClockResource.cs
- X509ChainPolicy.cs
- TextViewDesigner.cs
- WebPartTransformerCollection.cs
- XPathEmptyIterator.cs
- HashJoinQueryOperatorEnumerator.cs
- RightsManagementEncryptedStream.cs
- BinaryFormatterWriter.cs
- XmlCompatibilityReader.cs
- ServiceOperationParameter.cs
- BypassElement.cs
- InkCollectionBehavior.cs
- ConfigurationElement.cs
- SqlConnectionStringBuilder.cs
- UTF8Encoding.cs
- GridViewRowPresenter.cs
- TextReturnReader.cs
- CannotUnloadAppDomainException.cs
- ItemDragEvent.cs
- MultiView.cs
- WrappedReader.cs
- EntityDataSourceWrapper.cs
- CodeObject.cs
- BrowserDefinition.cs
- C14NUtil.cs
- KnownIds.cs
- DelimitedListTraceListener.cs
- EntityCommandExecutionException.cs
- BuilderPropertyEntry.cs
- PopupRootAutomationPeer.cs
- DeleteStoreRequest.cs
- IImplicitResourceProvider.cs
- LineInfo.cs
- QueryAccessibilityHelpEvent.cs
- SqlTypeConverter.cs
- RecognizerStateChangedEventArgs.cs
- InternalResources.cs
- MediaSystem.cs
- ExpandableObjectConverter.cs
- StorageMappingItemLoader.cs
- NetworkInterface.cs
- PageThemeBuildProvider.cs
- HttpModuleCollection.cs
- HttpModulesSection.cs
- EventProvider.cs
- TimerExtension.cs
- RelationHandler.cs
- DataRow.cs
- PerformanceCounterNameAttribute.cs
- AsymmetricSignatureFormatter.cs
- Parsers.cs
- CompatibleComparer.cs
- CommandArguments.cs
- WindowsGraphicsCacheManager.cs
- ComPlusSynchronizationContext.cs
- UnrecognizedAssertionsBindingElement.cs
- PackageDigitalSignatureManager.cs
- SystemGatewayIPAddressInformation.cs
- cache.cs
- DynamicActivityTypeDescriptor.cs
- TableItemPatternIdentifiers.cs
- DateTimeOffset.cs
- ComboBox.cs
- NetworkStream.cs
- OptimisticConcurrencyException.cs
- InputProcessorProfiles.cs
- MessageAction.cs
- IgnorePropertiesAttribute.cs
- WpfGeneratedKnownProperties.cs
- CodeDOMProvider.cs
- InvalidComObjectException.cs
- VariableModifiersHelper.cs
- DrawingBrush.cs
- ScriptMethodAttribute.cs
- ButtonFlatAdapter.cs
- ExpressionBuilderContext.cs
- NavigatorInvalidBodyAccessException.cs
- SapiInterop.cs
- PathGeometry.cs
- CustomPopupPlacement.cs
- WebConfigurationHostFileChange.cs
- EasingQuaternionKeyFrame.cs
- DigitShape.cs
- DbProviderManifest.cs
- Attributes.cs
- HatchBrush.cs
- ConfigurationPermission.cs