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
- SqlServer2KCompatibilityCheck.cs
- DataGridBoundColumn.cs
- BaseTemplateCodeDomTreeGenerator.cs
- SignedInfo.cs
- DetailsViewDeleteEventArgs.cs
- XmlSchemaSimpleType.cs
- SetterBaseCollection.cs
- PlanCompiler.cs
- WebPartVerb.cs
- SqlCommandSet.cs
- Condition.cs
- Stylus.cs
- BStrWrapper.cs
- AssertUtility.cs
- QueuePathDialog.cs
- NodeInfo.cs
- AlternateView.cs
- TypeUnloadedException.cs
- AttachmentService.cs
- ChangeBlockUndoRecord.cs
- ConsoleKeyInfo.cs
- IDReferencePropertyAttribute.cs
- ServiceModelExtensionCollectionElement.cs
- LinearGradientBrush.cs
- XMLSchema.cs
- WebPartDescription.cs
- DataServiceQueryOfT.cs
- WebPartVerb.cs
- OleDbPropertySetGuid.cs
- TextAdaptor.cs
- HandlerWithFactory.cs
- CaseCqlBlock.cs
- TemplateControlParser.cs
- ServicePerformanceCounters.cs
- AtlasWeb.Designer.cs
- Rotation3DAnimationUsingKeyFrames.cs
- ArcSegment.cs
- ListViewPagedDataSource.cs
- XmlSchemaDocumentation.cs
- CodeThrowExceptionStatement.cs
- SpecularMaterial.cs
- PropertyDescriptorGridEntry.cs
- PrintingPermissionAttribute.cs
- DataGridViewColumnEventArgs.cs
- TimeStampChecker.cs
- HttpInputStream.cs
- CustomBindingElementCollection.cs
- FlowDocumentView.cs
- X509Extension.cs
- DesignerValidatorAdapter.cs
- PartitionedDataSource.cs
- NetworkStream.cs
- RectAnimationClockResource.cs
- XmlFormatWriterGenerator.cs
- RowCache.cs
- TableAutomationPeer.cs
- ComponentCommands.cs
- NotifyInputEventArgs.cs
- HttpListener.cs
- ObjectDataSourceFilteringEventArgs.cs
- StorageEntityTypeMapping.cs
- EditorZoneBase.cs
- ScriptingRoleServiceSection.cs
- RetrieveVirtualItemEventArgs.cs
- FunctionDetailsReader.cs
- LinqDataSourceContextEventArgs.cs
- RightsManagementErrorHandler.cs
- Selection.cs
- DataGridViewCellFormattingEventArgs.cs
- StringBuilder.cs
- LoginName.cs
- BamlReader.cs
- COM2IDispatchConverter.cs
- SqlConnectionFactory.cs
- NetPipeSection.cs
- Label.cs
- ComponentResourceKey.cs
- XmlMessageFormatter.cs
- WSFederationHttpSecurityMode.cs
- TraceSource.cs
- SchemaCollectionCompiler.cs
- OlePropertyStructs.cs
- PropertyManager.cs
- IndexingContentUnit.cs
- BypassElement.cs
- XmlExtensionFunction.cs
- EpmContentDeSerializer.cs
- FreezableOperations.cs
- Scene3D.cs
- DataControlCommands.cs
- TextParaLineResult.cs
- WebUtil.cs
- DbConnectionPoolCounters.cs
- XmlQueryOutput.cs
- SharedPersonalizationStateInfo.cs
- WebPartVerb.cs
- NetStream.cs
- FixUpCollection.cs
- LayoutEditorPart.cs
- PackagingUtilities.cs