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
- VoiceObjectToken.cs
- VisualBasicExpressionConverter.cs
- QilReplaceVisitor.cs
- PrintDialog.cs
- FindProgressChangedEventArgs.cs
- CodeChecksumPragma.cs
- SqlDataSourceCustomCommandPanel.cs
- GeneralTransform3DGroup.cs
- basenumberconverter.cs
- DateTimeConverter.cs
- GlobalId.cs
- _ConnectionGroup.cs
- ConnectionManagementSection.cs
- ProfessionalColors.cs
- documentsequencetextcontainer.cs
- SignerInfo.cs
- ToolStripItemCollection.cs
- HuffmanTree.cs
- CollectionsUtil.cs
- TraceProvider.cs
- DecoderFallbackWithFailureFlag.cs
- CompilationRelaxations.cs
- PermissionSet.cs
- ping.cs
- ComplexPropertyEntry.cs
- ApplicationBuildProvider.cs
- XmlUtilWriter.cs
- String.cs
- SchemaDeclBase.cs
- DataFormats.cs
- RecommendedAsConfigurableAttribute.cs
- XmlReflectionMember.cs
- DummyDataSource.cs
- ConnectionStringSettingsCollection.cs
- HebrewNumber.cs
- SafeHandles.cs
- ControlEvent.cs
- SystemGatewayIPAddressInformation.cs
- ScopelessEnumAttribute.cs
- Misc.cs
- XamlValidatingReader.cs
- SpellerHighlightLayer.cs
- CompensationDesigner.cs
- BitmapSourceSafeMILHandle.cs
- WorkflowElementDialog.cs
- ApplicationSecurityInfo.cs
- Object.cs
- DataGridViewTextBoxColumn.cs
- ConnectionPointConverter.cs
- AlphaSortedEnumConverter.cs
- WindowsFormsSectionHandler.cs
- SqlFunctionAttribute.cs
- GridView.cs
- ValidationHelpers.cs
- Control.cs
- AttributeUsageAttribute.cs
- CacheMode.cs
- ActivityContext.cs
- ExceptionNotification.cs
- RefreshPropertiesAttribute.cs
- TCEAdapterGenerator.cs
- DoubleAnimationClockResource.cs
- FlagsAttribute.cs
- GeneratedView.cs
- selecteditemcollection.cs
- CompilerGeneratedAttribute.cs
- InvalidAsynchronousStateException.cs
- PickBranchDesigner.xaml.cs
- FormViewDeletedEventArgs.cs
- HtmlInputControl.cs
- CodeMemberMethod.cs
- Dump.cs
- ObjectPersistData.cs
- ToolStripItemClickedEventArgs.cs
- oledbmetadatacollectionnames.cs
- UnsupportedPolicyOptionsException.cs
- ZipIOBlockManager.cs
- Run.cs
- AspNetHostingPermission.cs
- ResourceIDHelper.cs
- StorageEntitySetMapping.cs
- EntityEntry.cs
- EventWaitHandleSecurity.cs
- EntityStoreSchemaFilterEntry.cs
- NativeMethods.cs
- CompareValidator.cs
- SystemWebExtensionsSectionGroup.cs
- EntityDataSourceContextDisposingEventArgs.cs
- RuleCache.cs
- GridViewDeletedEventArgs.cs
- CustomAttributeFormatException.cs
- AnnotationComponentChooser.cs
- activationcontext.cs
- HttpServerVarsCollection.cs
- ControlBuilderAttribute.cs
- HtmlTableRowCollection.cs
- SessionStateContainer.cs
- SQLBinaryStorage.cs
- SqlMultiplexer.cs
- FontDriver.cs