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
- EventLogPermissionEntry.cs
- NetStream.cs
- BuilderInfo.cs
- PostBackOptions.cs
- CodeConditionStatement.cs
- ElementsClipboardData.cs
- PrivateFontCollection.cs
- HTTPNotFoundHandler.cs
- CompositeCollectionView.cs
- MainMenu.cs
- AccessViolationException.cs
- FloaterBaseParagraph.cs
- CodePropertyReferenceExpression.cs
- TagMapInfo.cs
- Pens.cs
- PlacementWorkspace.cs
- cookiecollection.cs
- Tokenizer.cs
- UpdateTracker.cs
- DataGridRowsPresenter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- InheritanceService.cs
- BitArray.cs
- DataGridCheckBoxColumn.cs
- XsdDateTime.cs
- EditModeSwitchButton.cs
- x509store.cs
- basecomparevalidator.cs
- RemotingConfigParser.cs
- DbProviderFactory.cs
- MessageSecurityTokenVersion.cs
- WebPartConnectionsConnectVerb.cs
- Multiply.cs
- LogSwitch.cs
- ListViewItemSelectionChangedEvent.cs
- BinaryConverter.cs
- XmlCharCheckingReader.cs
- PrimitiveList.cs
- ChtmlCommandAdapter.cs
- DynamicMethod.cs
- EdmTypeAttribute.cs
- XmlArrayAttribute.cs
- BufferedReadStream.cs
- PropertyReferenceSerializer.cs
- ZoneIdentityPermission.cs
- FlowDocumentPageViewerAutomationPeer.cs
- AmbientLight.cs
- ObjectViewQueryResultData.cs
- DesignerEditorPartChrome.cs
- JsonServiceDocumentSerializer.cs
- ClientScriptManager.cs
- RelationshipDetailsRow.cs
- ECDiffieHellman.cs
- CookieHandler.cs
- MethodImplAttribute.cs
- GridViewCellAutomationPeer.cs
- Stylesheet.cs
- DesignTimeVisibleAttribute.cs
- CoreSwitches.cs
- ReverseInheritProperty.cs
- InitializationEventAttribute.cs
- ResourceProviderFactory.cs
- DataGridViewCellValidatingEventArgs.cs
- CharConverter.cs
- SQLBinaryStorage.cs
- EventArgs.cs
- ObservableCollection.cs
- xsdvalidator.cs
- CopyNamespacesAction.cs
- PropertySet.cs
- ActivityBindForm.cs
- FontResourceCache.cs
- PrimaryKeyTypeConverter.cs
- DataColumnChangeEvent.cs
- SizeChangedEventArgs.cs
- ToolStripRendererSwitcher.cs
- InkCollectionBehavior.cs
- StringSource.cs
- HtmlElementErrorEventArgs.cs
- RuleSettingsCollection.cs
- DataGridViewHitTestInfo.cs
- EntryPointNotFoundException.cs
- WindowsEditBox.cs
- MemberDomainMap.cs
- ItemDragEvent.cs
- DummyDataSource.cs
- DirtyTextRange.cs
- MenuTracker.cs
- SiteMapNodeItemEventArgs.cs
- DiagnosticTrace.cs
- HtmlElementErrorEventArgs.cs
- ThousandthOfEmRealPoints.cs
- SourceElementsCollection.cs
- TableRow.cs
- ReverseInheritProperty.cs
- FlowDocumentPaginator.cs
- UdpSocket.cs
- DbDataRecord.cs
- ComplexTypeEmitter.cs
- HopperCache.cs