Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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 ( 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. //------------------------------------------------------------------------------ //// 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 ( 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceHostingEnvironment.cs
- HashHelper.cs
- QueryOutputWriter.cs
- sqlcontext.cs
- DataViewListener.cs
- SafeNativeMethods.cs
- EnvironmentPermission.cs
- HtmlButton.cs
- FontInfo.cs
- sitestring.cs
- DescriptionCreator.cs
- CompiledQuery.cs
- XmlAttributes.cs
- ContextMenuService.cs
- ImageSourceConverter.cs
- CryptoProvider.cs
- X509PeerCertificateAuthentication.cs
- StylusDownEventArgs.cs
- ProviderMetadataCachedInformation.cs
- ServiceHost.cs
- RestrictedTransactionalPackage.cs
- HwndStylusInputProvider.cs
- SqlDataSourceQueryEditorForm.cs
- WebRequestModuleElement.cs
- StorageRoot.cs
- BamlLocalizationDictionary.cs
- DebugInfo.cs
- AddToCollection.cs
- VisualStateManager.cs
- documentation.cs
- DoubleUtil.cs
- NullToBooleanConverter.cs
- Brush.cs
- RelatedCurrencyManager.cs
- SimpleHandlerFactory.cs
- RequestCacheEntry.cs
- ProxyWebPart.cs
- DelegateTypeInfo.cs
- BindingOperations.cs
- OleDbRowUpdatingEvent.cs
- PolyLineSegment.cs
- ExpressionBuilderCollection.cs
- SqlServices.cs
- EventLogPermissionEntryCollection.cs
- EdgeProfileValidation.cs
- ObjectConverter.cs
- BitmapEffectInput.cs
- DocumentPageViewAutomationPeer.cs
- DescriptionAttribute.cs
- DataErrorValidationRule.cs
- ResourceManager.cs
- GACIdentityPermission.cs
- ElementHostAutomationPeer.cs
- SettingsProperty.cs
- Identity.cs
- KeyValuePair.cs
- SafeNativeMethods.cs
- PerspectiveCamera.cs
- CodeAttributeArgumentCollection.cs
- UnknownMessageReceivedEventArgs.cs
- LinearGradientBrush.cs
- MenuItemAutomationPeer.cs
- CheckBoxField.cs
- Int32AnimationBase.cs
- FormViewDeletedEventArgs.cs
- PaginationProgressEventArgs.cs
- remotingproxy.cs
- QueuePropertyVariants.cs
- TdsParserStaticMethods.cs
- TextServicesDisplayAttribute.cs
- NamespaceDecl.cs
- PrintPreviewControl.cs
- XPathScanner.cs
- COM2PropertyPageUITypeConverter.cs
- DocobjHost.cs
- Drawing.cs
- XmlChildNodes.cs
- Page.cs
- TraceUtility.cs
- NameValueCollection.cs
- ResourceReferenceExpression.cs
- SerialStream.cs
- XPathEmptyIterator.cs
- Positioning.cs
- Rules.cs
- TrackPoint.cs
- ManipulationStartingEventArgs.cs
- DurationConverter.cs
- Grid.cs
- LabelInfo.cs
- ConfigurationManagerInternalFactory.cs
- XsdDateTime.cs
- WebBrowserHelper.cs
- AsyncPostBackTrigger.cs
- ToolStripItemBehavior.cs
- KeyGestureConverter.cs
- CultureMapper.cs
- DataViewListener.cs
- CaseInsensitiveOrdinalStringComparer.cs
- SafeEventLogWriteHandle.cs