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
- WebPartCloseVerb.cs
- ObjectReaderCompiler.cs
- X509CertificateCollection.cs
- XmlDictionaryReaderQuotas.cs
- TextTreeObjectNode.cs
- TextShapeableCharacters.cs
- XmlSchemaAnyAttribute.cs
- Membership.cs
- PreDigestedSignedInfo.cs
- DataGridItem.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataGridColumnsPage.cs
- CompiledQueryCacheEntry.cs
- SafeMemoryMappedFileHandle.cs
- Transform3DGroup.cs
- basevalidator.cs
- SymbolPair.cs
- FixedTextSelectionProcessor.cs
- MachineKeyConverter.cs
- Pen.cs
- ToolStripItemClickedEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- CustomAssemblyResolver.cs
- Window.cs
- Paragraph.cs
- StringUtil.cs
- _BasicClient.cs
- ApplicationSecurityManager.cs
- PageFunction.cs
- SqlDuplicator.cs
- RootCodeDomSerializer.cs
- XmlFormatExtensionAttribute.cs
- SafeArrayRankMismatchException.cs
- RuntimeVariablesExpression.cs
- WindowsFormsSynchronizationContext.cs
- SpellCheck.cs
- ISessionStateStore.cs
- BlockCollection.cs
- VectorConverter.cs
- QilIterator.cs
- BuildProviderAppliesToAttribute.cs
- MarkupCompilePass2.cs
- DocumentReference.cs
- Filter.cs
- RegexFCD.cs
- EmissiveMaterial.cs
- HybridDictionary.cs
- ConvertEvent.cs
- ReaderWriterLockWrapper.cs
- DesigntimeLicenseContext.cs
- SessionConnectionReader.cs
- Color.cs
- HandlerBase.cs
- XmlDocumentSurrogate.cs
- EmptyQuery.cs
- PropertyGrid.cs
- PropertyRef.cs
- DbReferenceCollection.cs
- SqlGenericUtil.cs
- XmlReaderSettings.cs
- Int64.cs
- InternalCache.cs
- EvidenceTypeDescriptor.cs
- HtmlContainerControl.cs
- UInt64Storage.cs
- HttpHostedTransportConfiguration.cs
- TextEndOfLine.cs
- ChannelReliableSession.cs
- PageCatalogPart.cs
- BoolExpression.cs
- HandlerWithFactory.cs
- NamespaceDecl.cs
- FontUnit.cs
- EdmFunction.cs
- HttpFileCollectionBase.cs
- XPathExpr.cs
- SpecularMaterial.cs
- DataObjectEventArgs.cs
- DesignTimeHTMLTextWriter.cs
- HtmlControl.cs
- DetailsView.cs
- Win32.cs
- DataGridColumn.cs
- KeyEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- AsyncResult.cs
- MatrixConverter.cs
- FileUtil.cs
- FocusWithinProperty.cs
- Bookmark.cs
- WebRequestModuleElement.cs
- Part.cs
- SqlComparer.cs
- PageContentCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- DurableOperationContext.cs
- ChangeInterceptorAttribute.cs
- KerberosRequestorSecurityToken.cs
- GPRECTF.cs
- SelectionChangedEventArgs.cs