Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WebPartExportVerb.cs
- InputProviderSite.cs
- RequestCachePolicy.cs
- ObfuscationAttribute.cs
- CompilerResults.cs
- ElementNotAvailableException.cs
- wgx_exports.cs
- SerializationSectionGroup.cs
- Rect.cs
- EntityDataSourceSelectingEventArgs.cs
- DropShadowBitmapEffect.cs
- SystemWebCachingSectionGroup.cs
- DBDataPermissionAttribute.cs
- BaseComponentEditor.cs
- KeyInfo.cs
- WebScriptClientGenerator.cs
- RemoteCryptoRsaServiceProvider.cs
- SemanticValue.cs
- UnionExpr.cs
- DataColumnChangeEvent.cs
- SqlConnectionPoolGroupProviderInfo.cs
- AttachedPropertyBrowsableAttribute.cs
- ConditionCollection.cs
- OptionalColumn.cs
- ValueTable.cs
- PeerApplication.cs
- SegmentTree.cs
- SafeArrayTypeMismatchException.cs
- CodeExporter.cs
- ToolStripDropDownClosedEventArgs.cs
- PassportAuthentication.cs
- Delegate.cs
- StaticExtension.cs
- StringAnimationBase.cs
- ModuleElement.cs
- SafeMarshalContext.cs
- HandlerBase.cs
- AxisAngleRotation3D.cs
- BamlTreeNode.cs
- AppDomain.cs
- IDReferencePropertyAttribute.cs
- IEnumerable.cs
- SamlNameIdentifierClaimResource.cs
- SerialPort.cs
- TextElementAutomationPeer.cs
- TextTreeTextElementNode.cs
- RuntimeConfig.cs
- Transform.cs
- PriorityRange.cs
- ControlPropertyNameConverter.cs
- EntityReference.cs
- SqlServices.cs
- CommandValueSerializer.cs
- UInt16Storage.cs
- HtmlContainerControl.cs
- InlineCollection.cs
- CompilerScopeManager.cs
- ExpressionHelper.cs
- DataGridHeaderBorder.cs
- AlignmentYValidation.cs
- DES.cs
- MenuEventArgs.cs
- RotateTransform3D.cs
- ZipArchive.cs
- OdbcCommand.cs
- DataGridTableStyleMappingNameEditor.cs
- XpsFixedPageReaderWriter.cs
- Model3DCollection.cs
- ThaiBuddhistCalendar.cs
- MessageContractMemberAttribute.cs
- DataGridViewColumnCollectionDialog.cs
- ZipIOExtraField.cs
- DocumentOrderComparer.cs
- HtmlHistory.cs
- UserControlDesigner.cs
- EndpointReference.cs
- RegexCode.cs
- ResourcePool.cs
- Rotation3D.cs
- HandlerFactoryWrapper.cs
- InputScopeNameConverter.cs
- CallbackTimeoutsBehavior.cs
- EffectiveValueEntry.cs
- TableRow.cs
- ChunkedMemoryStream.cs
- WindowsTokenRoleProvider.cs
- Triangle.cs
- ProjectionQueryOptionExpression.cs
- KeyInfo.cs
- PropertyChangedEventManager.cs
- ExtensibleClassFactory.cs
- XmlSchemaObjectTable.cs
- RootNamespaceAttribute.cs
- followingsibling.cs
- TableStyle.cs
- ItemsPresenter.cs
- SynchronizationContext.cs
- DebugView.cs
- FileCodeGroup.cs
- XmlWellformedWriter.cs