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
- List.cs
- ProfileManager.cs
- DataTableMapping.cs
- LinkUtilities.cs
- ConfigXmlCDataSection.cs
- ConsumerConnectionPointCollection.cs
- HtmlTable.cs
- ValidationResults.cs
- ObservableDictionary.cs
- MimePart.cs
- DataGridComponentEditor.cs
- PartitionerStatic.cs
- HashCodeCombiner.cs
- IssuedTokenServiceElement.cs
- WindowsGraphicsWrapper.cs
- SharedPerformanceCounter.cs
- MethodRental.cs
- RowType.cs
- HttpRequest.cs
- NetworkInterface.cs
- Mappings.cs
- OneWayElement.cs
- ProjectedWrapper.cs
- StylusButtonEventArgs.cs
- MarshalDirectiveException.cs
- XPathPatternBuilder.cs
- SmiMetaData.cs
- InvalidProgramException.cs
- GenericPrincipal.cs
- IdleTimeoutMonitor.cs
- StrokeRenderer.cs
- PropVariant.cs
- MultipleViewPattern.cs
- ISessionStateStore.cs
- TextReader.cs
- _HTTPDateParse.cs
- ListViewUpdateEventArgs.cs
- CodeConstructor.cs
- DataObjectEventArgs.cs
- DynamicMethod.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- FieldNameLookup.cs
- XhtmlBasicLinkAdapter.cs
- SubstitutionDesigner.cs
- Block.cs
- FirewallWrapper.cs
- GuidelineSet.cs
- NameTable.cs
- WizardPanel.cs
- NetworkAddressChange.cs
- WpfKnownTypeInvoker.cs
- ISCIIEncoding.cs
- ResourceWriter.cs
- Maps.cs
- webeventbuffer.cs
- VBIdentifierTrimConverter.cs
- DispatcherEventArgs.cs
- DebugController.cs
- TableLayoutSettings.cs
- XmlILConstructAnalyzer.cs
- LabelAutomationPeer.cs
- StreamReader.cs
- ChangeTracker.cs
- OSFeature.cs
- ManagementNamedValueCollection.cs
- LinkLabelLinkClickedEvent.cs
- CheckBox.cs
- MessageBodyMemberAttribute.cs
- SmtpNetworkElement.cs
- DelegatedStream.cs
- PackageStore.cs
- TrustSection.cs
- EnumerationRangeValidationUtil.cs
- RepeatBehaviorConverter.cs
- CodeGroup.cs
- PointUtil.cs
- Vector3D.cs
- HtmlTitle.cs
- RoleGroupCollection.cs
- APCustomTypeDescriptor.cs
- SafeMILHandle.cs
- TraceSection.cs
- DataGridDesigner.cs
- DataTableCollection.cs
- SchemaCollectionPreprocessor.cs
- InstanceDescriptor.cs
- DesignerActionGlyph.cs
- Rss20FeedFormatter.cs
- DataGridCellInfo.cs
- WebPartCloseVerb.cs
- EventLogEntryCollection.cs
- FacetDescriptionElement.cs
- RegexRunner.cs
- ContentTextAutomationPeer.cs
- StringKeyFrameCollection.cs
- ElementNotAvailableException.cs
- ScriptResourceAttribute.cs
- EventListenerClientSide.cs
- ChtmlImageAdapter.cs
- ClientType.cs