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
- COSERVERINFO.cs
- MetadataSource.cs
- ClientTargetSection.cs
- Brush.cs
- WsdlBuildProvider.cs
- XmlBufferedByteStreamReader.cs
- HttpCapabilitiesBase.cs
- VsPropertyGrid.cs
- Profiler.cs
- TreeViewHitTestInfo.cs
- RemotingClientProxy.cs
- CompositeDispatchFormatter.cs
- DataServiceHost.cs
- wmiprovider.cs
- GlobalizationSection.cs
- SpeechRecognizer.cs
- Viewport3DVisual.cs
- BitSet.cs
- OpCopier.cs
- ExpressionPrefixAttribute.cs
- HtmlPageAdapter.cs
- RewritingProcessor.cs
- FormCollection.cs
- Brush.cs
- SignatureHelper.cs
- HitTestParameters.cs
- Button.cs
- ListViewInsertEventArgs.cs
- PageStatePersister.cs
- HttpProfileGroupBase.cs
- CommonObjectSecurity.cs
- KnownTypes.cs
- XamlPointCollectionSerializer.cs
- ServerTooBusyException.cs
- Queue.cs
- EmptyElement.cs
- DesignBindingEditor.cs
- SslSecurityTokenParameters.cs
- XmlTextReaderImplHelpers.cs
- COM2ExtendedUITypeEditor.cs
- MiniLockedBorderGlyph.cs
- WebPartHelpVerb.cs
- _Win32.cs
- BitConverter.cs
- StringSource.cs
- NullableLongAverageAggregationOperator.cs
- SBCSCodePageEncoding.cs
- EventNotify.cs
- MembershipUser.cs
- RootProfilePropertySettingsCollection.cs
- CreateWorkflowOwnerCommand.cs
- GeneralTransform.cs
- RotateTransform3D.cs
- FileSystemInfo.cs
- ButtonBase.cs
- ErrorHandlerModule.cs
- ComponentResourceKeyConverter.cs
- ConfigXmlSignificantWhitespace.cs
- ExpanderAutomationPeer.cs
- SynchronizingStream.cs
- HighlightComponent.cs
- ColorAnimationBase.cs
- TextElementEnumerator.cs
- ComplexTypeEmitter.cs
- Message.cs
- Exception.cs
- MetadataArtifactLoaderComposite.cs
- NameObjectCollectionBase.cs
- InstanceCreationEditor.cs
- DataGridTableCollection.cs
- RuntimeDelegateArgument.cs
- Sql8ConformanceChecker.cs
- HyperLinkField.cs
- ArrayItemReference.cs
- DuplexChannelFactory.cs
- PresentationAppDomainManager.cs
- DefaultValueConverter.cs
- ToolStripPanelRow.cs
- MsdtcWrapper.cs
- XpsResourcePolicy.cs
- XmlCustomFormatter.cs
- ObjectAnimationUsingKeyFrames.cs
- SecurityRuntime.cs
- GroupBoxRenderer.cs
- TransformedBitmap.cs
- validation.cs
- BitStream.cs
- CLRBindingWorker.cs
- TableLayoutStyleCollection.cs
- Unit.cs
- invalidudtexception.cs
- SplashScreenNativeMethods.cs
- Byte.cs
- SqlClientPermission.cs
- ProfileService.cs
- GridEntryCollection.cs
- CodeTypeMember.cs
- AnyAllSearchOperator.cs
- SystemIcmpV6Statistics.cs
- ValidationResult.cs