Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- NullableDoubleMinMaxAggregationOperator.cs
- DBSqlParserColumn.cs
- SrgsDocumentParser.cs
- IsolationInterop.cs
- CngProperty.cs
- StatusBar.cs
- TextChangedEventArgs.cs
- CannotUnloadAppDomainException.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- LifetimeServices.cs
- XmlSerializerFactory.cs
- XmlQueryOutput.cs
- Bidi.cs
- ArcSegment.cs
- RightsDocument.cs
- RegexFCD.cs
- _CacheStreams.cs
- Rights.cs
- SponsorHelper.cs
- XmlSerializerFactory.cs
- ImageAutomationPeer.cs
- NavigatorInput.cs
- StrongTypingException.cs
- PixelShader.cs
- ValueChangedEventManager.cs
- CodeStatementCollection.cs
- util.cs
- ThousandthOfEmRealPoints.cs
- GraphicsPathIterator.cs
- DataGridCommandEventArgs.cs
- QilGenerator.cs
- MemberAccessException.cs
- SemaphoreFullException.cs
- SubMenuStyleCollection.cs
- PathParser.cs
- XmlSchemaImporter.cs
- DocumentAutomationPeer.cs
- SystemEvents.cs
- NGCSerializerAsync.cs
- StorageAssociationSetMapping.cs
- Array.cs
- EnterpriseServicesHelper.cs
- ContentControl.cs
- DrawingCollection.cs
- CodeNamespaceCollection.cs
- FragmentQueryKB.cs
- WebPartMinimizeVerb.cs
- AnnotationResourceChangedEventArgs.cs
- CompensatableTransactionScopeActivity.cs
- ListViewEditEventArgs.cs
- CacheMemory.cs
- ValueHandle.cs
- ComponentResourceManager.cs
- Button.cs
- StorageSetMapping.cs
- CharAnimationUsingKeyFrames.cs
- XmlLinkedNode.cs
- CqlLexerHelpers.cs
- ClientOperationFormatterProvider.cs
- DefaultHttpHandler.cs
- SingleKeyFrameCollection.cs
- CellQuery.cs
- TemplateControlCodeDomTreeGenerator.cs
- MaterialGroup.cs
- DataSysAttribute.cs
- EntityContainer.cs
- MouseEventArgs.cs
- PrintPreviewDialog.cs
- GestureRecognitionResult.cs
- InkPresenterAutomationPeer.cs
- ModifyActivitiesPropertyDescriptor.cs
- Pen.cs
- FacetDescriptionElement.cs
- PackagePart.cs
- NamedPipeProcessProtocolHandler.cs
- objectresult_tresulttype.cs
- AuthenticationManager.cs
- AdRotatorDesigner.cs
- TextComposition.cs
- FeatureAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- QuadraticEase.cs
- SoapServerMethod.cs
- XhtmlBasicLinkAdapter.cs
- _HeaderInfoTable.cs
- Path.cs
- BufferCache.cs
- QuaternionConverter.cs
- PreProcessInputEventArgs.cs
- SqlException.cs
- XamlClipboardData.cs
- MessageRpc.cs
- SelectionPattern.cs
- XmlDataCollection.cs
- Base64Encoder.cs
- ApplicationException.cs
- Operators.cs
- InternalTypeHelper.cs
- ScriptDescriptor.cs
- WpfSharedBamlSchemaContext.cs