Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- TcpDuplicateContext.cs
- ExtensionFile.cs
- XmlAttributeHolder.cs
- ADMembershipUser.cs
- NamespaceDisplay.xaml.cs
- Span.cs
- DiscoveryCallbackBehavior.cs
- ReadOnlyDictionary.cs
- TextBreakpoint.cs
- sitestring.cs
- ParameterCollectionEditor.cs
- RegexGroupCollection.cs
- WebServiceHandler.cs
- StatusStrip.cs
- Stylus.cs
- CodeExporter.cs
- RoleManagerModule.cs
- SignatureHelper.cs
- CodeGenHelper.cs
- While.cs
- ADMembershipProvider.cs
- FreezableDefaultValueFactory.cs
- ScriptingRoleServiceSection.cs
- cache.cs
- SRGSCompiler.cs
- DataGridViewDataErrorEventArgs.cs
- SelectionRangeConverter.cs
- ReferenceSchema.cs
- VisualStyleTypesAndProperties.cs
- PipeStream.cs
- WizardStepCollectionEditor.cs
- PieceDirectory.cs
- ZipArchive.cs
- ManipulationDeltaEventArgs.cs
- FlowDocumentReader.cs
- DBConnection.cs
- ObjectReferenceStack.cs
- IisTraceWebEventProvider.cs
- LineSegment.cs
- dataprotectionpermissionattribute.cs
- DataTableTypeConverter.cs
- CatalogPartCollection.cs
- Normalization.cs
- CheckBox.cs
- SubstitutionList.cs
- _FtpControlStream.cs
- Propagator.Evaluator.cs
- Utilities.cs
- TextModifier.cs
- CheckBoxField.cs
- TemplatedAdorner.cs
- XhtmlBasicControlAdapter.cs
- ExpressionBuilder.cs
- LogicalTreeHelper.cs
- SqlError.cs
- XamlClipboardData.cs
- SmtpMail.cs
- FontSource.cs
- InkPresenter.cs
- ClrPerspective.cs
- KnownTypesHelper.cs
- ErrorStyle.cs
- SynchronizationFilter.cs
- Double.cs
- HtmlInputText.cs
- PriorityRange.cs
- PrintingPermissionAttribute.cs
- NotifyParentPropertyAttribute.cs
- ObsoleteAttribute.cs
- ColorMatrix.cs
- IsolatedStorageFileStream.cs
- ValuePattern.cs
- InvalidEnumArgumentException.cs
- ArcSegment.cs
- PhonemeConverter.cs
- XamlToRtfParser.cs
- _ConnectStream.cs
- TypefaceMetricsCache.cs
- SaveLedgerEntryRequest.cs
- ApplicationFileParser.cs
- SemaphoreFullException.cs
- WsdlBuildProvider.cs
- SettingsProperty.cs
- DrawingGroup.cs
- PageTheme.cs
- VisualStyleInformation.cs
- CharacterString.cs
- ApplicationServiceHelper.cs
- OleDbException.cs
- JournalEntryListConverter.cs
- DbTransaction.cs
- HostingEnvironmentSection.cs
- FileDialogCustomPlacesCollection.cs
- XPathEmptyIterator.cs
- ArgumentNullException.cs
- ThreadStaticAttribute.cs
- DesignerAdRotatorAdapter.cs
- ConfigurationStrings.cs
- CompareValidator.cs
- WindowsSolidBrush.cs