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
- XmlSchemaGroupRef.cs
- ObjectConverter.cs
- _SecureChannel.cs
- BamlRecords.cs
- CalendarDay.cs
- CallbackHandler.cs
- ContentValidator.cs
- XamlStackWriter.cs
- TextEditorLists.cs
- FileRecordSequenceCompletedAsyncResult.cs
- backend.cs
- FileNotFoundException.cs
- EdmType.cs
- Margins.cs
- Timer.cs
- WebPartMinimizeVerb.cs
- SelectionService.cs
- CalendarSelectionChangedEventArgs.cs
- ObjectViewFactory.cs
- WebHostUnsafeNativeMethods.cs
- CollectionView.cs
- HttpCacheVaryByContentEncodings.cs
- propertytag.cs
- ExtensionFile.cs
- HtmlTable.cs
- DesigntimeLicenseContextSerializer.cs
- HandledMouseEvent.cs
- DataConnectionHelper.cs
- TypeValidationEventArgs.cs
- IncrementalCompileAnalyzer.cs
- WeakReferenceEnumerator.cs
- Control.cs
- LogStream.cs
- IsolatedStorageFile.cs
- QilPatternVisitor.cs
- RootAction.cs
- AccessibilityHelperForXpWin2k3.cs
- ConnectionsZoneAutoFormat.cs
- StylusButtonCollection.cs
- DBAsyncResult.cs
- TdsParser.cs
- UrlEncodedParameterWriter.cs
- ToolStripContainer.cs
- AssemblyNameProxy.cs
- SQLDouble.cs
- ObjectQueryProvider.cs
- ControlValuePropertyAttribute.cs
- ImageIndexConverter.cs
- StringPropertyBuilder.cs
- Transform.cs
- FilteredAttributeCollection.cs
- TemplateBamlRecordReader.cs
- SQLBytes.cs
- SecondaryIndexList.cs
- CacheMemory.cs
- CodePropertyReferenceExpression.cs
- ValueTypeIndexerReference.cs
- TextMarkerSource.cs
- XmlObjectSerializer.cs
- ReflectionTypeLoadException.cs
- XamlHostingSectionGroup.cs
- Deserializer.cs
- ParenExpr.cs
- InputMethod.cs
- TextTrailingWordEllipsis.cs
- CharacterMetrics.cs
- CornerRadiusConverter.cs
- CoreSwitches.cs
- PeerInvitationResponse.cs
- LoginCancelEventArgs.cs
- DataGridPagerStyle.cs
- RedBlackList.cs
- SqlExpressionNullability.cs
- SystemResources.cs
- TrustSection.cs
- Control.cs
- XmlDocumentType.cs
- Win32.cs
- AutomationEvent.cs
- EncodingTable.cs
- DataControlFieldCollection.cs
- DataTableCollection.cs
- TextWriterEngine.cs
- CodeTypeReference.cs
- XPathException.cs
- DataGridCell.cs
- KeyConstraint.cs
- DefaultValueAttribute.cs
- InsufficientMemoryException.cs
- ListSourceHelper.cs
- DesignerSerializerAttribute.cs
- BounceEase.cs
- Assert.cs
- RegularExpressionValidator.cs
- RoleManagerSection.cs
- UnsafeMethods.cs
- WindowsSspiNegotiation.cs
- SafeThreadHandle.cs
- WebChannelFactory.cs
- Stack.cs