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
- WindowVisualStateTracker.cs
- DateBoldEvent.cs
- MessageSecurityVersion.cs
- SchemaObjectWriter.cs
- _ListenerRequestStream.cs
- XmlResolver.cs
- DocumentApplicationJournalEntry.cs
- X509Utils.cs
- GlobalItem.cs
- CodeStatementCollection.cs
- TcpStreams.cs
- BasicKeyConstraint.cs
- RtfToXamlReader.cs
- DocumentViewerAutomationPeer.cs
- IntSecurity.cs
- SqlXmlStorage.cs
- HWStack.cs
- CodeExpressionStatement.cs
- C14NUtil.cs
- BrushConverter.cs
- Converter.cs
- Inflater.cs
- ArrayTypeMismatchException.cs
- CalendarDateRange.cs
- MergePropertyDescriptor.cs
- QueryTask.cs
- ListCommandEventArgs.cs
- XmlILOptimizerVisitor.cs
- AutomationPropertyInfo.cs
- SinglePageViewer.cs
- TextTreeText.cs
- StringToken.cs
- StylusEditingBehavior.cs
- CodeArrayCreateExpression.cs
- IpcManager.cs
- PlanCompilerUtil.cs
- DataSourceView.cs
- TrustLevelCollection.cs
- NamespaceQuery.cs
- unitconverter.cs
- DrawingCollection.cs
- NextPreviousPagerField.cs
- DbProviderServices.cs
- ContextMarshalException.cs
- LocalBuilder.cs
- EllipseGeometry.cs
- TextEditorTables.cs
- PropertyAccessVisitor.cs
- FtpWebRequest.cs
- List.cs
- XmlDocumentFieldSchema.cs
- AspCompat.cs
- ParagraphResult.cs
- XmlSignificantWhitespace.cs
- SmiEventSink_Default.cs
- ManualWorkflowSchedulerService.cs
- CodeNamespaceImport.cs
- MailMessageEventArgs.cs
- OdbcUtils.cs
- AsyncOperation.cs
- ApplicationFileParser.cs
- Array.cs
- CssClassPropertyAttribute.cs
- NullableDecimalAverageAggregationOperator.cs
- ReferentialConstraint.cs
- StatusBarItem.cs
- ExpressionLexer.cs
- XmlTextReader.cs
- Line.cs
- XamlToRtfParser.cs
- CLSCompliantAttribute.cs
- SuppressMergeCheckAttribute.cs
- AspNetSynchronizationContext.cs
- LinkedList.cs
- ComboBoxAutomationPeer.cs
- SQLDecimalStorage.cs
- RootNamespaceAttribute.cs
- WebZone.cs
- AlignmentXValidation.cs
- Table.cs
- XDRSchema.cs
- DataGridColumnDropSeparator.cs
- SiteMapDataSource.cs
- TextInfo.cs
- updateconfighost.cs
- ContextItemManager.cs
- OperationCanceledException.cs
- WindowsScrollBar.cs
- ToolStripGrip.cs
- PeerOutputChannel.cs
- Compensate.cs
- ellipse.cs
- CollectionBuilder.cs
- StyleSheetDesigner.cs
- RectAnimationBase.cs
- PrePrepareMethodAttribute.cs
- IDispatchConstantAttribute.cs
- AsyncResult.cs
- PathSegmentCollection.cs
- GrammarBuilderDictation.cs