Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / xsp / System / Web / Compilation / ResXBuildProvider.cs / 1 / 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
- TimeZone.cs
- PrinterUnitConvert.cs
- ListChangedEventArgs.cs
- DurableInstancingOptions.cs
- NullExtension.cs
- DataRowCollection.cs
- IInstanceTable.cs
- SpecialNameAttribute.cs
- DataGridCaption.cs
- DataGridColumn.cs
- FtpCachePolicyElement.cs
- SkinBuilder.cs
- SingleConverter.cs
- OptimalBreakSession.cs
- PersonalizablePropertyEntry.cs
- glyphs.cs
- HandlerFactoryWrapper.cs
- KeyGesture.cs
- WorkflowHostingEndpoint.cs
- SystemPens.cs
- EdmConstants.cs
- EntityDataSourceStatementEditor.cs
- GPRECTF.cs
- PropertyIDSet.cs
- TypeElementCollection.cs
- handlecollector.cs
- grammarelement.cs
- WebServiceClientProxyGenerator.cs
- XmlSignificantWhitespace.cs
- FileDialog.cs
- FieldToken.cs
- UnmanagedBitmapWrapper.cs
- PrivateFontCollection.cs
- TimeSpanMinutesConverter.cs
- DynamicQueryableWrapper.cs
- MaskDescriptor.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TextBounds.cs
- Graph.cs
- RectIndependentAnimationStorage.cs
- MediaContext.cs
- ViewBox.cs
- HttpServerProtocol.cs
- WindowsTitleBar.cs
- Signature.cs
- OutputCacheProfileCollection.cs
- AnchoredBlock.cs
- GcSettings.cs
- ArraySegment.cs
- MILUtilities.cs
- SamlSecurityTokenAuthenticator.cs
- StylusPlugInCollection.cs
- PnrpPermission.cs
- Point4D.cs
- HttpCapabilitiesEvaluator.cs
- UIPropertyMetadata.cs
- MergePropertyDescriptor.cs
- ActiveXHelper.cs
- SecureUICommand.cs
- RequestResizeEvent.cs
- DataTableReaderListener.cs
- SmtpAuthenticationManager.cs
- ConfigPathUtility.cs
- StructuralCache.cs
- COM2ColorConverter.cs
- PreviousTrackingServiceAttribute.cs
- PrintDialogException.cs
- TextModifier.cs
- DescendantQuery.cs
- DesignBindingValueUIHandler.cs
- ObjectListComponentEditor.cs
- EventLogHandle.cs
- RequestCacheEntry.cs
- PrintDialog.cs
- AttributeParameterInfo.cs
- ScrollableControlDesigner.cs
- AssemblyCollection.cs
- InputChannelAcceptor.cs
- SafeBitVector32.cs
- JulianCalendar.cs
- EntityEntry.cs
- BitConverter.cs
- WrappedIUnknown.cs
- arc.cs
- ChannelCacheSettings.cs
- XslException.cs
- ServiceModelSectionGroup.cs
- GridViewEditEventArgs.cs
- PartialToken.cs
- ColorContext.cs
- smtpconnection.cs
- SqlPersistenceProviderFactory.cs
- TabControl.cs
- FileDataSourceCache.cs
- CodeCompiler.cs
- Event.cs
- CoreSwitches.cs
- CfgParser.cs
- BinaryCommonClasses.cs
- StyleModeStack.cs