Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AtomContentProperty.cs
- ActivationArguments.cs
- ThicknessAnimationBase.cs
- CatalogPartCollection.cs
- SymmetricKeyWrap.cs
- MetabaseSettings.cs
- FunctionImportElement.cs
- Int32CollectionValueSerializer.cs
- Authorization.cs
- ValidatedControlConverter.cs
- ProviderException.cs
- ConfigXmlWhitespace.cs
- FormsAuthenticationModule.cs
- MessagingActivityHelper.cs
- QueryAsyncResult.cs
- IntSecurity.cs
- BuildResult.cs
- XmlWrappingReader.cs
- WindowsGraphicsCacheManager.cs
- TableLayoutCellPaintEventArgs.cs
- UrlRoutingHandler.cs
- CopyAttributesAction.cs
- Parameter.cs
- IOException.cs
- ToolboxItemFilterAttribute.cs
- Timer.cs
- InvalidAsynchronousStateException.cs
- QuaternionIndependentAnimationStorage.cs
- RequestNavigateEventArgs.cs
- ResourceWriter.cs
- InitializationEventAttribute.cs
- SmiTypedGetterSetter.cs
- ToolStripDropDownClosingEventArgs.cs
- LookupBindingPropertiesAttribute.cs
- ResizeGrip.cs
- GZipDecoder.cs
- Slider.cs
- XamlReaderHelper.cs
- SystemFonts.cs
- SystemWebCachingSectionGroup.cs
- HashAlgorithm.cs
- Stack.cs
- OpCopier.cs
- DBConcurrencyException.cs
- DesignerAutoFormatStyle.cs
- StorageComplexTypeMapping.cs
- UnsafeNativeMethods.cs
- Interop.cs
- PresentationSource.cs
- ComboBoxAutomationPeer.cs
- Border.cs
- ItemContainerGenerator.cs
- Stack.cs
- autovalidator.cs
- HtmlTableRow.cs
- ProcessModuleCollection.cs
- ListViewItemEventArgs.cs
- DefaultTextStore.cs
- BufferedOutputStream.cs
- SessionEndingCancelEventArgs.cs
- PopupEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- TimeZoneNotFoundException.cs
- COM2ColorConverter.cs
- SystemNetHelpers.cs
- WindowsFormsHostAutomationPeer.cs
- CodeNamespace.cs
- ProgressBarHighlightConverter.cs
- ConnectionManagementSection.cs
- AnimatedTypeHelpers.cs
- MsmqIntegrationInputMessage.cs
- ListViewGroupCollectionEditor.cs
- UpdatableGenericsFeature.cs
- RecordsAffectedEventArgs.cs
- LineSegment.cs
- ModelPerspective.cs
- BatchWriter.cs
- DocumentOrderQuery.cs
- TreeNodeClickEventArgs.cs
- ToolStripPanelRenderEventArgs.cs
- StateRuntime.cs
- FontCacheLogic.cs
- HtmlInputSubmit.cs
- Filter.cs
- safex509handles.cs
- ServiceModelConfiguration.cs
- ExpressionBuilder.cs
- Span.cs
- XmlSchemaAll.cs
- SqlDataSource.cs
- InvalidAsynchronousStateException.cs
- DoubleLinkListEnumerator.cs
- XmlNodeList.cs
- DataSysAttribute.cs
- BufferedOutputStream.cs
- RectangleGeometry.cs
- XmlSchemaParticle.cs
- lengthconverter.cs
- EntityDataSourceViewSchema.cs
- ClientUtils.cs