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
- FixedFlowMap.cs
- CategoryNameCollection.cs
- DataGridViewCellConverter.cs
- PassportAuthentication.cs
- MetaTable.cs
- BinaryUtilClasses.cs
- SqlDataSourceCommandEventArgs.cs
- IPEndPointCollection.cs
- SqlCacheDependencySection.cs
- Vector3DAnimationUsingKeyFrames.cs
- DateTimeOffsetAdapter.cs
- ListViewCancelEventArgs.cs
- HttpVersion.cs
- DummyDataSource.cs
- PropertyGridEditorPart.cs
- ImageListImageEditor.cs
- UseLicense.cs
- DbDataReader.cs
- MarkedHighlightComponent.cs
- LightweightEntityWrapper.cs
- BitmapImage.cs
- XsltInput.cs
- CaseCqlBlock.cs
- WinEventTracker.cs
- OutputCacheSettings.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- CodeCatchClauseCollection.cs
- HtmlInputRadioButton.cs
- QueryStringParameter.cs
- SafeCryptoHandles.cs
- MSAAEventDispatcher.cs
- LambdaCompiler.ControlFlow.cs
- BoolExpression.cs
- DesignerMetadata.cs
- WebEventTraceProvider.cs
- MouseGestureConverter.cs
- SqlRewriteScalarSubqueries.cs
- dbdatarecord.cs
- GeneratedCodeAttribute.cs
- HttpConfigurationContext.cs
- SuppressMessageAttribute.cs
- DataColumnPropertyDescriptor.cs
- SpeakCompletedEventArgs.cs
- VisualStyleInformation.cs
- MachineKeyValidationConverter.cs
- DesignerSerializerAttribute.cs
- ParsedAttributeCollection.cs
- FloatUtil.cs
- _ScatterGatherBuffers.cs
- RijndaelManaged.cs
- EntityType.cs
- GridViewItemAutomationPeer.cs
- HttpConfigurationSystem.cs
- XmlRawWriter.cs
- DrawingBrush.cs
- TcpClientChannel.cs
- TypeKeyValue.cs
- GridViewDeleteEventArgs.cs
- StringValueSerializer.cs
- SourceSwitch.cs
- Pkcs7Recipient.cs
- XmlSchemaDatatype.cs
- CatalogZone.cs
- TableHeaderCell.cs
- LineSegment.cs
- ASCIIEncoding.cs
- AnnotationAdorner.cs
- BaseCollection.cs
- BStrWrapper.cs
- TypeConverter.cs
- ExtentKey.cs
- DesignerFrame.cs
- XmlUnspecifiedAttribute.cs
- DrawingCollection.cs
- OAVariantLib.cs
- XhtmlTextWriter.cs
- Control.cs
- Assembly.cs
- IssuedSecurityTokenParameters.cs
- TreeNodeCollection.cs
- UInt32.cs
- DataGridCommandEventArgs.cs
- ListViewItemSelectionChangedEvent.cs
- DataGridViewMethods.cs
- FieldTemplateFactory.cs
- RightsManagementPermission.cs
- baseaxisquery.cs
- SqlCacheDependency.cs
- CheckBoxFlatAdapter.cs
- HtmlToClrEventProxy.cs
- CompModHelpers.cs
- NumericUpDownAcceleration.cs
- Substitution.cs
- NameValueCollection.cs
- OptimizerPatterns.cs
- AbstractSvcMapFileLoader.cs
- CompiledIdentityConstraint.cs
- DesigntimeLicenseContextSerializer.cs