Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / whidbey / QFE / 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 ( 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. //------------------------------------------------------------------------------ //// 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 ( 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RootBuilder.cs
- CompressedStack.cs
- PerformanceCounterLib.cs
- Asn1IntegerConverter.cs
- ArgIterator.cs
- XPathQueryGenerator.cs
- PagerStyle.cs
- SettingsPropertyIsReadOnlyException.cs
- StorageEndPropertyMapping.cs
- ForwardPositionQuery.cs
- PropertyGridView.cs
- ValidatingReaderNodeData.cs
- FieldNameLookup.cs
- EventItfInfo.cs
- InstallerTypeAttribute.cs
- RequestQueryProcessor.cs
- CanonicalFontFamilyReference.cs
- RemoteWebConfigurationHostServer.cs
- ValidatedControlConverter.cs
- XmlChildEnumerator.cs
- ScriptReference.cs
- CompositeActivityTypeDescriptorProvider.cs
- XhtmlBasicTextViewAdapter.cs
- RootProjectionNode.cs
- SettingsProperty.cs
- Region.cs
- TcpConnectionPool.cs
- ResourceReader.cs
- PrincipalPermissionMode.cs
- ResolveDuplexAsyncResult.cs
- AudienceUriMode.cs
- TimeStampChecker.cs
- XsdBuilder.cs
- AsymmetricSignatureFormatter.cs
- SpellerInterop.cs
- EntityStoreSchemaFilterEntry.cs
- TextElementEnumerator.cs
- BaseDataListActionList.cs
- Blend.cs
- PenThreadWorker.cs
- SizeLimitedCache.cs
- XmlStreamStore.cs
- SuppressIldasmAttribute.cs
- Encoder.cs
- IdentityModelDictionary.cs
- BooleanProjectedSlot.cs
- GuidConverter.cs
- ValueExpressions.cs
- OperatingSystem.cs
- ProcessHost.cs
- PrincipalPermission.cs
- EncodingTable.cs
- DataGridViewComboBoxColumn.cs
- PaintEvent.cs
- DownloadProgressEventArgs.cs
- Rfc2898DeriveBytes.cs
- DependencyPropertyKey.cs
- StringSorter.cs
- CodeLinePragma.cs
- ProtocolsConfigurationHandler.cs
- SymmetricSecurityProtocolFactory.cs
- LayoutTable.cs
- SqlUDTStorage.cs
- FileDialog.cs
- SchemaDeclBase.cs
- Accessible.cs
- ApplicationContext.cs
- Win32.cs
- WorkflowApplicationIdleEventArgs.cs
- PagePropertiesChangingEventArgs.cs
- TryCatch.cs
- ReferenceService.cs
- ConditionChanges.cs
- DrawListViewColumnHeaderEventArgs.cs
- _NetRes.cs
- DoubleKeyFrameCollection.cs
- Point4DValueSerializer.cs
- ImageSourceConverter.cs
- GACMembershipCondition.cs
- DataControlButton.cs
- FontFamilyConverter.cs
- ScriptingRoleServiceSection.cs
- PasswordDeriveBytes.cs
- TwoPhaseCommit.cs
- CollectionBuilder.cs
- CodeLabeledStatement.cs
- NamespaceDecl.cs
- SessionEndedEventArgs.cs
- MaterializeFromAtom.cs
- XslAst.cs
- StateMachineWorkflow.cs
- FrameworkElementAutomationPeer.cs
- XPathBinder.cs
- EncryptedHeader.cs
- ParseElement.cs
- ProviderCommandInfoUtils.cs
- SHA384CryptoServiceProvider.cs
- MessageBodyMemberAttribute.cs
- XmlSchemaSimpleTypeUnion.cs
- BitmapEffect.cs