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
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- AdornerLayer.cs
- cookiecollection.cs
- ParameterModifier.cs
- TextDecorationCollection.cs
- ConfigurationManagerInternalFactory.cs
- ClassData.cs
- ChannelManager.cs
- ModelVisual3D.cs
- TopClause.cs
- ActivityCodeDomReferenceService.cs
- XmlNodeReader.cs
- loginstatus.cs
- webproxy.cs
- RegexCapture.cs
- XmlSchemaDocumentation.cs
- FigureParaClient.cs
- Matrix.cs
- SystemNetworkInterface.cs
- ConfigurationException.cs
- QueryCacheEntry.cs
- Debug.cs
- AsyncMethodInvoker.cs
- PersianCalendar.cs
- SqlUdtInfo.cs
- ControlAdapter.cs
- DescendantQuery.cs
- DrawingVisual.cs
- TimeSpanSecondsConverter.cs
- XmlSchemaAppInfo.cs
- Accessible.cs
- UniformGrid.cs
- ProcessHostFactoryHelper.cs
- BamlMapTable.cs
- DependencyPropertyValueSerializer.cs
- BaseAsyncResult.cs
- FragmentQueryProcessor.cs
- ColorAnimationBase.cs
- HijriCalendar.cs
- XslAstAnalyzer.cs
- EncodingTable.cs
- PerformanceCounterPermission.cs
- ZipIOCentralDirectoryBlock.cs
- RowToFieldTransformer.cs
- ReadOnlyActivityGlyph.cs
- AutoGeneratedFieldProperties.cs
- DataSourceNameHandler.cs
- DesignSurfaceManager.cs
- Help.cs
- XPathNode.cs
- SafeCancelMibChangeNotify.cs
- Win32.cs
- ActivityBuilderHelper.cs
- Rotation3DAnimationUsingKeyFrames.cs
- InputScope.cs
- MultiBindingExpression.cs
- ShapingEngine.cs
- DescendentsWalker.cs
- SoapEnumAttribute.cs
- baseshape.cs
- ImageDrawing.cs
- PropertyBuilder.cs
- ResourcePermissionBase.cs
- Parser.cs
- ConfigurationPermission.cs
- FileDetails.cs
- PageParserFilter.cs
- SynchronizationLockException.cs
- PropertyCollection.cs
- ExpressionBuilder.cs
- MainMenu.cs
- Closure.cs
- CompoundFileStreamReference.cs
- CaseExpr.cs
- OdbcPermission.cs
- Visual.cs
- Hash.cs
- EnumerableCollectionView.cs
- MultipartContentParser.cs
- WebPartCloseVerb.cs
- TextFormattingConverter.cs
- DataGridViewSelectedRowCollection.cs
- LayoutEditorPart.cs
- SimpleApplicationHost.cs
- WSFederationHttpBindingElement.cs
- HierarchicalDataSourceControl.cs
- SupportsEventValidationAttribute.cs
- CqlIdentifiers.cs
- ValueExpressions.cs
- ScrollBarRenderer.cs
- QEncodedStream.cs
- SmiTypedGetterSetter.cs
- SimpleTypesSurrogate.cs
- SqlConnectionString.cs
- IndentTextWriter.cs
- AssociationTypeEmitter.cs
- ExceptQueryOperator.cs
- XmlDesigner.cs
- SqlDeflator.cs
- panel.cs