Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Compilation / ResXBuildProvider.cs / 1305376 / 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
- DmlSqlGenerator.cs
- AggregatePushdown.cs
- RightsManagementManager.cs
- BitmapCache.cs
- SqlCacheDependencyDatabase.cs
- TraceSection.cs
- JsonQNameDataContract.cs
- PanelContainerDesigner.cs
- PartialTrustValidationBehavior.cs
- RegistrationServices.cs
- ContentOperations.cs
- ComponentGuaranteesAttribute.cs
- CodeIndexerExpression.cs
- OracleConnectionStringBuilder.cs
- NegotiationTokenAuthenticator.cs
- SqlParameterCollection.cs
- ContextStack.cs
- FilterElement.cs
- ProfileServiceManager.cs
- WebPartExportVerb.cs
- ZoneLinkButton.cs
- Menu.cs
- HtmlWindow.cs
- SystemResourceHost.cs
- PreviewPrintController.cs
- DocumentXPathNavigator.cs
- SharedPersonalizationStateInfo.cs
- FloaterBaseParaClient.cs
- RijndaelManaged.cs
- ChannelPoolSettingsElement.cs
- HtmlInputButton.cs
- X509CertificateCollection.cs
- GiveFeedbackEvent.cs
- OleDbConnection.cs
- TreeNodeStyleCollection.cs
- COAUTHINFO.cs
- DataServiceQueryContinuation.cs
- ButtonChrome.cs
- PathSegmentCollection.cs
- ScrollProperties.cs
- MimeBasePart.cs
- SchemaElementLookUpTable.cs
- ReferencedAssembly.cs
- EventLogLink.cs
- MessageEnumerator.cs
- OleStrCAMarshaler.cs
- StringConverter.cs
- RegexGroupCollection.cs
- UncommonField.cs
- PixelFormat.cs
- DataReaderContainer.cs
- XPathEmptyIterator.cs
- MenuItem.cs
- ResourceAttributes.cs
- NativeMethods.cs
- EventArgs.cs
- FixedTextContainer.cs
- PanelStyle.cs
- WindowsBrush.cs
- SimpleBitVector32.cs
- PrinterSettings.cs
- ITextView.cs
- ReadOnlyState.cs
- ImportStoreException.cs
- CodeExpressionStatement.cs
- coordinator.cs
- AliasExpr.cs
- ArrangedElementCollection.cs
- SelectionWordBreaker.cs
- Odbc32.cs
- SqlCacheDependencySection.cs
- WebPartTracker.cs
- HitTestWithGeometryDrawingContextWalker.cs
- PropertyTab.cs
- SqlBulkCopyColumnMappingCollection.cs
- WorkerRequest.cs
- PassportPrincipal.cs
- DependencyPropertyChangedEventArgs.cs
- ConnectivityStatus.cs
- OuterGlowBitmapEffect.cs
- NetTcpSecurity.cs
- HtmlLinkAdapter.cs
- StandardOleMarshalObject.cs
- recordstatefactory.cs
- QilGenerator.cs
- RIPEMD160.cs
- StorageFunctionMapping.cs
- DesignTimeTemplateParser.cs
- WebPartMenu.cs
- SQLCharsStorage.cs
- SessionEndingEventArgs.cs
- ProxySimple.cs
- CollectionType.cs
- WindowHelperService.cs
- DragDrop.cs
- LocationChangedEventArgs.cs
- DrawingImage.cs
- StopStoryboard.cs
- validationstate.cs
- UDPClient.cs