Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- OleServicesContext.cs
- ClientBuildManagerCallback.cs
- ContextProperty.cs
- Handle.cs
- EnumerableValidator.cs
- SponsorHelper.cs
- Normalization.cs
- Point3DCollectionValueSerializer.cs
- MobileResource.cs
- GridViewColumnCollection.cs
- ScriptControl.cs
- ProgressPage.cs
- TextContainerChangedEventArgs.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ActiveXHelper.cs
- GACIdentityPermission.cs
- SQLInt64.cs
- CollectionBase.cs
- NameValueCollection.cs
- SimpleTextLine.cs
- MimeWriter.cs
- UInt64Storage.cs
- WrappingXamlSchemaContext.cs
- ProcessHostServerConfig.cs
- _AutoWebProxyScriptHelper.cs
- GregorianCalendar.cs
- X509ClientCertificateCredentialsElement.cs
- KeyEventArgs.cs
- UnsafeNativeMethods.cs
- DbConnectionClosed.cs
- JoinTreeSlot.cs
- StringReader.cs
- PkcsUtils.cs
- WmfPlaceableFileHeader.cs
- WorkerRequest.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ExtenderHelpers.cs
- WindowsUpDown.cs
- EntityDescriptor.cs
- ActivationArguments.cs
- Visual3D.cs
- SiteMembershipCondition.cs
- ComboBoxRenderer.cs
- BufferCache.cs
- StateMachine.cs
- DataGridViewAccessibleObject.cs
- MouseGestureValueSerializer.cs
- XmlDocumentSerializer.cs
- SignatureToken.cs
- WsdlInspector.cs
- AnnotationService.cs
- ObjectItemNoOpAssemblyLoader.cs
- InstanceCreationEditor.cs
- ListViewDataItem.cs
- followingquery.cs
- HandlerBase.cs
- SmiEventStream.cs
- MailBnfHelper.cs
- HMACSHA512.cs
- DataViewListener.cs
- ExpandCollapseProviderWrapper.cs
- EventSinkActivityDesigner.cs
- ProviderSettingsCollection.cs
- CompositeDispatchFormatter.cs
- Operand.cs
- Rotation3DAnimationUsingKeyFrames.cs
- BitmapEffectOutputConnector.cs
- ValueHandle.cs
- CodeVariableDeclarationStatement.cs
- recordstate.cs
- InputChannel.cs
- DataObjectAttribute.cs
- RuleAttributes.cs
- Expander.cs
- Timeline.cs
- Task.cs
- EntityDataSourceSelectingEventArgs.cs
- EventItfInfo.cs
- ResourcesBuildProvider.cs
- SerializationInfoEnumerator.cs
- EndpointReference.cs
- newinstructionaction.cs
- _SSPISessionCache.cs
- IndexedSelectQueryOperator.cs
- KeyEventArgs.cs
- While.cs
- TraceContextRecord.cs
- TextRangeBase.cs
- ExpandCollapsePattern.cs
- AsyncContentLoadedEventArgs.cs
- OleDbParameterCollection.cs
- ProtectedProviderSettings.cs
- DataSvcMapFile.cs
- Accessible.cs
- documentsequencetextpointer.cs
- MessageDecoder.cs
- LocalizableResourceBuilder.cs
- GridViewHeaderRowPresenter.cs
- FigureParaClient.cs
- FormViewActionList.cs