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
- TimeSpanStorage.cs
- ValueProviderWrapper.cs
- ProcessInfo.cs
- OpenFileDialog.cs
- BitmapEffectDrawingContextState.cs
- ListControlStringCollectionEditor.cs
- CommandSet.cs
- Label.cs
- XMLUtil.cs
- QueryLifecycle.cs
- SourceChangedEventArgs.cs
- TextBlock.cs
- DispatcherOperation.cs
- CodeDOMProvider.cs
- CollectionBase.cs
- EntityTypeEmitter.cs
- Graph.cs
- SupportingTokenBindingElement.cs
- CommandHelper.cs
- NavigationProperty.cs
- TargetControlTypeCache.cs
- DataGridViewDataConnection.cs
- InstanceDescriptor.cs
- VerticalAlignConverter.cs
- ProfileProvider.cs
- PresentationSource.cs
- ThreadStaticAttribute.cs
- CommonGetThemePartSize.cs
- MaskInputRejectedEventArgs.cs
- AsyncContentLoadedEventArgs.cs
- NamespaceCollection.cs
- SuppressMessageAttribute.cs
- WindowsTitleBar.cs
- DynamicUpdateCommand.cs
- WorkflowOperationBehavior.cs
- CultureSpecificStringDictionary.cs
- PathGradientBrush.cs
- RecognitionResult.cs
- UrlMappingCollection.cs
- RolePrincipal.cs
- propertytag.cs
- HttpWebRequest.cs
- ObjectStorage.cs
- CodeNamespaceCollection.cs
- DecimalAnimationBase.cs
- BridgeDataReader.cs
- StringSource.cs
- initElementDictionary.cs
- DeviceFilterEditorDialog.cs
- PtsContext.cs
- Utils.cs
- EpmTargetPathSegment.cs
- NameValueCollection.cs
- SqlDataReader.cs
- DBSqlParser.cs
- XPathExpr.cs
- RSAPKCS1KeyExchangeFormatter.cs
- MultipartIdentifier.cs
- Block.cs
- BinaryMessageFormatter.cs
- ConcurrencyBehavior.cs
- SerializerDescriptor.cs
- GridSplitterAutomationPeer.cs
- Token.cs
- PageAsyncTaskManager.cs
- SchemaImporterExtensionsSection.cs
- XmlSchemaChoice.cs
- XmlStringTable.cs
- BaseCodeDomTreeGenerator.cs
- InfoCardCryptoHelper.cs
- WSHttpSecurity.cs
- CellNormalizer.cs
- ConfigurationCollectionAttribute.cs
- AbstractSvcMapFileLoader.cs
- TableCellCollection.cs
- HebrewCalendar.cs
- ProfileProvider.cs
- PropertyConverter.cs
- SingleTagSectionHandler.cs
- LinqDataSourceEditData.cs
- ObjectViewFactory.cs
- FindProgressChangedEventArgs.cs
- StateBag.cs
- EncryptedData.cs
- SerializationException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ValidationErrorEventArgs.cs
- ScrollBar.cs
- AutomationPropertyInfo.cs
- CodeObjectCreateExpression.cs
- RedistVersionInfo.cs
- Model3DGroup.cs
- InvalidAsynchronousStateException.cs
- EventLogger.cs
- _KerberosClient.cs
- BinaryQueryOperator.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UserNamePasswordClientCredential.cs
- PropertyGrid.cs
- TextStore.cs