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
- StructuralType.cs
- BehaviorEditorPart.cs
- Empty.cs
- PageWrapper.cs
- MorphHelpers.cs
- UxThemeWrapper.cs
- ScriptReferenceEventArgs.cs
- SelectedGridItemChangedEvent.cs
- OleDbEnumerator.cs
- GetResponse.cs
- OpenTypeLayoutCache.cs
- DataGridViewTextBoxColumn.cs
- coordinator.cs
- RuleConditionDialog.Designer.cs
- WebPartCatalogCloseVerb.cs
- SessionIDManager.cs
- XmlSchemaSimpleTypeUnion.cs
- Switch.cs
- OleDbTransaction.cs
- ToolboxItem.cs
- BuildProvidersCompiler.cs
- BuildProvider.cs
- WebServiceHostFactory.cs
- ComponentChangedEvent.cs
- Registry.cs
- TextStore.cs
- SolidColorBrush.cs
- ChineseLunisolarCalendar.cs
- TextAutomationPeer.cs
- Storyboard.cs
- AuthenticationServiceManager.cs
- ListViewItemMouseHoverEvent.cs
- SchemaInfo.cs
- HelpKeywordAttribute.cs
- GZipStream.cs
- Stroke.cs
- mansign.cs
- QuaternionValueSerializer.cs
- ReflectionTypeLoadException.cs
- ControlCachePolicy.cs
- TreeNodeBindingDepthConverter.cs
- CorrelationQueryBehavior.cs
- EmptyEnumerator.cs
- ServiceDescriptionReflector.cs
- RoleManagerSection.cs
- Mutex.cs
- ActiveXHelper.cs
- EffectiveValueEntry.cs
- _Connection.cs
- NotifyInputEventArgs.cs
- PkcsMisc.cs
- graph.cs
- SqlResolver.cs
- RuntimeHandles.cs
- TreeViewEvent.cs
- Int16Converter.cs
- TemplateField.cs
- ComponentDispatcher.cs
- SQLSingleStorage.cs
- Filter.cs
- ClientData.cs
- DataControlFieldHeaderCell.cs
- TransactionInformation.cs
- EdmTypeAttribute.cs
- Bits.cs
- CompilationLock.cs
- QueuePathDialog.cs
- StreamMarshaler.cs
- HashRepartitionStream.cs
- ComboBox.cs
- SessionStateContainer.cs
- AddInSegmentDirectoryNotFoundException.cs
- CaseInsensitiveComparer.cs
- TextWriter.cs
- MouseActionConverter.cs
- SelectionRange.cs
- CodeAssignStatement.cs
- DefaultBindingPropertyAttribute.cs
- ReaderContextStackData.cs
- Utilities.cs
- WorkflowMarkupSerializationException.cs
- XmlSchemaSubstitutionGroup.cs
- CountAggregationOperator.cs
- AmbientValueAttribute.cs
- BeginEvent.cs
- ECDiffieHellmanCng.cs
- MetadataLocation.cs
- InfoCardX509Validator.cs
- Main.cs
- BamlReader.cs
- ISAPIRuntime.cs
- DummyDataSource.cs
- IndexedSelectQueryOperator.cs
- SudsParser.cs
- Bits.cs
- DbException.cs
- TiffBitmapEncoder.cs
- FileStream.cs
- TextDecoration.cs
- XhtmlBasicCommandAdapter.cs