Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Helpers.cs
- OpCopier.cs
- SortDescription.cs
- AnimatedTypeHelpers.cs
- HandledMouseEvent.cs
- DecoratedNameAttribute.cs
- FormView.cs
- ExecutedRoutedEventArgs.cs
- _WinHttpWebProxyDataBuilder.cs
- WizardSideBarListControlItem.cs
- ScrollEvent.cs
- ControlUtil.cs
- PlatformNotSupportedException.cs
- ReflectionUtil.cs
- XmlFormatReaderGenerator.cs
- SqlUserDefinedTypeAttribute.cs
- SigningCredentials.cs
- DbTypeMap.cs
- PostBackTrigger.cs
- RefreshEventArgs.cs
- ImageAutomationPeer.cs
- XmlTextEncoder.cs
- odbcmetadatafactory.cs
- EntityTypeEmitter.cs
- ExceptQueryOperator.cs
- DisplayNameAttribute.cs
- CheckBoxAutomationPeer.cs
- FixedPosition.cs
- CatalogPartCollection.cs
- PropertyDescriptorComparer.cs
- BStrWrapper.cs
- shaper.cs
- CompoundFileStreamReference.cs
- TextBoxAutoCompleteSourceConverter.cs
- DefaultEvaluationContext.cs
- DES.cs
- ModelItemCollection.cs
- _HeaderInfo.cs
- CallbackValidatorAttribute.cs
- Stylus.cs
- SplayTreeNode.cs
- PrintPreviewGraphics.cs
- MetadataUtilsSmi.cs
- GenerateTemporaryTargetAssembly.cs
- HostedHttpContext.cs
- HMACRIPEMD160.cs
- MulticastNotSupportedException.cs
- GAC.cs
- BookmarkEventArgs.cs
- FileDialogCustomPlacesCollection.cs
- IProvider.cs
- ObjectStorage.cs
- XslNumber.cs
- HwndTarget.cs
- LinqDataSourceValidationException.cs
- ServiceOperation.cs
- SelectionWordBreaker.cs
- DefinitionBase.cs
- CodeDirectiveCollection.cs
- SiteIdentityPermission.cs
- PrintingPermission.cs
- TemplateBindingExtensionConverter.cs
- DoubleAnimationUsingKeyFrames.cs
- UrlPropertyAttribute.cs
- TableRowGroup.cs
- DocumentEventArgs.cs
- ToolZone.cs
- OverlappedAsyncResult.cs
- NonSerializedAttribute.cs
- TextTreeNode.cs
- RtfControlWordInfo.cs
- Pool.cs
- RequestChannel.cs
- XmlSchemaInclude.cs
- StoreItemCollection.cs
- CDSCollectionETWBCLProvider.cs
- SafeRightsManagementPubHandle.cs
- DataGridDetailsPresenter.cs
- CqlParserHelpers.cs
- MonthChangedEventArgs.cs
- EventPropertyMap.cs
- RowSpanVector.cs
- WebControlAdapter.cs
- ISAPIApplicationHost.cs
- LinearGradientBrush.cs
- ContextQuery.cs
- DataFieldConverter.cs
- CommonDialog.cs
- WebFormDesignerActionService.cs
- ObfuscationAttribute.cs
- ColorKeyFrameCollection.cs
- SelectionChangedEventArgs.cs
- MdImport.cs
- IsolatedStorageException.cs
- Odbc32.cs
- BaseUriHelper.cs
- BindingsCollection.cs
- SignerInfo.cs
- TraceInternal.cs
- DispatcherOperation.cs