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
- ActivitySurrogateSelector.cs
- ViewSimplifier.cs
- DataGridCellsPresenter.cs
- EventKeyword.cs
- CryptoProvider.cs
- OrCondition.cs
- SchemaTableOptionalColumn.cs
- ToolStripItemTextRenderEventArgs.cs
- StrokeCollection.cs
- DataGridAddNewRow.cs
- RotateTransform3D.cs
- DecimalKeyFrameCollection.cs
- QueryOperatorEnumerator.cs
- DataTableReaderListener.cs
- CurrentTimeZone.cs
- ConnectivityStatus.cs
- RenderData.cs
- Win32KeyboardDevice.cs
- EntityDataSourceContextCreatedEventArgs.cs
- OleDbRowUpdatedEvent.cs
- StdRegProviderWrapper.cs
- RequestTimeoutManager.cs
- XmlAttributeCollection.cs
- StoragePropertyMapping.cs
- SecurityHelper.cs
- OutputCacheSettingsSection.cs
- RangeValueProviderWrapper.cs
- VoiceObjectToken.cs
- SqlNamer.cs
- PostBackOptions.cs
- OperationCanceledException.cs
- HuffmanTree.cs
- Array.cs
- CodeMethodInvokeExpression.cs
- ProcessModelInfo.cs
- DataGridViewCellCollection.cs
- RemoteAsymmetricSignatureFormatter.cs
- FontFamilyConverter.cs
- CompressionTracing.cs
- Win32.cs
- SQLDouble.cs
- SiteMapProvider.cs
- WindowsBrush.cs
- BitStream.cs
- NativeBuffer.cs
- BulletedList.cs
- UnsafeNativeMethods.cs
- FixedSOMLineCollection.cs
- UnicastIPAddressInformationCollection.cs
- SignedInfo.cs
- OverrideMode.cs
- LinearGradientBrush.cs
- MembershipSection.cs
- DeferredRunTextReference.cs
- XmlDeclaration.cs
- EmptyEnumerator.cs
- XmlnsCompatibleWithAttribute.cs
- SelectionHighlightInfo.cs
- TypeUtil.cs
- UrlPropertyAttribute.cs
- ControlOperationInvoker.cs
- DashStyle.cs
- SqlDataSourceSelectingEventArgs.cs
- SortAction.cs
- HttpCacheVaryByContentEncodings.cs
- SQLBytes.cs
- DateBoldEvent.cs
- ReaderContextStackData.cs
- Rotation3D.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- FilteredXmlReader.cs
- Font.cs
- TreeViewImageKeyConverter.cs
- DeferrableContentConverter.cs
- nulltextnavigator.cs
- MobileUserControlDesigner.cs
- NativeStructs.cs
- StylusPointProperties.cs
- Message.cs
- RuleRef.cs
- Lazy.cs
- SemaphoreSecurity.cs
- ButtonDesigner.cs
- AssertHelper.cs
- Debug.cs
- PreloadHost.cs
- DataSourceXmlAttributeAttribute.cs
- Crc32.cs
- DataRowComparer.cs
- HashSetEqualityComparer.cs
- DesignerLoader.cs
- SimpleExpression.cs
- StackSpiller.Temps.cs
- InkCanvasSelectionAdorner.cs
- unsafeIndexingFilterStream.cs
- coordinatorfactory.cs
- PeerApplication.cs
- WindowsFormsEditorServiceHelper.cs
- ManagedCodeMarkers.cs
- WebHttpBindingCollectionElement.cs