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
- PersonalizationStateInfoCollection.cs
- ReadOnlyDictionary.cs
- HttpContext.cs
- IsolatedStorageFileStream.cs
- IdentityHolder.cs
- XhtmlBasicLabelAdapter.cs
- SecurityDescriptor.cs
- PackUriHelper.cs
- TableLayoutStyleCollection.cs
- WebPartUtil.cs
- DesignUtil.cs
- DependencyPropertyValueSerializer.cs
- BamlLocalizableResource.cs
- HandleCollector.cs
- ValidationErrorCollection.cs
- RowVisual.cs
- EventMetadata.cs
- DNS.cs
- XmlAttributeCache.cs
- AppDomain.cs
- CacheDict.cs
- HierarchicalDataSourceIDConverter.cs
- WebHeaderCollection.cs
- PropertyChangeTracker.cs
- TextMarkerSource.cs
- ObjectViewListener.cs
- DeviceContext.cs
- DiffuseMaterial.cs
- XmlSchemaSimpleType.cs
- ManipulationStartingEventArgs.cs
- WindowsIdentity.cs
- ToolStripPanelRow.cs
- SmtpLoginAuthenticationModule.cs
- ResourceCategoryAttribute.cs
- DriveInfo.cs
- UnmanagedMemoryAccessor.cs
- BindingExpressionBase.cs
- HybridWebProxyFinder.cs
- OletxResourceManager.cs
- UnsafeNativeMethods.cs
- ResourceManager.cs
- State.cs
- SerializationSectionGroup.cs
- BasicCommandTreeVisitor.cs
- SqlRowUpdatingEvent.cs
- SqlDataSourceQueryConverter.cs
- StorageScalarPropertyMapping.cs
- SerialReceived.cs
- BasePropertyDescriptor.cs
- HandleCollector.cs
- CollaborationHelperFunctions.cs
- SequenceDesigner.xaml.cs
- CorrelationManager.cs
- CatalogZoneBase.cs
- DbDeleteCommandTree.cs
- SecurityTokenSerializer.cs
- ConditionCollection.cs
- dtdvalidator.cs
- InfoCardRSACryptoProvider.cs
- AnnotationResourceCollection.cs
- SoapFault.cs
- DataContractAttribute.cs
- OutputChannelBinder.cs
- LightweightCodeGenerator.cs
- sqlpipe.cs
- SyndicationDeserializer.cs
- ValidationError.cs
- DictionaryEntry.cs
- ImageCreator.cs
- InputScopeAttribute.cs
- DiscreteKeyFrames.cs
- DataGridViewCellStyleBuilderDialog.cs
- FormsAuthenticationModule.cs
- BoolLiteral.cs
- dsa.cs
- MethodImplAttribute.cs
- ExtendedProperty.cs
- FontInfo.cs
- Stacktrace.cs
- OverflowException.cs
- DictionaryManager.cs
- SettingsPropertyValue.cs
- TextServicesDisplayAttributePropertyRanges.cs
- PerformanceCounterPermission.cs
- ParameterReplacerVisitor.cs
- Command.cs
- List.cs
- BigInt.cs
- WorkflowOwnershipException.cs
- SizeConverter.cs
- DocumentScope.cs
- Header.cs
- ToolboxBitmapAttribute.cs
- DistributedTransactionPermission.cs
- SecurityResources.cs
- TransactionChannel.cs
- MatrixStack.cs
- itemelement.cs
- XmlMembersMapping.cs
- FixedDocumentSequencePaginator.cs