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
- ObjectFactoryCodeDomTreeGenerator.cs
- PrintEvent.cs
- CollectionViewGroup.cs
- SubclassTypeValidator.cs
- GlyphRun.cs
- DynamicQueryableWrapper.cs
- DataGridViewComboBoxColumn.cs
- XmlAttributeAttribute.cs
- TemplatePartAttribute.cs
- InfoCardHelper.cs
- ObjectIDGenerator.cs
- ChtmlCalendarAdapter.cs
- PageSetupDialog.cs
- XmlHelper.cs
- IResourceProvider.cs
- TextTreeText.cs
- Utilities.cs
- CompressionTransform.cs
- XmlSequenceWriter.cs
- PropertySegmentSerializer.cs
- XmlSerializerAssemblyAttribute.cs
- GetPageCompletedEventArgs.cs
- ToolZone.cs
- XhtmlBasicTextViewAdapter.cs
- ParseChildrenAsPropertiesAttribute.cs
- CurrentTimeZone.cs
- NullableDecimalSumAggregationOperator.cs
- RelationalExpressions.cs
- DataGridViewSelectedColumnCollection.cs
- ColumnCollection.cs
- safelinkcollection.cs
- SqlWebEventProvider.cs
- StylusPointPropertyUnit.cs
- GridViewRow.cs
- DataGridViewRowCancelEventArgs.cs
- PrimitiveDataContract.cs
- SHA256Managed.cs
- TypeDelegator.cs
- BatchStream.cs
- DictionaryBase.cs
- CreateParams.cs
- SemanticResultValue.cs
- MbpInfo.cs
- XmlSchemaDocumentation.cs
- Matrix3D.cs
- HatchBrush.cs
- XPathBuilder.cs
- ExitEventArgs.cs
- InputLanguageEventArgs.cs
- TimerEventSubscription.cs
- IdentityValidationException.cs
- XPathCompileException.cs
- TypeGeneratedEventArgs.cs
- RedirectionProxy.cs
- AsymmetricAlgorithm.cs
- ColumnMapProcessor.cs
- CodeValidator.cs
- TraceHandler.cs
- ThreadPoolTaskScheduler.cs
- ICspAsymmetricAlgorithm.cs
- AsymmetricSignatureDeformatter.cs
- ContentFileHelper.cs
- _NtlmClient.cs
- ListItemDetailViewAttribute.cs
- HttpConfigurationContext.cs
- RotateTransform3D.cs
- DelegatingTypeDescriptionProvider.cs
- XmlPreloadedResolver.cs
- WebBrowserHelper.cs
- NotifyIcon.cs
- OwnerDrawPropertyBag.cs
- DataGridPageChangedEventArgs.cs
- TreeNode.cs
- ExpandableObjectConverter.cs
- SortedSetDebugView.cs
- XmlSchemaDocumentation.cs
- Rect.cs
- SynchronousReceiveElement.cs
- SystemParameters.cs
- TextReader.cs
- MappingModelBuildProvider.cs
- ConfigXmlText.cs
- ToolStripControlHost.cs
- ThumbButtonInfo.cs
- elementinformation.cs
- QueryCacheManager.cs
- RuleSettings.cs
- XmlILStorageConverter.cs
- Stack.cs
- BaseValidatorDesigner.cs
- FlagsAttribute.cs
- ColumnHeaderConverter.cs
- IResourceProvider.cs
- GraphicsPathIterator.cs
- QilList.cs
- FormsAuthenticationEventArgs.cs
- RuleSettingsCollection.cs
- EmptyQuery.cs
- SQLMembershipProvider.cs
- HtmlInputControl.cs