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
- ForeignKeyFactory.cs
- FormsAuthenticationCredentials.cs
- GroupPartitionExpr.cs
- HtmlInputReset.cs
- SqlWorkflowInstanceStoreLock.cs
- HtmlValidatorAdapter.cs
- CodeAssignStatement.cs
- XmlSchemaObject.cs
- shaperfactory.cs
- ImageFormat.cs
- SettingsPropertyNotFoundException.cs
- MSG.cs
- DateTimeOffsetStorage.cs
- ResponseBodyWriter.cs
- FixedPageProcessor.cs
- Menu.cs
- OutputCacheProfile.cs
- regiisutil.cs
- LassoSelectionBehavior.cs
- EditorZone.cs
- Matrix.cs
- XmlSchemaComplexContent.cs
- BitmapScalingModeValidation.cs
- NamespaceCollection.cs
- WebPartMovingEventArgs.cs
- TraceUtils.cs
- ToggleProviderWrapper.cs
- ImageMap.cs
- MinMaxParagraphWidth.cs
- ProxyWebPartManager.cs
- UnsafeNativeMethods.cs
- LocalBuilder.cs
- LinearGradientBrush.cs
- WindowsFormsSectionHandler.cs
- FormsAuthenticationModule.cs
- RelationshipManager.cs
- cookie.cs
- CodeTryCatchFinallyStatement.cs
- SiteMapNodeItemEventArgs.cs
- Literal.cs
- _HeaderInfo.cs
- COM2Enum.cs
- EntityChangedParams.cs
- LazyTextWriterCreator.cs
- XmlILAnnotation.cs
- SystemIPv4InterfaceProperties.cs
- GeometryDrawing.cs
- XmlMemberMapping.cs
- CodeBlockBuilder.cs
- StrokeFIndices.cs
- StorageSetMapping.cs
- DrawingCollection.cs
- DebuggerAttributes.cs
- ExtentKey.cs
- ContentPlaceHolder.cs
- OptimalTextSource.cs
- CodeParameterDeclarationExpression.cs
- VectorAnimation.cs
- TemplateInstanceAttribute.cs
- IfJoinedCondition.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlCustomFormatter.cs
- Function.cs
- MappingMetadataHelper.cs
- nulltextnavigator.cs
- FixedDocumentSequencePaginator.cs
- IPipelineRuntime.cs
- XmlSchemaSimpleType.cs
- TaskHelper.cs
- StaticSiteMapProvider.cs
- BindingEntityInfo.cs
- XPathConvert.cs
- WebPartDisplayModeCollection.cs
- QilBinary.cs
- TextBoxAutomationPeer.cs
- FileReservationCollection.cs
- FileDataSourceCache.cs
- MembershipPasswordException.cs
- IsolatedStorageException.cs
- SqlPersonalizationProvider.cs
- EventDescriptorCollection.cs
- TimeStampChecker.cs
- NominalTypeEliminator.cs
- ResponseBodyWriter.cs
- SiteMapPath.cs
- HostedImpersonationContext.cs
- TemplateBindingExpressionConverter.cs
- RoleBoolean.cs
- DrawingGroup.cs
- PersonalizationProvider.cs
- HttpDictionary.cs
- MethodAccessException.cs
- Closure.cs
- SinglePageViewer.cs
- CharEnumerator.cs
- TextTabProperties.cs
- wgx_exports.cs
- ReadOnlyDictionary.cs
- SqlClientFactory.cs
- xsdvalidator.cs