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
- InstallerTypeAttribute.cs
- AssertSection.cs
- ServicePoint.cs
- WebPartCloseVerb.cs
- IndexerNameAttribute.cs
- TextDecorations.cs
- QilVisitor.cs
- MainMenu.cs
- TimelineGroup.cs
- SafeRegistryHandle.cs
- sqlcontext.cs
- CompilerTypeWithParams.cs
- RangeValueProviderWrapper.cs
- InlineUIContainer.cs
- BindingCompleteEventArgs.cs
- EncryptedKey.cs
- FontResourceCache.cs
- LinqDataSourceDeleteEventArgs.cs
- XmlSchemaChoice.cs
- DuplexChannelBinder.cs
- LazyInitializer.cs
- MetabaseServerConfig.cs
- WorkflowMarkupSerializationManager.cs
- TagMapCollection.cs
- RequestCache.cs
- FormsAuthenticationModule.cs
- OdbcInfoMessageEvent.cs
- ImageSourceTypeConverter.cs
- TextOptions.cs
- HwndProxyElementProvider.cs
- SHA1CryptoServiceProvider.cs
- RegexWorker.cs
- CuspData.cs
- UnmanagedMarshal.cs
- AuthenticationSection.cs
- CacheEntry.cs
- TypeContext.cs
- DiagnosticsElement.cs
- HScrollProperties.cs
- DataGridViewIntLinkedList.cs
- ZipIOLocalFileBlock.cs
- ToolStripButton.cs
- OleDbWrapper.cs
- ToolStripPanel.cs
- AttributeUsageAttribute.cs
- ArrayTypeMismatchException.cs
- ProxyWebPart.cs
- EarlyBoundInfo.cs
- FlagsAttribute.cs
- ScrollBar.cs
- EntityCommand.cs
- GradientStopCollection.cs
- TextBlock.cs
- PersistenceContextEnlistment.cs
- HtmlTitle.cs
- SocketInformation.cs
- Point.cs
- CompilerTypeWithParams.cs
- DNS.cs
- BaseResourcesBuildProvider.cs
- ContextStack.cs
- DropDownList.cs
- ApplicationContext.cs
- ProfessionalColors.cs
- DoubleAnimationUsingKeyFrames.cs
- StrokeNodeEnumerator.cs
- SerializationException.cs
- DesignerDataSourceView.cs
- FileLevelControlBuilderAttribute.cs
- PackageRelationship.cs
- PointCollectionValueSerializer.cs
- DocumentPage.cs
- SpellCheck.cs
- UnsafeNativeMethods.cs
- CommandValueSerializer.cs
- ExcludePathInfo.cs
- MailAddressCollection.cs
- AlphaSortedEnumConverter.cs
- CategoryValueConverter.cs
- DataGridViewSelectedColumnCollection.cs
- MetadataItem_Static.cs
- QueryExpr.cs
- XPathAncestorQuery.cs
- ScriptResourceHandler.cs
- ObjectListCommandEventArgs.cs
- RuleConditionDialog.cs
- ThreadLocal.cs
- DesignerAttribute.cs
- GPPOINT.cs
- FileClassifier.cs
- DataIdProcessor.cs
- SerializableAttribute.cs
- OdbcConnectionFactory.cs
- AssemblyInfo.cs
- UidPropertyAttribute.cs
- WebSysDefaultValueAttribute.cs
- GeometryDrawing.cs
- ToolStripDropDownButton.cs
- DataBoundLiteralControl.cs
- BuilderInfo.cs