Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DescendantBaseQuery.cs
- Page.cs
- ButtonBaseAdapter.cs
- PerformanceCountersBase.cs
- Table.cs
- LicenseProviderAttribute.cs
- FormParameter.cs
- RelationshipType.cs
- _NetworkingPerfCounters.cs
- StringCollection.cs
- _FixedSizeReader.cs
- SafeRightsManagementQueryHandle.cs
- LZCodec.cs
- BufferModeSettings.cs
- WizardStepCollectionEditor.cs
- ToolStripDropDownItemDesigner.cs
- SchemaCollectionPreprocessor.cs
- SessionPageStateSection.cs
- ConnectionManager.cs
- AnnotationComponentManager.cs
- InputReport.cs
- COM2Properties.cs
- CodeIndexerExpression.cs
- XmlSerializerFactory.cs
- ServiceModelReg.cs
- Propagator.Evaluator.cs
- RestHandlerFactory.cs
- ModuleConfigurationInfo.cs
- ListItemCollection.cs
- ConfigXmlAttribute.cs
- MimeTypeMapper.cs
- StorageFunctionMapping.cs
- AssemblyCache.cs
- LinqDataSourceHelper.cs
- FixedSOMSemanticBox.cs
- HttpResponseHeader.cs
- MarginCollapsingState.cs
- WorkflowApplicationIdleEventArgs.cs
- MD5CryptoServiceProvider.cs
- AsymmetricAlgorithm.cs
- Positioning.cs
- IUnknownConstantAttribute.cs
- ToolBarPanel.cs
- StrokeDescriptor.cs
- FormParameter.cs
- NeutralResourcesLanguageAttribute.cs
- MsmqIntegrationInputChannel.cs
- NetCodeGroup.cs
- VisualState.cs
- FreeIndexList.cs
- UnitySerializationHolder.cs
- Assign.cs
- ObjectSerializerFactory.cs
- XPathSingletonIterator.cs
- StorageSetMapping.cs
- JavaScriptObjectDeserializer.cs
- _HTTPDateParse.cs
- DecoderFallbackWithFailureFlag.cs
- SiteMap.cs
- DPTypeDescriptorContext.cs
- EventProviderWriter.cs
- PrivilegedConfigurationManager.cs
- ValidatedControlConverter.cs
- KnownTypesHelper.cs
- Gdiplus.cs
- GridViewSortEventArgs.cs
- ListViewUpdatedEventArgs.cs
- DoubleStorage.cs
- TransformDescriptor.cs
- DateBoldEvent.cs
- EntityCommandCompilationException.cs
- CompoundFileStorageReference.cs
- StateDesigner.LayoutSelectionGlyph.cs
- Point4D.cs
- ProviderMetadata.cs
- DataGridViewAccessibleObject.cs
- TabRenderer.cs
- TableLayoutPanelCellPosition.cs
- AssemblyResourceLoader.cs
- EntityContainerEntitySetDefiningQuery.cs
- Reference.cs
- SystemUdpStatistics.cs
- TypeInfo.cs
- MembershipPasswordException.cs
- Clock.cs
- ColorConverter.cs
- MetadataItemEmitter.cs
- BufferedReadStream.cs
- Tile.cs
- ConfigurationHandlersInstallComponent.cs
- HtmlLink.cs
- EmptyReadOnlyDictionaryInternal.cs
- InstancePersistence.cs
- ApplicationFileCodeDomTreeGenerator.cs
- StorageTypeMapping.cs
- AssemblyLoader.cs
- KeyedCollection.cs
- GridViewUpdateEventArgs.cs
- TypeNameConverter.cs
- HScrollBar.cs