Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextOutput.cs / 1 / TextOutput.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.IO; using System.Xml; using System.Xml.XPath; using System.Text; internal class TextOutput : SequentialOutput { private TextWriter writer; internal TextOutput(Processor processor, Stream stream) : base(processor) { if (stream == null) { throw new ArgumentNullException("stream"); } this.encoding = processor.Output.Encoding; this.writer = new StreamWriter(stream, this.encoding); } internal TextOutput(Processor processor, TextWriter writer) : base(processor) { if (writer == null) { throw new ArgumentNullException("writer"); } this.encoding = writer.Encoding; this.writer = writer; } internal override void Write(char outputChar) { this.writer.Write(outputChar); } internal override void Write(string outputText) { this.writer.Write(outputText); } internal override void Close() { this.writer.Flush(); this.writer = null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.IO; using System.Xml; using System.Xml.XPath; using System.Text; internal class TextOutput : SequentialOutput { private TextWriter writer; internal TextOutput(Processor processor, Stream stream) : base(processor) { if (stream == null) { throw new ArgumentNullException("stream"); } this.encoding = processor.Output.Encoding; this.writer = new StreamWriter(stream, this.encoding); } internal TextOutput(Processor processor, TextWriter writer) : base(processor) { if (writer == null) { throw new ArgumentNullException("writer"); } this.encoding = writer.Encoding; this.writer = writer; } internal override void Write(char outputChar) { this.writer.Write(outputChar); } internal override void Write(string outputText) { this.writer.Write(outputText); } internal override void Close() { this.writer.Flush(); this.writer = null; } } } // 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
- ObjectDataSourceView.cs
- TextElementEnumerator.cs
- ImageMap.cs
- FilterUserControlBase.cs
- CfgParser.cs
- StateItem.cs
- BatchStream.cs
- EndpointNotFoundException.cs
- TdsParserSessionPool.cs
- CommonProperties.cs
- RegisteredExpandoAttribute.cs
- FormsAuthenticationUser.cs
- Context.cs
- CellQuery.cs
- AssemblyHash.cs
- SQLByte.cs
- ListMarkerSourceInfo.cs
- FormViewInsertedEventArgs.cs
- RemoteWebConfigurationHost.cs
- ProgramPublisher.cs
- SubpageParagraph.cs
- ADMembershipUser.cs
- SwitchDesigner.xaml.cs
- LayoutUtils.cs
- TimeoutHelper.cs
- WinFormsSpinner.cs
- SendKeys.cs
- Transactions.cs
- XmlSchemaComplexContentExtension.cs
- SourceChangedEventArgs.cs
- InvalidDataException.cs
- Material.cs
- RuntimeVariablesExpression.cs
- ScriptBehaviorDescriptor.cs
- ProviderConnectionPointCollection.cs
- ObjectDataSourceStatusEventArgs.cs
- ExternalFile.cs
- GroupPartitionExpr.cs
- CopyCodeAction.cs
- Hash.cs
- TypeEnumerableViewSchema.cs
- RulePatternOps.cs
- PrintSchema.cs
- FixedHyperLink.cs
- SecurityRuntime.cs
- ConfigXmlText.cs
- ObjectDataSourceSelectingEventArgs.cs
- HttpCachePolicy.cs
- BasicViewGenerator.cs
- ApplicationActivator.cs
- EncryptedPackage.cs
- ArrayElementGridEntry.cs
- Persist.cs
- ConsoleCancelEventArgs.cs
- SymbolUsageManager.cs
- DocumentSchemaValidator.cs
- WebPartConnectionsConfigureVerb.cs
- BamlTreeNode.cs
- ObjectListFieldCollection.cs
- BroadcastEventHelper.cs
- String.cs
- Marshal.cs
- SqlInternalConnectionTds.cs
- PathSegment.cs
- ReturnType.cs
- FillBehavior.cs
- HostAdapter.cs
- Matrix3DStack.cs
- BitmapEffectDrawingContextWalker.cs
- MessageContractExporter.cs
- WindowsTooltip.cs
- HeaderUtility.cs
- exports.cs
- RenderingBiasValidation.cs
- TableDetailsRow.cs
- DBParameter.cs
- XslAst.cs
- PopupEventArgs.cs
- ComponentSerializationService.cs
- XmlLinkedNode.cs
- InvalidFilterCriteriaException.cs
- MDIControlStrip.cs
- Drawing.cs
- EventsTab.cs
- ParameterToken.cs
- DropShadowBitmapEffect.cs
- ApplicationInfo.cs
- GcSettings.cs
- CookielessData.cs
- EasingQuaternionKeyFrame.cs
- QilExpression.cs
- SafeHandles.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- CodeTypeParameter.cs
- CodeCatchClause.cs
- InputMethodStateChangeEventArgs.cs
- RijndaelManagedTransform.cs
- SqlHelper.cs
- MasterPageBuildProvider.cs
- DictionaryItemsCollection.cs