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
- JapaneseLunisolarCalendar.cs
- MenuCommand.cs
- ISFTagAndGuidCache.cs
- SamlSubject.cs
- ScriptResourceMapping.cs
- CryptoProvider.cs
- ToolStripControlHost.cs
- TemplateFactory.cs
- RemoteWebConfigurationHost.cs
- ContentDisposition.cs
- ZipIOBlockManager.cs
- BatchServiceHost.cs
- Win32Exception.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- DivideByZeroException.cs
- Scene3D.cs
- ParseNumbers.cs
- BindingSource.cs
- ActivationServices.cs
- DesignerDataView.cs
- MulticastOption.cs
- ProviderConnectionPointCollection.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- Inline.cs
- WSDualHttpSecurity.cs
- PeerNameRecordCollection.cs
- XPathConvert.cs
- TouchPoint.cs
- PersonalizationEntry.cs
- TextFormatterImp.cs
- PopupEventArgs.cs
- DCSafeHandle.cs
- CommandConverter.cs
- DefaultBindingPropertyAttribute.cs
- EventProviderBase.cs
- PenCursorManager.cs
- ViewStateException.cs
- CustomAttributeFormatException.cs
- WpfPayload.cs
- UnsafeNativeMethods.cs
- Int64KeyFrameCollection.cs
- SqlConnectionFactory.cs
- StorageSetMapping.cs
- keycontainerpermission.cs
- EventLogInformation.cs
- SqlMethodCallConverter.cs
- AutomationAttributeInfo.cs
- EntityContainerAssociationSet.cs
- RightNameExpirationInfoPair.cs
- BindingUtils.cs
- DataGridColumnCollection.cs
- ActiveXHelper.cs
- GridViewRowCollection.cs
- KeyedHashAlgorithm.cs
- ScrollViewerAutomationPeer.cs
- SimpleMailWebEventProvider.cs
- EventDescriptorCollection.cs
- TargetPerspective.cs
- PropertiesTab.cs
- ServiceMetadataContractBehavior.cs
- RelOps.cs
- SchemaMapping.cs
- ScriptResourceDefinition.cs
- AutomationElement.cs
- WindowsAuthenticationEventArgs.cs
- IriParsingElement.cs
- XsltConvert.cs
- WebHttpSecurityModeHelper.cs
- UpdateCompiler.cs
- PermissionListSet.cs
- BitmapImage.cs
- PropagatorResult.cs
- PolyBezierSegment.cs
- AffineTransform3D.cs
- TailCallAnalyzer.cs
- DocumentXmlWriter.cs
- Triplet.cs
- CachedPathData.cs
- webclient.cs
- MasterPageParser.cs
- SignatureToken.cs
- ConditionalBranch.cs
- DispatcherExceptionFilterEventArgs.cs
- _SslState.cs
- SqlUserDefinedAggregateAttribute.cs
- SafeFindHandle.cs
- MetadataArtifactLoaderCompositeFile.cs
- TrustLevelCollection.cs
- XsdBuilder.cs
- TemplateNodeContextMenu.cs
- X509Extension.cs
- HostedElements.cs
- SByteStorage.cs
- LocalizabilityAttribute.cs
- MediaScriptCommandRoutedEventArgs.cs
- HelloMessageApril2005.cs
- CountAggregationOperator.cs
- ContextStack.cs
- ConsoleTraceListener.cs
- ByteStream.cs