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
- IntSumAggregationOperator.cs
- StorageAssociationSetMapping.cs
- EntityConnectionStringBuilder.cs
- RowUpdatingEventArgs.cs
- NativeWindow.cs
- DataGridViewComboBoxColumnDesigner.cs
- FormViewUpdatedEventArgs.cs
- WebServiceHost.cs
- BitmapEffectInput.cs
- DataGridViewSelectedRowCollection.cs
- CustomValidator.cs
- BitmapEffectOutputConnector.cs
- StylusPointProperties.cs
- OdbcUtils.cs
- DefaultValueConverter.cs
- WindowsTreeView.cs
- FontCollection.cs
- KeyboardEventArgs.cs
- SqlError.cs
- ScrollChrome.cs
- EntitySetRetriever.cs
- MetaDataInfo.cs
- AppDomainProtocolHandler.cs
- CacheSection.cs
- METAHEADER.cs
- PriorityBindingExpression.cs
- ItemsControlAutomationPeer.cs
- EmptyControlCollection.cs
- HandleCollector.cs
- Stroke.cs
- Avt.cs
- ListBoxItemWrapperAutomationPeer.cs
- WindowsListView.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- SafeSecurityHelper.cs
- ListChunk.cs
- cookie.cs
- InstanceNormalEvent.cs
- MetadataConversionError.cs
- _Win32.cs
- TreeViewAutomationPeer.cs
- MetadataUtil.cs
- HtmlElementEventArgs.cs
- ADRole.cs
- VisualCollection.cs
- TimelineGroup.cs
- DirectoryObjectSecurity.cs
- DataObjectCopyingEventArgs.cs
- ContractTypeNameCollection.cs
- HttpHandlerActionCollection.cs
- SecurityTokenProvider.cs
- DataRowCollection.cs
- EntityCommand.cs
- SQLConvert.cs
- IndexOutOfRangeException.cs
- CorrelationManager.cs
- ComponentConverter.cs
- MeasurementDCInfo.cs
- SupportedAddressingMode.cs
- ToolStripDropDownItem.cs
- processwaithandle.cs
- QueryRewriter.cs
- AssertFilter.cs
- ComponentResourceManager.cs
- ByteRangeDownloader.cs
- TextShapeableCharacters.cs
- StatusStrip.cs
- Material.cs
- EntityDataSourceDataSelection.cs
- SettingsBindableAttribute.cs
- DesignerActionMethodItem.cs
- TcpClientCredentialType.cs
- BuilderPropertyEntry.cs
- TextTreeTextBlock.cs
- BindingObserver.cs
- DetailsViewInsertedEventArgs.cs
- OraclePermissionAttribute.cs
- wmiprovider.cs
- WindowsAuthenticationModule.cs
- DispatcherExceptionEventArgs.cs
- XhtmlTextWriter.cs
- CqlErrorHelper.cs
- SqlUdtInfo.cs
- DetailsViewRow.cs
- Bezier.cs
- CommandHelpers.cs
- Perspective.cs
- MetricEntry.cs
- ContextDataSourceContextData.cs
- Pkcs7Signer.cs
- FrameworkElement.cs
- Vertex.cs
- PersistenceProvider.cs
- ToolboxItemImageConverter.cs
- PathFigure.cs
- SamlEvidence.cs
- StorageAssociationSetMapping.cs
- MessageTransmitTraceRecord.cs
- Zone.cs
- SessionEndingEventArgs.cs