Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ClientRequest.cs
- ManualResetEvent.cs
- SignedPkcs7.cs
- QilCloneVisitor.cs
- FrameworkElementFactory.cs
- ContextDataSourceView.cs
- CompositeCollection.cs
- HighContrastHelper.cs
- ProcessModelSection.cs
- DataViewManager.cs
- Pts.cs
- PersianCalendar.cs
- DoubleCollection.cs
- SiblingIterators.cs
- SafeArchiveContext.cs
- StickyNoteContentControl.cs
- ContractNamespaceAttribute.cs
- WhiteSpaceTrimStringConverter.cs
- TransformCollection.cs
- XamlPoint3DCollectionSerializer.cs
- ClientProxyGenerator.cs
- DataSysAttribute.cs
- NullableBoolConverter.cs
- xml.cs
- PreProcessInputEventArgs.cs
- SqlParameterizer.cs
- UnaryNode.cs
- SqlCacheDependencyDatabase.cs
- NotCondition.cs
- ObjectViewFactory.cs
- Collection.cs
- FocusTracker.cs
- RemoteArgument.cs
- ADMembershipUser.cs
- ExpanderAutomationPeer.cs
- SqlMethods.cs
- FormViewUpdatedEventArgs.cs
- ToolStripItemBehavior.cs
- TraversalRequest.cs
- ReadWriteControlDesigner.cs
- Renderer.cs
- SqlTriggerContext.cs
- MD5.cs
- StylusTip.cs
- DataSourceView.cs
- XPathPatternBuilder.cs
- ApplicationActivator.cs
- Nodes.cs
- FixedSOMTableCell.cs
- XmlArrayAttribute.cs
- DataBindingCollection.cs
- Module.cs
- ServiceModelConfiguration.cs
- RuleConditionDialog.Designer.cs
- WebPartChrome.cs
- IdnElement.cs
- EnumerableValidator.cs
- CodePageUtils.cs
- RelationshipEnd.cs
- ClientApiGenerator.cs
- NonSerializedAttribute.cs
- Visitors.cs
- ValidationResults.cs
- CodeChecksumPragma.cs
- StylusShape.cs
- PromptStyle.cs
- DataControlLinkButton.cs
- AgileSafeNativeMemoryHandle.cs
- DataBinding.cs
- HandlerBase.cs
- OpenTypeLayoutCache.cs
- ScrollBar.cs
- PrimitiveType.cs
- BinaryObjectInfo.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- StatusStrip.cs
- DataGrid.cs
- CheckBoxBaseAdapter.cs
- FlowPosition.cs
- WsatServiceAddress.cs
- ToolStrip.cs
- InputMethodStateChangeEventArgs.cs
- PtsHelper.cs
- Model3DCollection.cs
- DbProviderFactory.cs
- _LocalDataStoreMgr.cs
- OpenTypeLayout.cs
- AppearanceEditorPart.cs
- TaskScheduler.cs
- ellipse.cs
- Track.cs
- XPathBinder.cs
- WebPartCloseVerb.cs
- ContourSegment.cs
- HitTestResult.cs
- DataRelationPropertyDescriptor.cs
- Thumb.cs
- ProcessInfo.cs
- MiniModule.cs
- CallbackValidatorAttribute.cs