Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextOutput.cs / 1305376 / 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
- KeyConverter.cs
- WSTransactionSection.cs
- DiscoveryEndpointValidator.cs
- CompositeDataBoundControl.cs
- ColorAnimation.cs
- TrackBar.cs
- QilFactory.cs
- ExpressionReplacer.cs
- LambdaCompiler.ControlFlow.cs
- IdleTimeoutMonitor.cs
- TranslateTransform.cs
- HttpCookieCollection.cs
- NotifyCollectionChangedEventArgs.cs
- ColumnHeader.cs
- LinearGradientBrush.cs
- DefaultTextStoreTextComposition.cs
- RegisteredHiddenField.cs
- IWorkflowDebuggerService.cs
- EmbeddedObject.cs
- SystemUdpStatistics.cs
- SqlTransaction.cs
- COM2IDispatchConverter.cs
- MatcherBuilder.cs
- PingOptions.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- NumberSubstitution.cs
- TextEditorDragDrop.cs
- UnmanagedMemoryStreamWrapper.cs
- Lookup.cs
- PartialList.cs
- PeerNameRegistration.cs
- MarkupWriter.cs
- FlowDocumentPageViewerAutomationPeer.cs
- Label.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- XPathNode.cs
- wgx_exports.cs
- UserNamePasswordValidator.cs
- EntityKeyElement.cs
- DbMetaDataFactory.cs
- XmlTypeAttribute.cs
- MessageQuerySet.cs
- CheckBoxFlatAdapter.cs
- StatusBarItemAutomationPeer.cs
- FileSecurity.cs
- PropertyIDSet.cs
- FormatVersion.cs
- FigureParagraph.cs
- BitmapFrameEncode.cs
- XPathQueryGenerator.cs
- ElementInit.cs
- SchemaInfo.cs
- Parallel.cs
- StateDesigner.CommentLayoutGlyph.cs
- QueryCacheEntry.cs
- VectorCollectionValueSerializer.cs
- EventLogPermissionEntryCollection.cs
- ListViewItem.cs
- OdbcErrorCollection.cs
- DocobjHost.cs
- GlyphRunDrawing.cs
- Int32RectValueSerializer.cs
- BrowserDefinition.cs
- Formatter.cs
- SecurityContextSecurityToken.cs
- BlurBitmapEffect.cs
- FontDifferentiator.cs
- ByteStack.cs
- Selector.cs
- DataSourceControl.cs
- PropertyPathWorker.cs
- SectionVisual.cs
- ToolStripTemplateNode.cs
- Pair.cs
- Function.cs
- FixedSOMTextRun.cs
- Tag.cs
- Binding.cs
- PrimitiveCodeDomSerializer.cs
- FolderLevelBuildProviderCollection.cs
- XmlBindingWorker.cs
- ScrollItemProviderWrapper.cs
- ResourcePart.cs
- InstanceCompleteException.cs
- ObfuscationAttribute.cs
- HttpDebugHandler.cs
- XmlCharCheckingWriter.cs
- TableRow.cs
- UseLicense.cs
- SQLDecimalStorage.cs
- PeerTransportBindingElement.cs
- ObjectQuery_EntitySqlExtensions.cs
- DataServiceQueryProvider.cs
- InheritanceAttribute.cs
- HMACMD5.cs
- isolationinterop.cs
- ToolStripContentPanel.cs
- ExpressionServices.cs
- WebDescriptionAttribute.cs
- OdbcEnvironment.cs