Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Compilation / ResourceProviderFactory.cs / 1 / ResourceProviderFactory.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.Security.Permissions; /* * Interface used to create app and page IResourceProvider objects */ [AspNetHostingPermission(SecurityAction.LinkDemand, Level=AspNetHostingPermissionLevel.Minimal)] [AspNetHostingPermission(SecurityAction.InheritanceDemand, Level=AspNetHostingPermissionLevel.Minimal)] public abstract class ResourceProviderFactory { public abstract IResourceProvider CreateGlobalResourceProvider(string classKey); public abstract IResourceProvider CreateLocalResourceProvider(string virtualPath); } /* * Implementation of ResourceProviderFactory for ResourceManager based resources */ internal class ResXResourceProviderFactory: ResourceProviderFactory { public override IResourceProvider CreateGlobalResourceProvider(string classKey) { return new GlobalResXResourceProvider(classKey); } public override IResourceProvider CreateLocalResourceProvider(string virtualPath) { return new LocalResXResourceProvider(VirtualPath.Create(virtualPath)); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceDescription.cs
- RegisteredExpandoAttribute.cs
- PreProcessInputEventArgs.cs
- QueryOutputWriter.cs
- XslTransform.cs
- ImplicitInputBrush.cs
- VersionValidator.cs
- MembershipSection.cs
- StopStoryboard.cs
- PathFigureCollection.cs
- _HeaderInfo.cs
- Constant.cs
- ForceCopyBuildProvider.cs
- TextParagraphView.cs
- PropVariant.cs
- XDeferredAxisSource.cs
- Timer.cs
- DrawToolTipEventArgs.cs
- SqlDataSourceCommandParser.cs
- EntityContainerAssociationSetEnd.cs
- XPathSelfQuery.cs
- FontSizeConverter.cs
- Variant.cs
- FactoryId.cs
- InvokeGenerator.cs
- GetPageNumberCompletedEventArgs.cs
- Vector3DIndependentAnimationStorage.cs
- SimpleRecyclingCache.cs
- TemplatedMailWebEventProvider.cs
- BuilderPropertyEntry.cs
- ThreadAttributes.cs
- AspProxy.cs
- SecurityManager.cs
- PropertyTab.cs
- DataTablePropertyDescriptor.cs
- DataPagerField.cs
- HtmlInputRadioButton.cs
- Int32AnimationBase.cs
- HttpListenerElement.cs
- graph.cs
- IndentedWriter.cs
- SocketElement.cs
- ParseChildrenAsPropertiesAttribute.cs
- DateTimeUtil.cs
- TextSpan.cs
- TypedRowGenerator.cs
- IgnoreSection.cs
- ClientScriptManagerWrapper.cs
- SapiInterop.cs
- Stacktrace.cs
- TitleStyle.cs
- ApplicationFileParser.cs
- CngKey.cs
- _FixedSizeReader.cs
- KeyConstraint.cs
- ChangeProcessor.cs
- CodeParameterDeclarationExpression.cs
- EntityClientCacheEntry.cs
- RepeaterItemEventArgs.cs
- FixedDocumentSequencePaginator.cs
- DetailsViewPageEventArgs.cs
- GridViewHeaderRowPresenter.cs
- ConnectionConsumerAttribute.cs
- PropertyToken.cs
- DesignerRegion.cs
- BindingExpressionUncommonField.cs
- DefaultValidator.cs
- Token.cs
- ErrorsHelper.cs
- PassportIdentity.cs
- ChtmlTextWriter.cs
- CacheDependency.cs
- RowType.cs
- TableParaClient.cs
- CustomAttributeSerializer.cs
- XPathAxisIterator.cs
- DesignerLoader.cs
- SoapWriter.cs
- AmbientProperties.cs
- StringFreezingAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- RoutingTable.cs
- DoWhileDesigner.xaml.cs
- WeakEventTable.cs
- HandledEventArgs.cs
- util.cs
- CheckBoxBaseAdapter.cs
- XmlSchemaExporter.cs
- _BasicClient.cs
- RadioButtonPopupAdapter.cs
- Ref.cs
- BindingMAnagerBase.cs
- DispatcherExceptionEventArgs.cs
- XmlEnumAttribute.cs
- FragmentNavigationEventArgs.cs
- TableRowGroup.cs
- _OverlappedAsyncResult.cs
- Native.cs
- SqlBulkCopyColumnMapping.cs
- TreeNodeStyleCollection.cs