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
- ContainerActivationHelper.cs
- TextProperties.cs
- _NegotiateClient.cs
- WizardSideBarListControlItem.cs
- JournalNavigationScope.cs
- LicenseManager.cs
- ListView.cs
- ExpressionBindingCollection.cs
- EditCommandColumn.cs
- ThemeDirectoryCompiler.cs
- OrderablePartitioner.cs
- CollectionEditorDialog.cs
- TraceSwitch.cs
- Tuple.cs
- TreeViewEvent.cs
- EntryIndex.cs
- PartialArray.cs
- XmlSchemaImporter.cs
- URLMembershipCondition.cs
- _emptywebproxy.cs
- XmlWrappingReader.cs
- SQLBoolean.cs
- TreeNodeStyleCollection.cs
- SmtpLoginAuthenticationModule.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridTableCollection.cs
- ContentIterators.cs
- RegistryDataKey.cs
- WebPartMenu.cs
- SerializableAttribute.cs
- XsdBuildProvider.cs
- ClientBuildManager.cs
- PageContentCollection.cs
- NativeWindow.cs
- DesignColumnCollection.cs
- SQLString.cs
- FormattedText.cs
- Freezable.cs
- DocumentApplicationDocumentViewer.cs
- KeyConverter.cs
- AssemblyAttributesGoHere.cs
- Attributes.cs
- OpacityConverter.cs
- SecurityContextKeyIdentifierClause.cs
- LifetimeServices.cs
- CaretElement.cs
- LicenseContext.cs
- SplitterEvent.cs
- EntityDataSourceQueryBuilder.cs
- TimerEventSubscription.cs
- EventSinkActivity.cs
- BrowserDefinition.cs
- DelegateHelpers.cs
- SqlNotificationRequest.cs
- Camera.cs
- XmlSchemaCollection.cs
- Errors.cs
- SystemIPv6InterfaceProperties.cs
- IdnElement.cs
- UriWriter.cs
- ExpressionVisitorHelpers.cs
- ipaddressinformationcollection.cs
- SessionPageStatePersister.cs
- InvalidDocumentContentsException.cs
- DNS.cs
- WsdlBuildProvider.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- XmlSchemas.cs
- ModelVisual3D.cs
- ClientRoleProvider.cs
- OperatingSystem.cs
- ColorDialog.cs
- OutputCacheProfileCollection.cs
- NameValueFileSectionHandler.cs
- Transaction.cs
- VisualStyleRenderer.cs
- XmlAggregates.cs
- ProcessThread.cs
- DebugController.cs
- WeakEventTable.cs
- BypassElementCollection.cs
- Page.cs
- SmtpDigestAuthenticationModule.cs
- ISCIIEncoding.cs
- TypefaceMap.cs
- WorkItem.cs
- PathParser.cs
- ChtmlCalendarAdapter.cs
- _NetRes.cs
- TableDetailsCollection.cs
- SimplePropertyEntry.cs
- SequentialActivityDesigner.cs
- EntityContainerAssociationSet.cs
- RolePrincipal.cs
- HttpCookiesSection.cs
- StructuredTypeInfo.cs
- ResourceAssociationTypeEnd.cs
- FieldNameLookup.cs
- XmlElementList.cs
- CssStyleCollection.cs