Code:
/ DotNET / DotNET / 8.0 / untmp / Orcas / RTM / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- HttpContextWrapper.cs
- WebPartHeaderCloseVerb.cs
- GlobalProxySelection.cs
- XmlSchemaImporter.cs
- MdiWindowListStrip.cs
- UserPersonalizationStateInfo.cs
- ObjectViewListener.cs
- TransformCollection.cs
- MemberHolder.cs
- ListenerElementsCollection.cs
- GlyphTypeface.cs
- EventLogRecord.cs
- RoutingUtilities.cs
- SymbolMethod.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- WebPartCollection.cs
- XmlReaderSettings.cs
- SamlSecurityTokenAuthenticator.cs
- PropertyPushdownHelper.cs
- AppSettingsReader.cs
- SqlRowUpdatingEvent.cs
- MetadataCollection.cs
- TextEditorParagraphs.cs
- AppDomainShutdownMonitor.cs
- DataControlReference.cs
- Helpers.cs
- FormsAuthenticationUser.cs
- ImageBrush.cs
- ImageSource.cs
- SparseMemoryStream.cs
- HtmlInputButton.cs
- CardSpaceShim.cs
- SecurityDocument.cs
- QueryOpeningEnumerator.cs
- CalendarButton.cs
- TemplateBuilder.cs
- DrawingBrush.cs
- BitmapEffectInput.cs
- XmlSchemaSet.cs
- StrongNameMembershipCondition.cs
- Int64AnimationBase.cs
- NTAccount.cs
- FixedPage.cs
- ContextMenuStrip.cs
- Timer.cs
- TextPattern.cs
- TimelineClockCollection.cs
- ZipIOExtraFieldPaddingElement.cs
- Panel.cs
- ResumeStoryboard.cs
- ActivityValidator.cs
- UnsafeNativeMethodsMilCoreApi.cs
- RegisteredExpandoAttribute.cs
- ParallelEnumerableWrapper.cs
- ACE.cs
- TypeSystem.cs
- CalloutQueueItem.cs
- AssertFilter.cs
- PeerName.cs
- PieceNameHelper.cs
- InvokeGenerator.cs
- EntityDescriptor.cs
- Figure.cs
- FormViewPagerRow.cs
- OrderByQueryOptionExpression.cs
- XmlDocument.cs
- ScriptHandlerFactory.cs
- ConfigurationValue.cs
- XslVisitor.cs
- ColumnResizeUndoUnit.cs
- FontDriver.cs
- QueryStringHandler.cs
- StrokeCollectionDefaultValueFactory.cs
- CommentEmitter.cs
- RepeatBehavior.cs
- CredentialCache.cs
- XPathAncestorQuery.cs
- ContentWrapperAttribute.cs
- ContextInformation.cs
- COMException.cs
- HtmlTitle.cs
- ResXResourceSet.cs
- ResetableIterator.cs
- Panel.cs
- FlatButtonAppearance.cs
- LoadWorkflowCommand.cs
- LinkButton.cs
- HttpRuntime.cs
- WSDualHttpBindingCollectionElement.cs
- IdentitySection.cs
- ContentTextAutomationPeer.cs
- Attributes.cs
- IdentifierCreationService.cs
- EntityClassGenerator.cs
- StreamUpdate.cs
- CodeVariableReferenceExpression.cs
- CompilerGeneratedAttribute.cs
- ProfileSection.cs
- WebPartEventArgs.cs
- ResourceProviderFactory.cs