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
- FormViewPagerRow.cs
- coordinatorscratchpad.cs
- EncodingTable.cs
- DSASignatureFormatter.cs
- InlineUIContainer.cs
- XmlNodeList.cs
- LabelAutomationPeer.cs
- XmlWriterSettings.cs
- HtmlInputSubmit.cs
- Monitor.cs
- FixedTextSelectionProcessor.cs
- Bidi.cs
- RenderingEventArgs.cs
- PageBuildProvider.cs
- GenerateHelper.cs
- PartialCachingAttribute.cs
- Math.cs
- ImmComposition.cs
- DoubleMinMaxAggregationOperator.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- WebPartVerb.cs
- BatchServiceHost.cs
- CodeTypeParameter.cs
- LineSegment.cs
- PackageDigitalSignature.cs
- OrderByQueryOptionExpression.cs
- Margins.cs
- WeakReference.cs
- SchemaManager.cs
- ConnectionManagementElementCollection.cs
- CryptoKeySecurity.cs
- UriTemplateClientFormatter.cs
- ProtocolProfile.cs
- ThicknessAnimation.cs
- WebBrowserNavigatingEventHandler.cs
- CultureInfoConverter.cs
- ProxyBuilder.cs
- TextServicesCompartment.cs
- ToolStrip.cs
- WindowsTab.cs
- DesignDataSource.cs
- RootBrowserWindowProxy.cs
- Model3D.cs
- OperationResponse.cs
- RectAnimation.cs
- WindowsEditBoxRange.cs
- AbstractSvcMapFileLoader.cs
- GroupByExpressionRewriter.cs
- GraphicsContext.cs
- ToolStripDropDownMenu.cs
- DoubleAnimationClockResource.cs
- WinEventQueueItem.cs
- QilChoice.cs
- EventLogTraceListener.cs
- UITypeEditor.cs
- ObjectListGeneralPage.cs
- BamlReader.cs
- BufferedStream.cs
- BigInt.cs
- SubqueryRules.cs
- ContentTextAutomationPeer.cs
- BinaryMethodMessage.cs
- ClassHandlersStore.cs
- StreamInfo.cs
- Overlapped.cs
- Menu.cs
- StringUtil.cs
- ListCommandEventArgs.cs
- tibetanshape.cs
- TextParagraphView.cs
- MenuItem.cs
- DataRowView.cs
- RemoteWebConfigurationHostServer.cs
- LicenseManager.cs
- SqlProfileProvider.cs
- ObjectSerializerFactory.cs
- CommonGetThemePartSize.cs
- InkPresenterAutomationPeer.cs
- xamlnodes.cs
- TraceHandler.cs
- EntityDescriptor.cs
- NameValueConfigurationCollection.cs
- OleDbConnectionFactory.cs
- TimelineClockCollection.cs
- ApplyImportsAction.cs
- ContentWrapperAttribute.cs
- ProcessRequestArgs.cs
- SecurityToken.cs
- PtsHost.cs
- AutoGeneratedFieldProperties.cs
- EntityKey.cs
- CancellationState.cs
- MimeObjectFactory.cs
- FlowDocumentPaginator.cs
- IPEndPointCollection.cs
- CheckBoxPopupAdapter.cs
- FixedSchema.cs
- HostingEnvironmentWrapper.cs
- BuildProviderInstallComponent.cs
- TextTreeText.cs