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
- Byte.cs
- TextTreeText.cs
- RegexWorker.cs
- UrlAuthorizationModule.cs
- IPEndPointCollection.cs
- WebExceptionStatus.cs
- DataGridViewRowPostPaintEventArgs.cs
- UnaryExpression.cs
- TextServicesHost.cs
- Columns.cs
- Decoder.cs
- DefaultAutoFieldGenerator.cs
- RightsManagementInformation.cs
- XAMLParseException.cs
- ping.cs
- WrapperSecurityCommunicationObject.cs
- PointAnimationUsingKeyFrames.cs
- Decoder.cs
- WsatServiceCertificate.cs
- Privilege.cs
- DetailsViewPageEventArgs.cs
- DataRecord.cs
- Input.cs
- AuthorizationSection.cs
- EntityChangedParams.cs
- TemplateControlParser.cs
- EngineSite.cs
- PrintPreviewControl.cs
- SerializationAttributes.cs
- CapabilitiesUse.cs
- TimerEventSubscription.cs
- HtmlEmptyTagControlBuilder.cs
- TableItemStyle.cs
- TrackBar.cs
- XmlnsDefinitionAttribute.cs
- BindingExpressionBase.cs
- BufferedGraphics.cs
- SoapEnumAttribute.cs
- SqlDataSourceSelectingEventArgs.cs
- OleDbMetaDataFactory.cs
- AssociatedControlConverter.cs
- TypeHelper.cs
- SystemWebSectionGroup.cs
- QueryStatement.cs
- WindowsIdentity.cs
- ImageAttributes.cs
- XPathNavigator.cs
- FullTextLine.cs
- RectangleConverter.cs
- MimeTypeAttribute.cs
- SchemaTypeEmitter.cs
- StyleCollectionEditor.cs
- InternalDuplexChannelListener.cs
- FilterQuery.cs
- ReadWriteSpinLock.cs
- ProcessModule.cs
- DllNotFoundException.cs
- ZipArchive.cs
- PropertyDescriptors.cs
- unsafenativemethodsother.cs
- ParenExpr.cs
- BaseResourcesBuildProvider.cs
- XPathArrayIterator.cs
- CompensationDesigner.cs
- ObjectResult.cs
- CodeNamespace.cs
- PrimaryKeyTypeConverter.cs
- BaseParser.cs
- ProgressPage.cs
- WasAdminWrapper.cs
- DataPointer.cs
- ServiceDescriptions.cs
- DocumentNUp.cs
- WebServiceErrorEvent.cs
- CodeMethodInvokeExpression.cs
- ConfigUtil.cs
- IdentityReference.cs
- ChtmlSelectionListAdapter.cs
- ObjectListItem.cs
- PageAsyncTask.cs
- IdnMapping.cs
- WebBrowserNavigatedEventHandler.cs
- IssuedTokensHeader.cs
- Drawing.cs
- HttpInputStream.cs
- sqlstateclientmanager.cs
- WithParamAction.cs
- NameSpaceEvent.cs
- FilterException.cs
- TextOptionsInternal.cs
- CharacterBuffer.cs
- Transform.cs
- FixedSOMTable.cs
- FlowDocument.cs
- SqlDataSourceStatusEventArgs.cs
- TypefaceMap.cs
- EventWaitHandle.cs
- PluralizationService.cs
- File.cs
- FormViewCommandEventArgs.cs