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
- DataFieldEditor.cs
- SourceSwitch.cs
- BaseHashHelper.cs
- GCHandleCookieTable.cs
- EventSinkHelperWriter.cs
- SimpleBitVector32.cs
- TemplatedMailWebEventProvider.cs
- XsltContext.cs
- IIS7UserPrincipal.cs
- ObjectQueryExecutionPlan.cs
- Pkcs9Attribute.cs
- SiteMapProvider.cs
- Selection.cs
- ArrangedElementCollection.cs
- ExecutionScope.cs
- ReachFixedPageSerializerAsync.cs
- Transform3D.cs
- OracleTimeSpan.cs
- TypeContext.cs
- LabelEditEvent.cs
- EdgeProfileValidation.cs
- CodeChecksumPragma.cs
- ListBoxDesigner.cs
- DataGridViewRowHeaderCell.cs
- IdentityReference.cs
- SqlConnectionString.cs
- AttributeSetAction.cs
- XmlImplementation.cs
- CounterCreationData.cs
- XPathPatternBuilder.cs
- StringFormat.cs
- ImportDesigner.xaml.cs
- XmlSerializableServices.cs
- FileDialog.cs
- LabelEditEvent.cs
- SourceFileBuildProvider.cs
- UnsafeNetInfoNativeMethods.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- IndexOutOfRangeException.cs
- BooleanExpr.cs
- UnSafeCharBuffer.cs
- XmlBufferReader.cs
- StreamInfo.cs
- DesignerLinkAdapter.cs
- DocumentAutomationPeer.cs
- EnumUnknown.cs
- RichTextBoxAutomationPeer.cs
- DrawingGroup.cs
- Behavior.cs
- MiniParameterInfo.cs
- XsltInput.cs
- ResourceLoader.cs
- OpCodes.cs
- InternalConfigSettingsFactory.cs
- OrderPreservingMergeHelper.cs
- StreamUpgradeAcceptor.cs
- OutOfProcStateClientManager.cs
- BindingNavigator.cs
- RuntimeConfigLKG.cs
- PopupEventArgs.cs
- TypeDescriptionProvider.cs
- PointAnimationBase.cs
- CultureTable.cs
- DynamicUpdateCommand.cs
- MissingSatelliteAssemblyException.cs
- SerializationAttributes.cs
- SafeLibraryHandle.cs
- DataErrorValidationRule.cs
- IpcClientManager.cs
- DateTime.cs
- HttpRequestWrapper.cs
- ConnectionsZone.cs
- wgx_commands.cs
- SystemGatewayIPAddressInformation.cs
- QueryCursorEventArgs.cs
- ProviderConnectionPointCollection.cs
- ExtentCqlBlock.cs
- VoiceObjectToken.cs
- DrawingDrawingContext.cs
- EncoderNLS.cs
- SamlAudienceRestrictionCondition.cs
- ExpressionEditor.cs
- WindowsScrollBarBits.cs
- StateMachineAction.cs
- Model3DGroup.cs
- CollectionsUtil.cs
- ValidationErrorEventArgs.cs
- XmlnsCompatibleWithAttribute.cs
- TypeListConverter.cs
- FillErrorEventArgs.cs
- oledbmetadatacollectionnames.cs
- XmlSchemas.cs
- OciEnlistContext.cs
- OracleEncoding.cs
- LayoutManager.cs
- TraceListener.cs
- GeneralTransform3D.cs
- QueryLifecycle.cs
- StylusEventArgs.cs
- ServiceReference.cs