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
- RequiredFieldValidator.cs
- MouseActionValueSerializer.cs
- ProgressBarRenderer.cs
- XPathException.cs
- AuthenticationModuleElement.cs
- EntityDataSourceSelectingEventArgs.cs
- XmlWrappingReader.cs
- Select.cs
- SecurityDocument.cs
- Menu.cs
- Iis7Helper.cs
- ReliableMessagingHelpers.cs
- Codec.cs
- MexTcpBindingCollectionElement.cs
- HtmlLiteralTextAdapter.cs
- UserMapPath.cs
- StickyNote.cs
- LayoutManager.cs
- AvTraceFormat.cs
- SchemaMerger.cs
- WindowsScrollBar.cs
- WindowsImpersonationContext.cs
- mongolianshape.cs
- DataRelation.cs
- SelectorAutomationPeer.cs
- XmlToDatasetMap.cs
- DataGridViewRowHeaderCell.cs
- ExpandSegment.cs
- log.cs
- HtmlButton.cs
- CompiledQuery.cs
- ClassicBorderDecorator.cs
- SortFieldComparer.cs
- FormsAuthentication.cs
- MSAAEventDispatcher.cs
- DetailsViewActionList.cs
- RectConverter.cs
- QuestionEventArgs.cs
- FileVersionInfo.cs
- Soap.cs
- ExceptionValidationRule.cs
- MultiplexingFormatMapping.cs
- BamlRecordHelper.cs
- XmlIgnoreAttribute.cs
- documentation.cs
- WebResponse.cs
- SqlInternalConnectionTds.cs
- SemanticValue.cs
- EventNotify.cs
- ResourceCollectionInfo.cs
- PropertyCollection.cs
- TextSegment.cs
- Relationship.cs
- ResourceIDHelper.cs
- AddInProcess.cs
- DataFormat.cs
- AuthenticatingEventArgs.cs
- DropShadowEffect.cs
- VisualStates.cs
- JsonFaultDetail.cs
- XPathDocumentIterator.cs
- SSmlParser.cs
- FindCompletedEventArgs.cs
- FontNameEditor.cs
- TextChange.cs
- CompiledQueryCacheKey.cs
- BezierSegment.cs
- TypeViewSchema.cs
- relpropertyhelper.cs
- EntityRecordInfo.cs
- FontFaceLayoutInfo.cs
- GeometryModel3D.cs
- TypeBuilder.cs
- GridItemProviderWrapper.cs
- TemplateInstanceAttribute.cs
- XmlSubtreeReader.cs
- DataListCommandEventArgs.cs
- ListParagraph.cs
- OdbcRowUpdatingEvent.cs
- UidPropertyAttribute.cs
- SchemaMapping.cs
- TextEditorLists.cs
- BitStack.cs
- Boolean.cs
- FileSystemInfo.cs
- OleDbConnectionInternal.cs
- ObjectListCommandsPage.cs
- ExpressionLexer.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- ConnectorEditor.cs
- RegisteredArrayDeclaration.cs
- EntityAdapter.cs
- GenericTypeParameterBuilder.cs
- PrincipalPermission.cs
- StyleCollection.cs
- BuildProvider.cs
- ADMembershipProvider.cs
- ContentDesigner.cs
- InternalCache.cs
- CellLabel.cs