Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Compilation / ResXBuildProvider.cs / 1305376 / ResXBuildProvider.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.Resources; using System.IO; using System.Web.Hosting; /// BuildProvider for .resx files internal sealed class ResXBuildProvider : BaseResourcesBuildProvider { protected override IResourceReader GetResourceReader(Stream inputStream) { #if !FEATURE_PAL // FEATURE_PAL ResXResourceReader reader = new ResXResourceReader(inputStream); // Give the BasePath to the reader so it can resolve relative references (VSWhidbey 208154) // NOTE: this will not work with a non-file based VirtualPathProvider string physicalPath = HostingEnvironment.MapPath(VirtualPath); reader.BasePath = Path.GetDirectoryName(physicalPath); return reader; #else // !FEATURE_PAL throw new NotImplementedException("ROTORTODO - ResXResourceReader"); #endif // !FEATURE_PAL } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Web.Compilation { using System; using System.Resources; using System.IO; using System.Web.Hosting; /// BuildProvider for .resx files internal sealed class ResXBuildProvider : BaseResourcesBuildProvider { protected override IResourceReader GetResourceReader(Stream inputStream) { #if !FEATURE_PAL // FEATURE_PAL ResXResourceReader reader = new ResXResourceReader(inputStream); // Give the BasePath to the reader so it can resolve relative references (VSWhidbey 208154) // NOTE: this will not work with a non-file based VirtualPathProvider string physicalPath = HostingEnvironment.MapPath(VirtualPath); reader.BasePath = Path.GetDirectoryName(physicalPath); return reader; #else // !FEATURE_PAL throw new NotImplementedException("ROTORTODO - ResXResourceReader"); #endif // !FEATURE_PAL } } } // 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
- IBuiltInEvidence.cs
- FormatConvertedBitmap.cs
- ColumnResizeAdorner.cs
- ObjectStateFormatter.cs
- TypeSystem.cs
- Logging.cs
- FileSystemEventArgs.cs
- MobileUserControl.cs
- LineBreak.cs
- HtmlMobileTextWriter.cs
- Subset.cs
- DataGridViewMethods.cs
- GlyphsSerializer.cs
- ViewGenResults.cs
- MaskDescriptors.cs
- dataobject.cs
- SecurityPermission.cs
- SqlDataSourceSelectingEventArgs.cs
- LogicalExpr.cs
- CustomAssemblyResolver.cs
- DispatchChannelSink.cs
- ParentQuery.cs
- WSTrust.cs
- SqlDataSourceView.cs
- BulletChrome.cs
- EDesignUtil.cs
- connectionpool.cs
- CreateCardRequest.cs
- WindowsSolidBrush.cs
- QilIterator.cs
- SoapInteropTypes.cs
- ContainerParagraph.cs
- _TransmitFileOverlappedAsyncResult.cs
- AttributeProviderAttribute.cs
- xml.cs
- ActiveXHost.cs
- LicenseManager.cs
- Cloud.cs
- UrlRoutingModule.cs
- InfoCardCryptoHelper.cs
- SqlNotificationEventArgs.cs
- JpegBitmapEncoder.cs
- SearchForVirtualItemEventArgs.cs
- SettingsPropertyValue.cs
- ProgressBarRenderer.cs
- SqlUnionizer.cs
- RemoteWebConfigurationHostStream.cs
- wgx_render.cs
- DataObject.cs
- ThumbButtonInfo.cs
- XmlSerializableReader.cs
- MD5CryptoServiceProvider.cs
- EditorAttribute.cs
- SqlServices.cs
- VirtualizedItemProviderWrapper.cs
- CodeMemberField.cs
- CellQuery.cs
- IImplicitResourceProvider.cs
- DbConnectionPoolGroupProviderInfo.cs
- ObjectSet.cs
- Message.cs
- SafeNativeMethods.cs
- ExtendedPropertyDescriptor.cs
- IsolatedStorageFileStream.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- sqlser.cs
- InfoCardMetadataExchangeClient.cs
- CookieParameter.cs
- EntityProxyTypeInfo.cs
- ValueHandle.cs
- MenuItemStyle.cs
- PersistenceException.cs
- DataGridViewBindingCompleteEventArgs.cs
- SiteMapNode.cs
- PolicyUtility.cs
- XmlObjectSerializer.cs
- _SslState.cs
- CharEntityEncoderFallback.cs
- HostingPreferredMapPath.cs
- DbSetClause.cs
- ToolStripProgressBar.cs
- XPathBinder.cs
- DaylightTime.cs
- ParallelForEach.cs
- ViewLoader.cs
- Events.cs
- EndpointDiscoveryBehavior.cs
- ScrollItemPattern.cs
- PathFigure.cs
- TemplateInstanceAttribute.cs
- HtmlTableCellCollection.cs
- GridViewDeleteEventArgs.cs
- OutputCacheSection.cs
- SiteMapNode.cs
- CompilerGlobalScopeAttribute.cs
- RtfFormatStack.cs
- FilterableAttribute.cs
- TableParaClient.cs
- InstallerTypeAttribute.cs
- Form.cs