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
- SafeCertificateStore.cs
- EntityWrapper.cs
- Calendar.cs
- UnknownBitmapDecoder.cs
- _ListenerAsyncResult.cs
- FontStretch.cs
- StringWriter.cs
- CodeIdentifiers.cs
- FileLogRecordEnumerator.cs
- EditorBrowsableAttribute.cs
- CommonXSendMessage.cs
- RemoteTokenFactory.cs
- TextEditorThreadLocalStore.cs
- ProviderConnectionPointCollection.cs
- FileSystemInfo.cs
- MediaScriptCommandRoutedEventArgs.cs
- SimpleWorkerRequest.cs
- X509SecurityTokenProvider.cs
- HasCopySemanticsAttribute.cs
- GetBrowserTokenRequest.cs
- XsdBuilder.cs
- XmlSchemaType.cs
- ServiceDescriptions.cs
- MergeFailedEvent.cs
- Collection.cs
- ResXResourceWriter.cs
- EdgeProfileValidation.cs
- EpmTargetTree.cs
- control.ime.cs
- PagedDataSource.cs
- Effect.cs
- PersonalizationProviderHelper.cs
- RemoteWebConfigurationHostStream.cs
- StringUtil.cs
- SerializableReadOnlyDictionary.cs
- pingexception.cs
- VScrollBar.cs
- SectionXmlInfo.cs
- ScanQueryOperator.cs
- EditingCommands.cs
- ModelPropertyImpl.cs
- PartialToken.cs
- ConstantCheck.cs
- Repeater.cs
- MimeFormImporter.cs
- IEnumerable.cs
- PermissionSetTriple.cs
- TextFormatterImp.cs
- WebPartConnectVerb.cs
- CompatibleComparer.cs
- XmlDownloadManager.cs
- ServiceDescriptionContext.cs
- MethodBuilderInstantiation.cs
- EntityCommandCompilationException.cs
- Evidence.cs
- RoutedEventArgs.cs
- PropertyChangeTracker.cs
- WebSysDefaultValueAttribute.cs
- Hash.cs
- PerfService.cs
- TextBox.cs
- MetaType.cs
- Deflater.cs
- TextCompositionManager.cs
- SecurityTokenRequirement.cs
- Int32.cs
- ColumnBinding.cs
- ButtonFieldBase.cs
- SmiTypedGetterSetter.cs
- SecureEnvironment.cs
- TagPrefixAttribute.cs
- AssociationTypeEmitter.cs
- SqlFacetAttribute.cs
- ValidatingPropertiesEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- QuaternionValueSerializer.cs
- WebPartTransformerCollection.cs
- ProjectionPruner.cs
- RegexRunnerFactory.cs
- TextSelectionHelper.cs
- HashHelper.cs
- SafeNativeMethods.cs
- RawMouseInputReport.cs
- TextureBrush.cs
- CompiledXpathExpr.cs
- HtmlTable.cs
- ToolStripDropDownMenu.cs
- HttpFileCollection.cs
- FontWeightConverter.cs
- WebProxyScriptElement.cs
- ColumnHeader.cs
- ObjectContextServiceProvider.cs
- StackOverflowException.cs
- PolicyException.cs
- FullTextLine.cs
- ExpressionBinding.cs
- ImageFormatConverter.cs
- AliasedExpr.cs
- DataSourceCache.cs
- EntityContainerRelationshipSet.cs