Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- _IPv6Address.cs
- XmlQueryStaticData.cs
- ProfilePropertyNameValidator.cs
- ObjectTag.cs
- CheckBoxBaseAdapter.cs
- RevocationPoint.cs
- XPathChildIterator.cs
- ContentTextAutomationPeer.cs
- FileDataSourceCache.cs
- ListControlConvertEventArgs.cs
- ThemeInfoAttribute.cs
- KeyInfo.cs
- GenericEnumConverter.cs
- TextOutput.cs
- DesignerObject.cs
- TextCollapsingProperties.cs
- DrawingContext.cs
- SoapObjectInfo.cs
- ToolStripStatusLabel.cs
- MediaContextNotificationWindow.cs
- ObjectNavigationPropertyMapping.cs
- DPCustomTypeDescriptor.cs
- PolyQuadraticBezierSegment.cs
- ToolStripSplitStackLayout.cs
- CodeTypeReferenceCollection.cs
- RowVisual.cs
- WindowsListView.cs
- GridItemPatternIdentifiers.cs
- Quad.cs
- CheckBoxRenderer.cs
- ButtonChrome.cs
- OrthographicCamera.cs
- TimeZone.cs
- PackageProperties.cs
- ICspAsymmetricAlgorithm.cs
- HiddenFieldPageStatePersister.cs
- GrammarBuilderWildcard.cs
- Preprocessor.cs
- BrowserCapabilitiesCompiler.cs
- BigInt.cs
- ItemType.cs
- MultilineStringConverter.cs
- MailFileEditor.cs
- ModelPerspective.cs
- DataMemberAttribute.cs
- ListSortDescriptionCollection.cs
- FixedFlowMap.cs
- TextTreeDeleteContentUndoUnit.cs
- AsmxEndpointPickerExtension.cs
- BamlResourceDeserializer.cs
- DbQueryCommandTree.cs
- CollectionViewGroup.cs
- ResourceDictionary.cs
- SmiRecordBuffer.cs
- CharacterBufferReference.cs
- Msec.cs
- ResumeStoryboard.cs
- DiagnosticSection.cs
- PopupRoot.cs
- TimeIntervalCollection.cs
- MimeMultiPart.cs
- Pen.cs
- RevocationPoint.cs
- FixedTextSelectionProcessor.cs
- WebService.cs
- BeginEvent.cs
- TextParagraphCache.cs
- SignatureToken.cs
- RegexStringValidator.cs
- DataChangedEventManager.cs
- PartialClassGenerationTaskInternal.cs
- altserialization.cs
- FilePresentation.cs
- TemplateControlBuildProvider.cs
- TableCell.cs
- RTLAwareMessageBox.cs
- StreamGeometryContext.cs
- DataGridViewColumnHeaderCell.cs
- OleDbPropertySetGuid.cs
- RichTextBoxAutomationPeer.cs
- ControlPropertyNameConverter.cs
- XmlSchemaSimpleTypeList.cs
- DrawingAttributesDefaultValueFactory.cs
- FreezableCollection.cs
- ScrollProviderWrapper.cs
- RemotingServices.cs
- XslAst.cs
- RecognizedPhrase.cs
- InputMethod.cs
- DebuggerAttributes.cs
- ItemsPresenter.cs
- RootBrowserWindow.cs
- AutomationEvent.cs
- TdsParameterSetter.cs
- StylusButton.cs
- IIS7UserPrincipal.cs
- ObjectViewListener.cs
- Collection.cs
- SqlComparer.cs
- formatter.cs