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
- ScriptingJsonSerializationSection.cs
- Event.cs
- ZoneButton.cs
- StandardBindingCollectionElement.cs
- DbExpressionVisitor.cs
- EntityDataSourceDesignerHelper.cs
- PermissionAttributes.cs
- DataControlExtensions.cs
- DiscoveryOperationContext.cs
- SecurityTokenSerializer.cs
- VolatileResourceManager.cs
- externdll.cs
- GridViewCommandEventArgs.cs
- RadioButtonBaseAdapter.cs
- mediaeventshelper.cs
- FactoryGenerator.cs
- CompositeKey.cs
- _OSSOCK.cs
- ConnectionStringsSection.cs
- MergeFailedEvent.cs
- ToolStripOverflow.cs
- CodeAttributeArgumentCollection.cs
- GeneralTransform3D.cs
- DBSchemaTable.cs
- CategoryEditor.cs
- DbDataSourceEnumerator.cs
- ClientFormsIdentity.cs
- VectorCollectionValueSerializer.cs
- OuterGlowBitmapEffect.cs
- Win32PrintDialog.cs
- TreeNodeBinding.cs
- Compiler.cs
- HitTestParameters.cs
- FixedSchema.cs
- EditCommandColumn.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Vector3DValueSerializer.cs
- documentsequencetextview.cs
- LineInfo.cs
- LoginView.cs
- NetworkAddressChange.cs
- BaseCAMarshaler.cs
- AutomationPropertyInfo.cs
- LinqDataSource.cs
- PropertyStore.cs
- DocumentOrderQuery.cs
- FileLogRecordEnumerator.cs
- CustomAttribute.cs
- WebPartCatalogAddVerb.cs
- Vector3DAnimationUsingKeyFrames.cs
- RowBinding.cs
- EmptyElement.cs
- CharAnimationUsingKeyFrames.cs
- TemplateDefinition.cs
- OleDbPermission.cs
- UInt64.cs
- UrlMappingsModule.cs
- JsonSerializer.cs
- ProfileBuildProvider.cs
- DisplayClaim.cs
- DataFieldConverter.cs
- UnsafeMethods.cs
- RouteItem.cs
- TextDpi.cs
- GPRECT.cs
- SafeSecurityHelper.cs
- ApplicationFileCodeDomTreeGenerator.cs
- CategoryNameCollection.cs
- DbProviderFactories.cs
- SelectionProcessor.cs
- NumberFunctions.cs
- DbDataRecord.cs
- RuntimeConfig.cs
- ImageIndexEditor.cs
- HtmlGenericControl.cs
- BezierSegment.cs
- MessageQueuePermission.cs
- SafeLibraryHandle.cs
- BitmapEffectGroup.cs
- X500Name.cs
- ConfigurationPropertyCollection.cs
- WindowClosedEventArgs.cs
- DecimalAnimation.cs
- XmlSyndicationContent.cs
- SqlErrorCollection.cs
- DynamicDataExtensions.cs
- XXXOnTypeBuilderInstantiation.cs
- Aes.cs
- ShapingEngine.cs
- PropertyItem.cs
- HwndStylusInputProvider.cs
- EllipseGeometry.cs
- SymbolType.cs
- LinkUtilities.cs
- Empty.cs
- CompilerErrorCollection.cs
- ProgressBarBrushConverter.cs
- CookielessData.cs
- PageParser.cs
- ProjectionPathBuilder.cs