Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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 (
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.
//------------------------------------------------------------------------------
//
// 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 (
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DbParameterCollection.cs
- GrammarBuilderBase.cs
- EtwProvider.cs
- NamespaceEmitter.cs
- FunctionOverloadResolver.cs
- ToolboxItemWrapper.cs
- ThaiBuddhistCalendar.cs
- StatusBarItemAutomationPeer.cs
- TaiwanCalendar.cs
- RequestQueue.cs
- ProjectionCamera.cs
- PointCollectionConverter.cs
- SchemaImporterExtensionsSection.cs
- BitStream.cs
- AdRotator.cs
- MultipartContentParser.cs
- AuthorizationRule.cs
- ChildDocumentBlock.cs
- sitestring.cs
- handlecollector.cs
- TreeViewImageKeyConverter.cs
- DeploymentSection.cs
- Section.cs
- FormatConvertedBitmap.cs
- ExtensionFile.cs
- InputMethodStateChangeEventArgs.cs
- BinaryWriter.cs
- IndexerNameAttribute.cs
- AdornerDecorator.cs
- SqlProfileProvider.cs
- NotImplementedException.cs
- ComponentDispatcher.cs
- TraceData.cs
- CacheHelper.cs
- CompareInfo.cs
- PeerNearMe.cs
- PnrpPermission.cs
- CellTreeNode.cs
- BinaryFormatter.cs
- UserPersonalizationStateInfo.cs
- GatewayDefinition.cs
- COM2EnumConverter.cs
- TransportManager.cs
- ComponentResourceKeyConverter.cs
- StorageAssociationTypeMapping.cs
- DataStreamFromComStream.cs
- Polygon.cs
- RectAnimationUsingKeyFrames.cs
- DocumentApplicationDocumentViewer.cs
- _NestedMultipleAsyncResult.cs
- PreviousTrackingServiceAttribute.cs
- TCPListener.cs
- InteropAutomationProvider.cs
- EntityModelBuildProvider.cs
- HttpListenerContext.cs
- SourceFilter.cs
- LogExtentCollection.cs
- AutomationIdentifier.cs
- SqlReferenceCollection.cs
- NativeMethods.cs
- WindowsScroll.cs
- ItemsPresenter.cs
- AmbientProperties.cs
- StringFormat.cs
- Query.cs
- RegisteredExpandoAttribute.cs
- TimeSpanValidatorAttribute.cs
- SafeLibraryHandle.cs
- RemotingException.cs
- Single.cs
- XsdDataContractImporter.cs
- SoapSchemaExporter.cs
- XslException.cs
- XmlComment.cs
- HyperLinkField.cs
- ObjectTypeMapping.cs
- DirectoryInfo.cs
- PolicyChain.cs
- VariableQuery.cs
- ServicesUtilities.cs
- BamlResourceContent.cs
- HostingEnvironmentWrapper.cs
- DataGridCellEditEndingEventArgs.cs
- GlyphInfoList.cs
- ResourceManager.cs
- DataGridViewRowEventArgs.cs
- TraceXPathNavigator.cs
- DbProviderConfigurationHandler.cs
- ButtonRenderer.cs
- SessionStateContainer.cs
- IPGlobalProperties.cs
- DesignTimeTemplateParser.cs
- UniformGrid.cs
- SecurityDocument.cs
- GradientSpreadMethodValidation.cs
- XmlSchemaException.cs
- SizeChangedInfo.cs
- QilValidationVisitor.cs
- ComplusEndpointConfigContainer.cs
- HttpDateParse.cs