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
- HttpListenerContext.cs
- XmlObjectSerializerWriteContext.cs
- SafePointer.cs
- DefaultAuthorizationContext.cs
- SharedPersonalizationStateInfo.cs
- ToolStripPanelCell.cs
- BooleanStorage.cs
- RepeaterItem.cs
- AdjustableArrowCap.cs
- CacheChildrenQuery.cs
- SafeBitVector32.cs
- ButtonBaseAdapter.cs
- SettingsProperty.cs
- Point3DAnimation.cs
- ContextMenu.cs
- login.cs
- EventLogPropertySelector.cs
- ColumnPropertiesGroup.cs
- PointCollectionValueSerializer.cs
- InteropBitmapSource.cs
- CommandValueSerializer.cs
- HwndSourceParameters.cs
- BindingSourceDesigner.cs
- TabItem.cs
- ServiceMemoryGates.cs
- VisualCollection.cs
- BlockUIContainer.cs
- PerformanceCountersElement.cs
- Tile.cs
- QuaternionAnimation.cs
- DesignObjectWrapper.cs
- ToolStripProgressBar.cs
- CompilerTypeWithParams.cs
- SafeCoTaskMem.cs
- XPathChildIterator.cs
- PackagingUtilities.cs
- SecurityState.cs
- ExpressionTable.cs
- RefExpr.cs
- ContentPresenter.cs
- CounterSampleCalculator.cs
- InlineObject.cs
- WpfWebRequestHelper.cs
- LabelEditEvent.cs
- MetadataCache.cs
- StylusButtonEventArgs.cs
- Int32CollectionConverter.cs
- LightweightEntityWrapper.cs
- FormsAuthenticationConfiguration.cs
- TreeNodeBindingCollection.cs
- HyperLinkStyle.cs
- NativeMethods.cs
- ThreadInterruptedException.cs
- Button.cs
- WebBrowserHelper.cs
- HyperLinkStyle.cs
- NativeMethods.cs
- storepermission.cs
- SecurityContextTokenValidationException.cs
- ContractTypeNameElement.cs
- Directory.cs
- SelectionListComponentEditor.cs
- EncryptedXml.cs
- SQLInt32.cs
- ColorPalette.cs
- BamlBinaryWriter.cs
- ObjRef.cs
- HotSpotCollection.cs
- MarshalDirectiveException.cs
- TextEditorSpelling.cs
- RowToFieldTransformer.cs
- TextParagraphView.cs
- EnumType.cs
- PolyBezierSegment.cs
- WindowsEditBox.cs
- XmlAnyElementAttribute.cs
- SspiHelper.cs
- PowerEase.cs
- PropertyValueEditor.cs
- AppSecurityManager.cs
- ReturnValue.cs
- VariableElement.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DefaultAuthorizationContext.cs
- HandleValueEditor.cs
- PointLight.cs
- ImageUrlEditor.cs
- dsa.cs
- CheckBox.cs
- WizardStepCollectionEditor.cs
- ReadContentAsBinaryHelper.cs
- DrawingState.cs
- WindowsListViewItemStartMenu.cs
- NeutralResourcesLanguageAttribute.cs
- QuestionEventArgs.cs
- XmlQueryCardinality.cs
- SplitterEvent.cs
- InternalCache.cs
- XPathCompileException.cs
- BrowserCapabilitiesFactory.cs