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
- TileBrush.cs
- SQLBinaryStorage.cs
- SqlDataReader.cs
- ParserOptions.cs
- ManagedWndProcTracker.cs
- MatrixTransform3D.cs
- ProjectedSlot.cs
- DesignerHelpers.cs
- FieldNameLookup.cs
- ListSortDescriptionCollection.cs
- QEncodedStream.cs
- Exceptions.cs
- CounterCreationData.cs
- ExpressionBuilderContext.cs
- StyleBamlRecordReader.cs
- SqlUserDefinedTypeAttribute.cs
- DesignerAdapterUtil.cs
- FixedSOMPage.cs
- SimpleHandlerBuildProvider.cs
- ProxyFragment.cs
- KerberosRequestorSecurityToken.cs
- DataGridViewComboBoxColumn.cs
- SHA1.cs
- IisTraceListener.cs
- ExpressionSelection.cs
- RegexWorker.cs
- Graph.cs
- XmlBindingWorker.cs
- CompositeDataBoundControl.cs
- EllipseGeometry.cs
- PathTooLongException.cs
- cookie.cs
- EngineSite.cs
- ResourceType.cs
- TreeNodeClickEventArgs.cs
- XslNumber.cs
- HtmlTable.cs
- DotExpr.cs
- TimeManager.cs
- RecipientInfo.cs
- WindowsFormsLinkLabel.cs
- ParseNumbers.cs
- InOutArgumentConverter.cs
- OdbcConnectionFactory.cs
- KeyValuePair.cs
- StrokeSerializer.cs
- DiscreteKeyFrames.cs
- SystemInfo.cs
- GenericPrincipal.cs
- FacetDescriptionElement.cs
- StringValidator.cs
- Convert.cs
- SqlRetyper.cs
- TextView.cs
- ScriptRegistrationManager.cs
- WebPartConnectionCollection.cs
- ContractMapping.cs
- ConfigurationConverterBase.cs
- UnauthorizedWebPart.cs
- DataGridCellsPresenter.cs
- MsmqIntegrationProcessProtocolHandler.cs
- ExpressionBuilder.cs
- UnsafeNativeMethods.cs
- FixedDSBuilder.cs
- ValidationEventArgs.cs
- HttpUnhandledOperationInvoker.cs
- InputScope.cs
- CroppedBitmap.cs
- SerialPinChanges.cs
- SymbolTable.cs
- Security.cs
- TextLine.cs
- SymmetricAlgorithm.cs
- GlyphingCache.cs
- DocumentGridContextMenu.cs
- RemoteWebConfigurationHostServer.cs
- ResourceExpression.cs
- DeflateStreamAsyncResult.cs
- MasterPageBuildProvider.cs
- Scripts.cs
- Hex.cs
- _ListenerRequestStream.cs
- DataGridTableStyleMappingNameEditor.cs
- EnvironmentPermission.cs
- DesignerSerializationOptionsAttribute.cs
- ProcessHostMapPath.cs
- GetRecipientListRequest.cs
- Package.cs
- InternalTransaction.cs
- XmlSerializerAssemblyAttribute.cs
- AttributeUsageAttribute.cs
- FamilyCollection.cs
- TabPageDesigner.cs
- SynchronizedInputAdaptor.cs
- RealizationContext.cs
- WebHeaderCollection.cs
- HierarchicalDataTemplate.cs
- GradientBrush.cs
- PropertySourceInfo.cs
- PropertyMap.cs