Code:
/ DotNET / DotNET / 8.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
- ComponentEvent.cs
- ComponentCollection.cs
- NetworkInformationException.cs
- SpeechSeg.cs
- BuildResult.cs
- HtmlInputReset.cs
- Utils.cs
- DynamicActivityTypeDescriptor.cs
- LongValidator.cs
- SchemaInfo.cs
- xdrvalidator.cs
- Item.cs
- _NegotiateClient.cs
- StylusPointPropertyId.cs
- WebConfigurationHostFileChange.cs
- TextViewSelectionProcessor.cs
- RowCache.cs
- CellTreeNode.cs
- mediaclock.cs
- DoubleAnimationUsingKeyFrames.cs
- StickyNote.cs
- ConditionValidator.cs
- EncryptRequest.cs
- ProfileBuildProvider.cs
- SafeCertificateContext.cs
- TransactionManager.cs
- XappLauncher.cs
- DateTimeOffset.cs
- TypeExtensions.cs
- MethodCallExpression.cs
- PolyBezierSegmentFigureLogic.cs
- QuaternionAnimationUsingKeyFrames.cs
- SystemIPGlobalStatistics.cs
- TableAutomationPeer.cs
- Rotation3D.cs
- EffectiveValueEntry.cs
- ElementsClipboardData.cs
- FlowPosition.cs
- XamlTreeBuilder.cs
- MultilineStringEditor.cs
- CustomSignedXml.cs
- DispatcherProcessingDisabled.cs
- SliderAutomationPeer.cs
- RecipientInfo.cs
- BasicExpressionVisitor.cs
- WhitespaceRuleLookup.cs
- DesignerTransaction.cs
- StylusPointCollection.cs
- ComboBoxAutomationPeer.cs
- ValueType.cs
- SafeHandle.cs
- PaperSource.cs
- SoapAttributeOverrides.cs
- MenuItemBinding.cs
- Vector3DCollectionConverter.cs
- Point3DKeyFrameCollection.cs
- ISO2022Encoding.cs
- IISMapPath.cs
- UpdateTranslator.cs
- InvalidBodyAccessException.cs
- DesignerVerbToolStripMenuItem.cs
- LocalServiceSecuritySettings.cs
- PreviewPrintController.cs
- RIPEMD160Managed.cs
- InputLangChangeRequestEvent.cs
- SystemInfo.cs
- WebPartDisplayModeCancelEventArgs.cs
- LogicalExpr.cs
- GeneralTransformGroup.cs
- MetadataItemEmitter.cs
- PathGradientBrush.cs
- MobileSysDescriptionAttribute.cs
- ControlLocalizer.cs
- WeakReference.cs
- SecurityIdentifierElement.cs
- _MultipleConnectAsync.cs
- XmlEventCache.cs
- BuiltInPermissionSets.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- MatrixStack.cs
- ScrollEvent.cs
- DataSourceHelper.cs
- ProviderConnectionPointCollection.cs
- figurelength.cs
- TraceProvider.cs
- ResourceProperty.cs
- HttpModulesInstallComponent.cs
- EdmType.cs
- DependentList.cs
- LogWriteRestartAreaState.cs
- ImageCodecInfo.cs
- ButtonBaseAutomationPeer.cs
- AVElementHelper.cs
- ByteAnimationBase.cs
- HTMLTagNameToTypeMapper.cs
- ObjectComplexPropertyMapping.cs
- IntSecurity.cs
- TypeInformation.cs
- InteropAutomationProvider.cs
- BasicAsyncResult.cs