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
- CatalogZoneBase.cs
- LifetimeManager.cs
- AutoGeneratedField.cs
- ReceiveActivity.cs
- FontClient.cs
- AssociatedControlConverter.cs
- NativeMethods.cs
- WindowsContainer.cs
- WhitespaceRule.cs
- StrongNameMembershipCondition.cs
- UIElement3D.cs
- TimeSpan.cs
- HtmlControlPersistable.cs
- UpdatePanelTrigger.cs
- UdpTransportSettingsElement.cs
- PerformanceCounterPermission.cs
- StringArrayConverter.cs
- CompilationUtil.cs
- SQLDoubleStorage.cs
- HttpCookie.cs
- ConfigurationSettings.cs
- X509Extension.cs
- ImmutablePropertyDescriptorGridEntry.cs
- GacUtil.cs
- ActivityIdHeader.cs
- MimeMultiPart.cs
- TextModifierScope.cs
- ControlPaint.cs
- SqlCachedBuffer.cs
- _NativeSSPI.cs
- SessionEndingEventArgs.cs
- RSAPKCS1SignatureDeformatter.cs
- MonikerSyntaxException.cs
- HwndStylusInputProvider.cs
- XmlToDatasetMap.cs
- MetadataSerializer.cs
- Base64Encoder.cs
- NullableFloatSumAggregationOperator.cs
- PDBReader.cs
- StylusCaptureWithinProperty.cs
- TypeElement.cs
- VirtualDirectoryMappingCollection.cs
- IsolatedStorageFilePermission.cs
- Section.cs
- sitestring.cs
- ComplusEndpointConfigContainer.cs
- ApplicationId.cs
- SessionPageStatePersister.cs
- PreservationFileWriter.cs
- XmlSchemaDocumentation.cs
- Clipboard.cs
- Queue.cs
- SessionStateSection.cs
- LoadedOrUnloadedOperation.cs
- MdbDataFileEditor.cs
- LogicalExpr.cs
- Atom10FormatterFactory.cs
- ChannelDispatcher.cs
- DocumentApplicationJournalEntry.cs
- QilSortKey.cs
- EmptyEnumerator.cs
- _SslState.cs
- IPGlobalProperties.cs
- UrlPath.cs
- AdapterDictionary.cs
- PropertyDescriptors.cs
- Bind.cs
- PartManifestEntry.cs
- PEFileReader.cs
- PrintingPermissionAttribute.cs
- DocumentsTrace.cs
- ParentUndoUnit.cs
- TextElementEnumerator.cs
- DataGridViewAutoSizeModeEventArgs.cs
- HtmlImageAdapter.cs
- XmlChoiceIdentifierAttribute.cs
- FileSystemEventArgs.cs
- WindowsImpersonationContext.cs
- WindowsSolidBrush.cs
- StringResourceManager.cs
- CustomErrorCollection.cs
- DefaultPropertyAttribute.cs
- DragSelectionMessageFilter.cs
- Brush.cs
- HTMLTextWriter.cs
- WebPartConnectionsConfigureVerb.cs
- TraceListener.cs
- indexingfiltermarshaler.cs
- BufferedStream.cs
- DesignSurface.cs
- GrammarBuilder.cs
- ErrorInfoXmlDocument.cs
- LoadedOrUnloadedOperation.cs
- XsdDuration.cs
- HyperLinkColumn.cs
- EdmMember.cs
- MethodBody.cs
- ParameterElement.cs
- PerfCounters.cs
- ListViewItemMouseHoverEvent.cs