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
- RowVisual.cs
- KerberosTicketHashIdentifierClause.cs
- XmlArrayItemAttribute.cs
- SemanticResolver.cs
- FormsAuthenticationCredentials.cs
- ModelUIElement3D.cs
- RijndaelManagedTransform.cs
- CompareInfo.cs
- DictionaryBase.cs
- JoinTreeSlot.cs
- FixedStringLookup.cs
- SpStreamWrapper.cs
- DataRelation.cs
- MessageQueuePermission.cs
- PerspectiveCamera.cs
- TraceSwitch.cs
- SettingsAttributeDictionary.cs
- HostProtectionPermission.cs
- DataComponentNameHandler.cs
- DeclarativeCatalogPart.cs
- ConnectionStringEditor.cs
- NotCondition.cs
- HtmlInputFile.cs
- _NestedMultipleAsyncResult.cs
- ManagedCodeMarkers.cs
- EventProviderWriter.cs
- MarshalByRefObject.cs
- OdbcConnectionHandle.cs
- _ConnectionGroup.cs
- DynamicQueryableWrapper.cs
- FormViewDeletedEventArgs.cs
- SessionPageStatePersister.cs
- ViewManager.cs
- ScaleTransform.cs
- SchemaConstraints.cs
- CheckoutException.cs
- _BaseOverlappedAsyncResult.cs
- TrackingRecord.cs
- WSMessageEncoding.cs
- AutoResetEvent.cs
- Byte.cs
- SafeNativeMethods.cs
- SizeFConverter.cs
- TraceSection.cs
- TypeAccessException.cs
- WebService.cs
- PackWebRequestFactory.cs
- DataErrorValidationRule.cs
- NoneExcludedImageIndexConverter.cs
- SecurityTokenAuthenticator.cs
- JsonDataContract.cs
- InternalException.cs
- SemanticBasicElement.cs
- DbConnectionPoolIdentity.cs
- VectorConverter.cs
- EventMappingSettingsCollection.cs
- webproxy.cs
- ImageConverter.cs
- MsmqProcessProtocolHandler.cs
- ViewBase.cs
- XPathNodeHelper.cs
- SecurityDocument.cs
- BooleanFacetDescriptionElement.cs
- OuterGlowBitmapEffect.cs
- OverrideMode.cs
- HttpChannelBindingToken.cs
- StringInfo.cs
- FixedPageStructure.cs
- MessageDroppedTraceRecord.cs
- BufferBuilder.cs
- Base64Stream.cs
- OciEnlistContext.cs
- Vector3DCollectionValueSerializer.cs
- CompositeFontFamily.cs
- RemotingException.cs
- WeakReferenceKey.cs
- EntityConnectionStringBuilderItem.cs
- XpsPackagingPolicy.cs
- _SSPIWrapper.cs
- CatalogPartChrome.cs
- DocumentEventArgs.cs
- StreamingContext.cs
- SqlTransaction.cs
- XamlToRtfParser.cs
- XmlSignatureProperties.cs
- NativeActivityAbortContext.cs
- ChangeDirector.cs
- EntityCollection.cs
- ConnectionOrientedTransportChannelFactory.cs
- ExpressionBindingsDialog.cs
- WebReferencesBuildProvider.cs
- EasingKeyFrames.cs
- Vector.cs
- GradientBrush.cs
- XmlKeywords.cs
- MouseGesture.cs
- CommonDialog.cs
- DateTimeOffsetAdapter.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- UpdateExpressionVisitor.cs