Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EventManager.cs
- PersonalizationProviderCollection.cs
- TrackingConditionCollection.cs
- SeverityFilter.cs
- HtmlLink.cs
- BuildManager.cs
- NamespaceList.cs
- DataServiceRequestException.cs
- BamlStream.cs
- DeclaredTypeElement.cs
- ConditionalDesigner.cs
- DataSourceExpressionCollection.cs
- XslTransform.cs
- XLinq.cs
- TextMarkerSource.cs
- SimpleWebHandlerParser.cs
- RectangleHotSpot.cs
- CodeBinaryOperatorExpression.cs
- ListMarkerSourceInfo.cs
- SqlDataSourceSelectingEventArgs.cs
- EventLogEntryCollection.cs
- ModuleConfigurationInfo.cs
- FeatureSupport.cs
- DataSourceCacheDurationConverter.cs
- EncodingNLS.cs
- CapabilitiesRule.cs
- xmlsaver.cs
- CheckBox.cs
- GridViewRowEventArgs.cs
- ScriptingRoleServiceSection.cs
- GeometryDrawing.cs
- CapiSymmetricAlgorithm.cs
- Currency.cs
- DataGridPageChangedEventArgs.cs
- FormViewInsertEventArgs.cs
- XMLUtil.cs
- MessageLogger.cs
- Profiler.cs
- Tuple.cs
- MethodToken.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- StretchValidation.cs
- MatrixConverter.cs
- HMACRIPEMD160.cs
- HttpRuntimeSection.cs
- EventBuilder.cs
- DataGridCommandEventArgs.cs
- CellPartitioner.cs
- ADRoleFactoryConfiguration.cs
- RenderData.cs
- TreeNodeBinding.cs
- XmlCountingReader.cs
- ControlBuilderAttribute.cs
- InProcStateClientManager.cs
- Queue.cs
- JournalEntryListConverter.cs
- ProfileProvider.cs
- PasswordRecoveryDesigner.cs
- ReferenceConverter.cs
- MailMessage.cs
- IdnMapping.cs
- Point.cs
- IBuiltInEvidence.cs
- Point3DCollectionConverter.cs
- EllipseGeometry.cs
- WebException.cs
- SHA512Managed.cs
- ThreadExceptionEvent.cs
- XPathSelfQuery.cs
- CommandID.cs
- CustomErrorCollection.cs
- SettingsProviderCollection.cs
- GridItemPattern.cs
- Util.cs
- PointCollectionConverter.cs
- Scene3D.cs
- ThemeDirectoryCompiler.cs
- FloaterBaseParagraph.cs
- XmlNamespaceMapping.cs
- WebPartZone.cs
- ImageClickEventArgs.cs
- DataRow.cs
- QilLiteral.cs
- ViewBox.cs
- DependencyObjectType.cs
- ResourceIDHelper.cs
- PrimitiveSchema.cs
- NoneExcludedImageIndexConverter.cs
- RestClientProxyHandler.cs
- BindableTemplateBuilder.cs
- ThreadStaticAttribute.cs
- XmlElementAttribute.cs
- Overlapped.cs
- BindingSource.cs
- _CacheStreams.cs
- RewritingPass.cs
- ComboBoxAutomationPeer.cs
- VoiceObjectToken.cs
- CachedTypeface.cs
- ReverseInheritProperty.cs