Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- VerifyHashRequest.cs
- ClaimSet.cs
- XmlSchemaAttributeGroup.cs
- DeflateStream.cs
- IgnoreFileBuildProvider.cs
- SqlException.cs
- RectAnimationBase.cs
- DataBoundControlAdapter.cs
- EditorPartDesigner.cs
- TextTreeNode.cs
- HttpEncoder.cs
- PermissionToken.cs
- XmlHelper.cs
- ContextMarshalException.cs
- UITypeEditor.cs
- DataGridViewTopRowAccessibleObject.cs
- ADMembershipUser.cs
- LicenseProviderAttribute.cs
- SearchExpression.cs
- PageStatePersister.cs
- SqlConnectionManager.cs
- ValidatorCompatibilityHelper.cs
- Exceptions.cs
- DateTime.cs
- Span.cs
- WebPartEditorApplyVerb.cs
- SqlTriggerAttribute.cs
- XmlNavigatorStack.cs
- WindowsIPAddress.cs
- CellTreeSimplifier.cs
- SamlSubjectStatement.cs
- PassportAuthenticationEventArgs.cs
- Utils.cs
- ButtonBase.cs
- GeometryValueSerializer.cs
- TabControlCancelEvent.cs
- SqlDependencyListener.cs
- CollectionViewProxy.cs
- Logging.cs
- Thickness.cs
- FormsAuthenticationUser.cs
- ConfigXmlComment.cs
- PasswordRecoveryDesigner.cs
- COM2TypeInfoProcessor.cs
- DbExpressionRules.cs
- ItemTypeToolStripMenuItem.cs
- EntityDataReader.cs
- AssertFilter.cs
- AvTraceDetails.cs
- SettingsContext.cs
- FixedTextView.cs
- LabelEditEvent.cs
- MetadataArtifactLoaderComposite.cs
- DynamicPropertyHolder.cs
- ProgressBarHighlightConverter.cs
- TemplateBamlRecordReader.cs
- DynamicMethod.cs
- ParallelRangeManager.cs
- TdsParameterSetter.cs
- GenericAuthenticationEventArgs.cs
- ExtensibleClassFactory.cs
- _TimerThread.cs
- ListBoxItemWrapperAutomationPeer.cs
- CacheDependency.cs
- ArgumentValidation.cs
- OpenFileDialog.cs
- WmlPhoneCallAdapter.cs
- ToolStripDropDownMenu.cs
- ListItemParagraph.cs
- MarkupCompilePass2.cs
- Inline.cs
- mansign.cs
- QEncodedStream.cs
- SystemWebExtensionsSectionGroup.cs
- ReadOnlyDataSource.cs
- SequentialOutput.cs
- InstanceKeyView.cs
- SHA512Managed.cs
- Int16KeyFrameCollection.cs
- EntityViewGenerationAttribute.cs
- Crypto.cs
- mongolianshape.cs
- IPGlobalProperties.cs
- _DomainName.cs
- InputLangChangeEvent.cs
- ToolStripActionList.cs
- XmlILModule.cs
- ExclusiveCanonicalizationTransform.cs
- Symbol.cs
- GridViewCancelEditEventArgs.cs
- CellParagraph.cs
- SingleAnimationUsingKeyFrames.cs
- ShaperBuffers.cs
- Normalizer.cs
- GenericAuthenticationEventArgs.cs
- XPathChildIterator.cs
- PrimitiveCodeDomSerializer.cs
- Property.cs
- HttpCachePolicyBase.cs
- DisplayMemberTemplateSelector.cs