Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NumberSubstitution.cs
- ActivatedMessageQueue.cs
- CompletedAsyncResult.cs
- VariantWrapper.cs
- ToolStripSystemRenderer.cs
- NavigationPropertyEmitter.cs
- AttributeProviderAttribute.cs
- RoleManagerSection.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DodSequenceMerge.cs
- SqlConnectionString.cs
- ApplyTemplatesAction.cs
- Cloud.cs
- AstTree.cs
- ClientProtocol.cs
- AnalyzedTree.cs
- PtsHost.cs
- AutomationPattern.cs
- AnimationClock.cs
- FileChangesMonitor.cs
- X509CertificateValidationMode.cs
- InstanceStoreQueryResult.cs
- StorageMappingItemCollection.cs
- SynchronousChannel.cs
- Soap12ProtocolImporter.cs
- DelegateSerializationHolder.cs
- CompositeActivityMarkupSerializer.cs
- ExtenderProvidedPropertyAttribute.cs
- Subtree.cs
- XhtmlTextWriter.cs
- PackageStore.cs
- SystemResourceKey.cs
- SelectionEditor.cs
- EntityTemplateUserControl.cs
- DataObject.cs
- HorizontalAlignConverter.cs
- DataRow.cs
- IntPtr.cs
- SiteMapDesignerDataSourceView.cs
- IPAddressCollection.cs
- EntityDesignerBuildProvider.cs
- BookmarkUndoUnit.cs
- GridViewUpdateEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- DecoderNLS.cs
- MethodExpr.cs
- UIElementHelper.cs
- ComAdminInterfaces.cs
- XLinq.cs
- CheckBoxFlatAdapter.cs
- SlipBehavior.cs
- ipaddressinformationcollection.cs
- Int64Animation.cs
- BasicKeyConstraint.cs
- WinInetCache.cs
- ToolStripDropTargetManager.cs
- FileLevelControlBuilderAttribute.cs
- RecordManager.cs
- OdbcCommand.cs
- PlatformCulture.cs
- WebServiceResponse.cs
- BackgroundFormatInfo.cs
- ServiceDurableInstanceContextProvider.cs
- SortDescription.cs
- MetadataSource.cs
- ProviderBase.cs
- RemoteArgument.cs
- ParserContext.cs
- ObjectStateEntry.cs
- PrtCap_Reader.cs
- DrawingCollection.cs
- ADRoleFactory.cs
- JavaScriptSerializer.cs
- ReferenceAssemblyAttribute.cs
- SqlBinder.cs
- EmptyStringExpandableObjectConverter.cs
- DefaultBindingPropertyAttribute.cs
- SoapProtocolReflector.cs
- OutputScopeManager.cs
- Switch.cs
- Bitmap.cs
- ServiceEndpointElement.cs
- Relationship.cs
- RenameRuleObjectDialog.Designer.cs
- LinqDataSource.cs
- Base64Encoding.cs
- ModelTreeEnumerator.cs
- ExpressionValueEditor.cs
- SafeMILHandleMemoryPressure.cs
- BindToObject.cs
- InputMethodStateChangeEventArgs.cs
- ProfessionalColorTable.cs
- ToolStripPanelDesigner.cs
- ExpressionHelper.cs
- Config.cs
- ContainerControl.cs
- regiisutil.cs
- AssemblyBuilder.cs
- XmlElementAttribute.cs
- SubtreeProcessor.cs