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
- SmiEventSink.cs
- WmlLinkAdapter.cs
- ThicknessAnimationBase.cs
- WindowsGraphics.cs
- elementinformation.cs
- TrimSurroundingWhitespaceAttribute.cs
- SqlDataSourceConfigureSortForm.cs
- LambdaCompiler.ControlFlow.cs
- RectIndependentAnimationStorage.cs
- StaticSiteMapProvider.cs
- WindowsGraphics2.cs
- CommandLibraryHelper.cs
- WeakHashtable.cs
- MessageEnumerator.cs
- ToolStripManager.cs
- Ref.cs
- BoolExpr.cs
- EncryptedPackageFilter.cs
- InternalConfigSettingsFactory.cs
- SystemIPGlobalProperties.cs
- DeriveBytes.cs
- AnonymousIdentificationSection.cs
- GCHandleCookieTable.cs
- HtmlTernaryTree.cs
- FixedDocument.cs
- SqlNode.cs
- MDIWindowDialog.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- MsdtcWrapper.cs
- WebResourceUtil.cs
- NegationPusher.cs
- FlowLayoutPanel.cs
- TextBoxBase.cs
- ProviderConnectionPointCollection.cs
- CollectionBuilder.cs
- AppSettingsReader.cs
- EntityDataSourceEntityTypeFilterItem.cs
- IISMapPath.cs
- KnownTypesProvider.cs
- XmlStringTable.cs
- CapabilitiesAssignment.cs
- HttpChannelHelper.cs
- FreezableDefaultValueFactory.cs
- XmlSchema.cs
- FilterableAttribute.cs
- DBSqlParserTableCollection.cs
- XamlFigureLengthSerializer.cs
- CapabilitiesAssignment.cs
- FunctionCommandText.cs
- RuleCache.cs
- SecureUICommand.cs
- _PooledStream.cs
- ScrollBarRenderer.cs
- Brush.cs
- _BufferOffsetSize.cs
- MetadataStore.cs
- UpdateDelegates.Generated.cs
- AdornerHitTestResult.cs
- ArrangedElementCollection.cs
- DeferredRunTextReference.cs
- RequestValidator.cs
- HtmlInputReset.cs
- DelegatingHeader.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- OverflowException.cs
- ResourceContainer.cs
- LogReservationCollection.cs
- EmptyEnumerable.cs
- WeakReferenceList.cs
- Rotation3D.cs
- WebPartMovingEventArgs.cs
- PageWrapper.cs
- ArrangedElement.cs
- MarkerProperties.cs
- WebControlToolBoxItem.cs
- WebConfigurationManager.cs
- PolicyStatement.cs
- SamlAuthenticationClaimResource.cs
- Byte.cs
- Point4D.cs
- ModuleElement.cs
- VSWCFServiceContractGenerator.cs
- DataSetMappper.cs
- ComponentGlyph.cs
- LongPath.cs
- TextSelectionProcessor.cs
- Schema.cs
- _IPv6Address.cs
- SweepDirectionValidation.cs
- CodeExpressionStatement.cs
- MimeMapping.cs
- TemplateBindingExpressionConverter.cs
- SimpleTypeResolver.cs
- XmlSchemaComplexContentExtension.cs
- DataGridLinkButton.cs
- DataTableNewRowEvent.cs
- SafeNativeMethods.cs
- safelink.cs
- GAC.cs
- ContextBase.cs