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
- DataGridViewColumnCollection.cs
- DES.cs
- ComponentCollection.cs
- PresentationTraceSources.cs
- Events.cs
- SaveFileDialog.cs
- EditorAttribute.cs
- Effect.cs
- SignedXmlDebugLog.cs
- MediaCommands.cs
- StorageRoot.cs
- BaseComponentEditor.cs
- MappingModelBuildProvider.cs
- XmlNamespaceDeclarationsAttribute.cs
- ChtmlFormAdapter.cs
- CompositeScriptReferenceEventArgs.cs
- PerformanceCounterCategory.cs
- ButtonAutomationPeer.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- CodeDefaultValueExpression.cs
- MatrixAnimationUsingKeyFrames.cs
- XmlArrayItemAttribute.cs
- ArrayConverter.cs
- ConcurrentQueue.cs
- LineVisual.cs
- Visual3D.cs
- XmlBindingWorker.cs
- TextElementEditingBehaviorAttribute.cs
- NetPipeSection.cs
- FrugalMap.cs
- SaveFileDialogDesigner.cs
- MissingManifestResourceException.cs
- TraceUtils.cs
- NTAccount.cs
- ListChangedEventArgs.cs
- GZipUtils.cs
- listitem.cs
- AuthenticationModuleElementCollection.cs
- TypeKeyValue.cs
- WindowsSolidBrush.cs
- WindowHelperService.cs
- DesignerDataTable.cs
- BitmapImage.cs
- MultitargetUtil.cs
- StreamInfo.cs
- Guid.cs
- RequiredAttributeAttribute.cs
- MarginCollapsingState.cs
- EngineSite.cs
- StringExpressionSet.cs
- ZipIOExtraFieldZip64Element.cs
- PreProcessor.cs
- ListBoxChrome.cs
- BStrWrapper.cs
- StylusPointPropertyId.cs
- MediaSystem.cs
- IndexedEnumerable.cs
- Literal.cs
- BamlRecordReader.cs
- ExpressionLink.cs
- Point4D.cs
- XMLSyntaxException.cs
- TypeTypeConverter.cs
- BindValidator.cs
- ScrollChrome.cs
- XmlDictionaryReaderQuotas.cs
- XmlDataSource.cs
- TraceContextEventArgs.cs
- CheckoutException.cs
- CustomErrorCollection.cs
- SelectionProcessor.cs
- Converter.cs
- CSharpCodeProvider.cs
- CalendarAutoFormat.cs
- DrawingAttributesDefaultValueFactory.cs
- KeyManager.cs
- SqlXml.cs
- DataGridViewCell.cs
- PenContext.cs
- WebPartMinimizeVerb.cs
- TextDecoration.cs
- Int32EqualityComparer.cs
- MenuItemBinding.cs
- SafeFileMappingHandle.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- FormViewActionList.cs
- Maps.cs
- TransportChannelFactory.cs
- AppDomain.cs
- HttpModule.cs
- ResourceWriter.cs
- Helpers.cs
- ControlEvent.cs
- SmtpFailedRecipientException.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DataServiceHostFactory.cs
- MultiPropertyDescriptorGridEntry.cs
- HostingPreferredMapPath.cs
- GradientStop.cs
- ColorContextHelper.cs