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
- TextServicesCompartment.cs
- GlyphRunDrawing.cs
- InputLanguage.cs
- FileSystemInfo.cs
- SystemIPGlobalStatistics.cs
- Size3DValueSerializer.cs
- ButtonFlatAdapter.cs
- GreenMethods.cs
- XmlAnyAttributeAttribute.cs
- SelectingProviderEventArgs.cs
- SqlParameter.cs
- WebControlParameterProxy.cs
- OnOperation.cs
- SerializationHelper.cs
- SuppressIldasmAttribute.cs
- OracleException.cs
- XPathDescendantIterator.cs
- DESCryptoServiceProvider.cs
- RC2CryptoServiceProvider.cs
- MetafileHeader.cs
- XPathDescendantIterator.cs
- BrowserDefinitionCollection.cs
- PrintEvent.cs
- TerminatorSinks.cs
- PathNode.cs
- ComponentResourceKey.cs
- TypeForwardedToAttribute.cs
- EntityDataSourceDataSelection.cs
- SequenceDesigner.cs
- SqlTriggerAttribute.cs
- SerialReceived.cs
- ExitEventArgs.cs
- QueuePathDialog.cs
- DriveNotFoundException.cs
- XmlNode.cs
- PropertyKey.cs
- MimePart.cs
- DefaultTextStoreTextComposition.cs
- UshortList2.cs
- BinaryFormatter.cs
- SendReply.cs
- BulletedListEventArgs.cs
- Highlights.cs
- TreeNodeCollection.cs
- DataKey.cs
- MulticastDelegate.cs
- WrappedReader.cs
- XmlSerializerFormatAttribute.cs
- LongCountAggregationOperator.cs
- UriTemplateLiteralQueryValue.cs
- XmlNamespaceMapping.cs
- MenuItemCollectionEditorDialog.cs
- DbDataReader.cs
- SqlDataSourceCommandEventArgs.cs
- StorageEndPropertyMapping.cs
- ToolStripContentPanelRenderEventArgs.cs
- ElementFactory.cs
- ParallelRangeManager.cs
- FillErrorEventArgs.cs
- SchemaElementDecl.cs
- ISessionStateStore.cs
- BuildManager.cs
- ToolStripItemCollection.cs
- WindowsScrollBar.cs
- ChangeBlockUndoRecord.cs
- NumericExpr.cs
- PrinterResolution.cs
- SystemException.cs
- GridViewColumnHeader.cs
- Button.cs
- LayoutEditorPart.cs
- DictionarySectionHandler.cs
- EventListenerClientSide.cs
- HealthMonitoringSectionHelper.cs
- MediaElementAutomationPeer.cs
- SymbolMethod.cs
- QueryPageSettingsEventArgs.cs
- UnmanagedMarshal.cs
- TouchFrameEventArgs.cs
- DependsOnAttribute.cs
- FixedDocumentSequencePaginator.cs
- XmlNamedNodeMap.cs
- HashCodeCombiner.cs
- ExceptionUtility.cs
- ResourcePermissionBase.cs
- TextEditorSpelling.cs
- HandlerWithFactory.cs
- CommandValueSerializer.cs
- DivideByZeroException.cs
- BufferedGraphicsManager.cs
- CounterNameConverter.cs
- InputGestureCollection.cs
- SerializationInfo.cs
- TextTrailingWordEllipsis.cs
- DataControlFieldsEditor.cs
- Serializer.cs
- Tuple.cs
- Control.cs
- EncodingTable.cs
- keycontainerpermission.cs