Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- COM2ExtendedBrowsingHandler.cs
- DbProviderFactoriesConfigurationHandler.cs
- ConnectAlgorithms.cs
- ConfigurationElementProperty.cs
- Visual.cs
- ConnectionPoint.cs
- StructuralCache.cs
- CommunicationObjectAbortedException.cs
- FixedDocument.cs
- WebServiceHostFactory.cs
- XDRSchema.cs
- ResourceManagerWrapper.cs
- Shape.cs
- dbdatarecord.cs
- Command.cs
- ToolboxItemCollection.cs
- RectKeyFrameCollection.cs
- StorageBasedPackageProperties.cs
- PropertyNames.cs
- HtmlAnchor.cs
- RemotingServices.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- GB18030Encoding.cs
- StringSorter.cs
- EventHandlers.cs
- EventLogReader.cs
- Help.cs
- AppDomainAttributes.cs
- TakeOrSkipWhileQueryOperator.cs
- base64Transforms.cs
- XpsDigitalSignature.cs
- OutputCacheModule.cs
- CancelEventArgs.cs
- GridViewUpdatedEventArgs.cs
- GraphicsState.cs
- SecurityRuntime.cs
- ExpressionHelper.cs
- UIElement.cs
- DataGridViewRowPostPaintEventArgs.cs
- PropertyDescriptorCollection.cs
- DataGridViewImageColumn.cs
- NameValuePair.cs
- JsonSerializer.cs
- DesignerSerializationOptionsAttribute.cs
- OdbcDataReader.cs
- precedingquery.cs
- Ppl.cs
- FontUnitConverter.cs
- CompositeCollection.cs
- ClientEventManager.cs
- VisualProxy.cs
- ViewStateModeByIdAttribute.cs
- SynchronizedDisposablePool.cs
- ObjectQuery_EntitySqlExtensions.cs
- MouseGesture.cs
- HttpResponseHeader.cs
- log.cs
- NestedContainer.cs
- QuaternionAnimation.cs
- OleDbDataAdapter.cs
- DebugView.cs
- ZipIOCentralDirectoryBlock.cs
- SrgsGrammarCompiler.cs
- HtmlShimManager.cs
- MgmtConfigurationRecord.cs
- ToolStripDesignerUtils.cs
- AutoResetEvent.cs
- DrawingGroup.cs
- InProcStateClientManager.cs
- QilParameter.cs
- InvalidPipelineStoreException.cs
- HiddenFieldPageStatePersister.cs
- TextServicesHost.cs
- WebSysDefaultValueAttribute.cs
- CachingHintValidation.cs
- ControlParameter.cs
- FileEnumerator.cs
- ColorTransformHelper.cs
- FontWeight.cs
- Transform3D.cs
- EventDriven.cs
- BuildResult.cs
- Cast.cs
- StringAttributeCollection.cs
- XMLSyntaxException.cs
- WebPartManagerInternals.cs
- DataPointer.cs
- InstalledFontCollection.cs
- AmbiguousMatchException.cs
- PrimitiveType.cs
- PropertyNames.cs
- DataListCommandEventArgs.cs
- Matrix.cs
- HttpRequestContext.cs
- StateElement.cs
- SplitterEvent.cs
- mongolianshape.cs
- Parameter.cs
- SingleObjectCollection.cs
- RealizationContext.cs