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
- BooleanConverter.cs
- TemplateControlParser.cs
- TextSegment.cs
- DelayedRegex.cs
- NetStream.cs
- StreamUpdate.cs
- DataGridViewMethods.cs
- DecimalFormatter.cs
- DataSourceCacheDurationConverter.cs
- WSTrust.cs
- Shared.cs
- Queue.cs
- _AutoWebProxyScriptEngine.cs
- ConfigXmlDocument.cs
- TextParaClient.cs
- TPLETWProvider.cs
- AutomationPropertyInfo.cs
- SplitterPanel.cs
- SqlDependency.cs
- DataRecordInternal.cs
- BypassElement.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- CdpEqualityComparer.cs
- WindowsListViewScroll.cs
- Transform3D.cs
- ProtocolsSection.cs
- BooleanFunctions.cs
- TemplateNodeContextMenu.cs
- SurrogateChar.cs
- EdgeProfileValidation.cs
- Knowncolors.cs
- ByteFacetDescriptionElement.cs
- SqlDataSourceCache.cs
- DefaultBinder.cs
- FilterEventArgs.cs
- XmlSchemaInfo.cs
- TemplateField.cs
- NonClientArea.cs
- GridProviderWrapper.cs
- HtmlHistory.cs
- Page.cs
- wmiprovider.cs
- HtmlControl.cs
- StreamResourceInfo.cs
- ObjectViewFactory.cs
- RawStylusInputCustomData.cs
- DecimalKeyFrameCollection.cs
- RuleConditionDialog.cs
- StatusCommandUI.cs
- FormatterServices.cs
- SystemIdentity.cs
- DataGridViewCheckBoxCell.cs
- path.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ToolStripItemRenderEventArgs.cs
- CompilerLocalReference.cs
- GroupBox.cs
- SpecialNameAttribute.cs
- SerializationStore.cs
- AsyncStreamReader.cs
- CriticalFinalizerObject.cs
- XmlDictionaryWriter.cs
- RelationshipNavigation.cs
- RelatedView.cs
- EncoderBestFitFallback.cs
- ApplicationActivator.cs
- RelatedImageListAttribute.cs
- StaticDataManager.cs
- OutputCacheSettingsSection.cs
- ProfilePropertyNameValidator.cs
- EntityRecordInfo.cs
- FileSystemWatcher.cs
- BrowserCapabilitiesCompiler.cs
- Triplet.cs
- ConnectionStringSettingsCollection.cs
- LinkLabel.cs
- MultiPropertyDescriptorGridEntry.cs
- ConfigurationValidatorBase.cs
- DbgUtil.cs
- Baml2006ReaderFrame.cs
- StrongTypingException.cs
- EntityUtil.cs
- JsonFormatGeneratorStatics.cs
- XslVisitor.cs
- TextBox.cs
- CaseInsensitiveComparer.cs
- XamlPathDataSerializer.cs
- DocumentViewerHelper.cs
- HelpProvider.cs
- FaultReasonText.cs
- DocumentsTrace.cs
- XamlSerializationHelper.cs
- ParentQuery.cs
- ClientTargetCollection.cs
- WrappedIUnknown.cs
- SchemaObjectWriter.cs
- MeshGeometry3D.cs
- DeferredSelectedIndexReference.cs
- DesigntimeLicenseContext.cs
- DbConnectionHelper.cs