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
- ListBoxChrome.cs
- DrawingGroup.cs
- CurrencyWrapper.cs
- GiveFeedbackEventArgs.cs
- KeyTime.cs
- MarkerProperties.cs
- Propagator.ExtentPlaceholderCreator.cs
- AnimationStorage.cs
- BamlResourceSerializer.cs
- DocumentPage.cs
- ThreadInterruptedException.cs
- AttributeSetAction.cs
- SafeLocalAllocation.cs
- ZipFileInfo.cs
- NameValueFileSectionHandler.cs
- CommandManager.cs
- TypeInitializationException.cs
- WeakReferenceList.cs
- HashCryptoHandle.cs
- Compiler.cs
- DoubleAnimationUsingKeyFrames.cs
- ImageCodecInfoPrivate.cs
- DeclarativeCatalogPart.cs
- KeyedCollection.cs
- ObjectDisposedException.cs
- Select.cs
- SimpleType.cs
- infer.cs
- compensatingcollection.cs
- ReaderWriterLock.cs
- ConditionalAttribute.cs
- LinqDataSourceContextEventArgs.cs
- SimpleType.cs
- XmlAttributeProperties.cs
- Atom10FormatterFactory.cs
- SubclassTypeValidatorAttribute.cs
- ChannelServices.cs
- InitializationEventAttribute.cs
- DescendantOverDescendantQuery.cs
- XmlIlGenerator.cs
- VoiceChangeEventArgs.cs
- DbProviderManifest.cs
- CharConverter.cs
- WebPartDeleteVerb.cs
- SvcMapFileSerializer.cs
- ClientRoleProvider.cs
- RelativeSource.cs
- BaseHashHelper.cs
- KnownIds.cs
- linebase.cs
- RotateTransform3D.cs
- IPEndPointCollection.cs
- HttpHeaderCollection.cs
- WS2007HttpBinding.cs
- CodeGenerator.cs
- XmlAttributeCollection.cs
- ContextTokenTypeConverter.cs
- ModelEditingScope.cs
- ColumnMapCopier.cs
- CodeAttributeDeclarationCollection.cs
- SimpleFieldTemplateUserControl.cs
- OracleFactory.cs
- ToolboxItemCollection.cs
- ConstructorExpr.cs
- WeakHashtable.cs
- DiscreteKeyFrames.cs
- DoubleLinkList.cs
- baseaxisquery.cs
- BaseContextMenu.cs
- OuterGlowBitmapEffect.cs
- WebPartTransformerAttribute.cs
- PhotoPrintingIntent.cs
- VersionedStreamOwner.cs
- PolicyReader.cs
- HtmlAnchor.cs
- AesCryptoServiceProvider.cs
- QuaternionRotation3D.cs
- AccessControlEntry.cs
- ProgressBarHighlightConverter.cs
- METAHEADER.cs
- X509CertificateChain.cs
- SortQuery.cs
- IdnMapping.cs
- BuilderInfo.cs
- TypeNameConverter.cs
- CatalogZoneBase.cs
- VarRefManager.cs
- StringWriter.cs
- DocumentAutomationPeer.cs
- HelpEvent.cs
- TreeNodeBindingCollection.cs
- SymDocumentType.cs
- DynamicILGenerator.cs
- GeneralTransformGroup.cs
- CurrentTimeZone.cs
- ParameterCollection.cs
- RequiredAttributeAttribute.cs
- AsyncSerializedWorker.cs
- TemplateKey.cs
- AstNode.cs