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
- MetadataResolver.cs
- CompressEmulationStream.cs
- Query.cs
- PassportPrincipal.cs
- ToolStripDropDown.cs
- GetPageCompletedEventArgs.cs
- EntityDataSourceWrapper.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- NavigatorOutput.cs
- OperationExecutionFault.cs
- Compiler.cs
- ImportRequest.cs
- MetadataPropertyvalue.cs
- PropertyChangeTracker.cs
- EmptyControlCollection.cs
- MasterPageBuildProvider.cs
- ToolStripContextMenu.cs
- Activator.cs
- Rect.cs
- WebDisplayNameAttribute.cs
- MILUtilities.cs
- SingleTagSectionHandler.cs
- GridViewUpdatedEventArgs.cs
- HttpRawResponse.cs
- CodeIdentifiers.cs
- PartitionerStatic.cs
- CheckBoxAutomationPeer.cs
- WebBrowsableAttribute.cs
- ToolStripItemClickedEventArgs.cs
- CodeMemberMethod.cs
- BufferModesCollection.cs
- SmtpReplyReaderFactory.cs
- WmlSelectionListAdapter.cs
- XamlTemplateSerializer.cs
- Pens.cs
- HitTestWithGeometryDrawingContextWalker.cs
- CodeDomConfigurationHandler.cs
- UnionCodeGroup.cs
- ProfileGroupSettings.cs
- Msmq4PoisonHandler.cs
- NamedObject.cs
- QueryAccessibilityHelpEvent.cs
- DetailsView.cs
- XmlNodeList.cs
- TableLayoutCellPaintEventArgs.cs
- DistributedTransactionPermission.cs
- SqlBuilder.cs
- FuncTypeConverter.cs
- Screen.cs
- WsatAdminException.cs
- TreeViewEvent.cs
- CssTextWriter.cs
- DependencyPropertyAttribute.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- CapiHashAlgorithm.cs
- ConfigXmlAttribute.cs
- TimeSpanStorage.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XsdDuration.cs
- TypeDescriptor.cs
- Util.cs
- DataTemplateKey.cs
- TaskCanceledException.cs
- TextContainer.cs
- RequestResizeEvent.cs
- TokenBasedSet.cs
- RegexGroup.cs
- TraceSection.cs
- CodeFieldReferenceExpression.cs
- DataControlFieldCollection.cs
- SessionPageStateSection.cs
- BitmapCodecInfoInternal.cs
- RowToFieldTransformer.cs
- Pair.cs
- StylusButtonCollection.cs
- StateDesignerConnector.cs
- SynchronizingStream.cs
- SecurityCapabilities.cs
- Size3D.cs
- HttpProfileGroupBase.cs
- Span.cs
- WinFormsUtils.cs
- ListSourceHelper.cs
- hwndwrapper.cs
- DataFormat.cs
- KeyPullup.cs
- ToolStripSplitStackLayout.cs
- EventKeyword.cs
- _StreamFramer.cs
- FillBehavior.cs
- ManagedWndProcTracker.cs
- ExpressionBuilder.cs
- Control.cs
- XmlSerializationGeneratedCode.cs
- Compilation.cs
- CorePropertiesFilter.cs
- ContentPresenter.cs
- ElementMarkupObject.cs
- SqlDataSourceSelectingEventArgs.cs
- UnsafeNativeMethods.cs