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
- FrameworkRichTextComposition.cs
- PropertySegmentSerializationProvider.cs
- UnknownWrapper.cs
- MetadataItemEmitter.cs
- X509AsymmetricSecurityKey.cs
- NetworkInterface.cs
- StackBuilderSink.cs
- DbDeleteCommandTree.cs
- UnionCodeGroup.cs
- DataGridViewUtilities.cs
- TraceHandler.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TextTreeTextBlock.cs
- AppLevelCompilationSectionCache.cs
- SizeFConverter.cs
- RolePrincipal.cs
- PropertyItemInternal.cs
- ConfigurationValidatorBase.cs
- SqlFlattener.cs
- XhtmlBasicListAdapter.cs
- LazyTextWriterCreator.cs
- TextElement.cs
- ServiceEndpointAssociationProvider.cs
- ToolStrip.cs
- _ShellExpression.cs
- ClientData.cs
- ParseChildrenAsPropertiesAttribute.cs
- CompoundFileDeflateTransform.cs
- PointAnimationBase.cs
- ListViewCancelEventArgs.cs
- XmlSchemaGroupRef.cs
- CfgSemanticTag.cs
- UnaryExpressionHelper.cs
- IsolatedStorageSecurityState.cs
- XPathNodeList.cs
- Regex.cs
- ItemCollection.cs
- MissingSatelliteAssemblyException.cs
- COM2Properties.cs
- CreateUserWizard.cs
- InheritanceAttribute.cs
- CheckPair.cs
- ResourceContainer.cs
- AttachedPropertyMethodSelector.cs
- NumericExpr.cs
- PasswordPropertyTextAttribute.cs
- PropertyChangeTracker.cs
- DetailsViewUpdateEventArgs.cs
- ReflectionServiceProvider.cs
- ObjectHelper.cs
- XmlToDatasetMap.cs
- StreamUpdate.cs
- CrossSiteScriptingValidation.cs
- SettingsPropertyIsReadOnlyException.cs
- _IPv4Address.cs
- ClusterRegistryConfigurationProvider.cs
- X509SecurityTokenAuthenticator.cs
- _ConnectOverlappedAsyncResult.cs
- DataGridViewLinkColumn.cs
- StringArrayConverter.cs
- MultiTargetingUtil.cs
- FixedTextSelectionProcessor.cs
- UIElementParagraph.cs
- TextParentUndoUnit.cs
- GlobalizationSection.cs
- BoundColumn.cs
- TabControlToolboxItem.cs
- Console.cs
- TypeCodeDomSerializer.cs
- TimelineClockCollection.cs
- ContextMenu.cs
- TimeSpanValidatorAttribute.cs
- ActivityPreviewDesigner.cs
- SBCSCodePageEncoding.cs
- SourceSwitch.cs
- HtmlImageAdapter.cs
- Atom10FormatterFactory.cs
- ListItemParagraph.cs
- CustomValidator.cs
- DivideByZeroException.cs
- CapabilitiesPattern.cs
- DocumentOrderComparer.cs
- ListDependantCardsRequest.cs
- SHA1Managed.cs
- TextParentUndoUnit.cs
- FontFamily.cs
- HttpsChannelFactory.cs
- MethodImplAttribute.cs
- CapabilitiesRule.cs
- ProxySimple.cs
- JobDuplex.cs
- XmlSubtreeReader.cs
- CultureTableRecord.cs
- SqlSelectStatement.cs
- FixedLineResult.cs
- FileChangesMonitor.cs
- SystemWebCachingSectionGroup.cs
- XmlSchemaSimpleContentRestriction.cs
- MarkupExtensionParser.cs
- PieceDirectory.cs