Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MobileUITypeEditor.cs
- SingletonChannelAcceptor.cs
- DiffuseMaterial.cs
- QueryableDataSourceEditData.cs
- PingOptions.cs
- sitestring.cs
- DbConvert.cs
- DataGridViewMethods.cs
- TabOrder.cs
- TreeNodeClickEventArgs.cs
- ProgressBarAutomationPeer.cs
- ArgumentException.cs
- InputScopeConverter.cs
- SequentialUshortCollection.cs
- AsymmetricCryptoHandle.cs
- PlatformNotSupportedException.cs
- smtpconnection.cs
- _ShellExpression.cs
- BitmapScalingModeValidation.cs
- OdbcErrorCollection.cs
- Annotation.cs
- ServiceDebugElement.cs
- SqlError.cs
- SystemUnicastIPAddressInformation.cs
- RSAOAEPKeyExchangeFormatter.cs
- XpsFixedDocumentReaderWriter.cs
- Slider.cs
- AdjustableArrowCap.cs
- NavigateEvent.cs
- RegexFCD.cs
- HScrollBar.cs
- TCPListener.cs
- AssociatedControlConverter.cs
- ObjectViewEntityCollectionData.cs
- DeferredSelectedIndexReference.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- NonValidatingSecurityTokenAuthenticator.cs
- Point4D.cs
- PackageStore.cs
- RemotingConfiguration.cs
- PropertyStore.cs
- CodeComment.cs
- CodeArrayCreateExpression.cs
- ConfigurationLoader.cs
- MemberAccessException.cs
- VectorCollection.cs
- CodeDOMProvider.cs
- UnionCodeGroup.cs
- TextFormatter.cs
- CacheRequest.cs
- TreeViewItem.cs
- AnnotationElement.cs
- TextTreeDeleteContentUndoUnit.cs
- TypeForwardedToAttribute.cs
- FontDialog.cs
- XmlDataDocument.cs
- XmlIncludeAttribute.cs
- DataSourceView.cs
- BezierSegment.cs
- TemplateNameScope.cs
- SqlProvider.cs
- MailWebEventProvider.cs
- DataGridViewBindingCompleteEventArgs.cs
- FormViewDeleteEventArgs.cs
- X509IssuerSerialKeyIdentifierClause.cs
- DbProviderConfigurationHandler.cs
- ListViewCancelEventArgs.cs
- TreeNodeBindingCollection.cs
- WindowsSpinner.cs
- ProcessingInstructionAction.cs
- ActivityXamlServices.cs
- StdValidatorsAndConverters.cs
- PrtCap_Public_Simple.cs
- MemberDomainMap.cs
- SoapAttributeOverrides.cs
- MailAddressParser.cs
- UrlMapping.cs
- XamlPathDataSerializer.cs
- XmlSchemaValidator.cs
- RubberbandSelector.cs
- DataTemplate.cs
- SchemaImporterExtensionElement.cs
- DoubleAnimation.cs
- WebPartMovingEventArgs.cs
- IEnumerable.cs
- CompilerGlobalScopeAttribute.cs
- NativeMethods.cs
- GeometryHitTestResult.cs
- BoundColumn.cs
- SkipQueryOptionExpression.cs
- HashCodeCombiner.cs
- ComponentCache.cs
- AuditLog.cs
- DataIdProcessor.cs
- PolyLineSegment.cs
- PageParser.cs
- ToolStripItemClickedEventArgs.cs
- ConfigXmlElement.cs
- TlsnegoTokenAuthenticator.cs
- XPathException.cs