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
- XhtmlBasicSelectionListAdapter.cs
- ProfileProvider.cs
- WebFormsRootDesigner.cs
- RequestSecurityTokenForGetBrowserToken.cs
- AQNBuilder.cs
- KeyValuePair.cs
- DataGridRow.cs
- Switch.cs
- Schema.cs
- DataGridViewSelectedRowCollection.cs
- FontCacheUtil.cs
- XmlSchemaSimpleType.cs
- ViewLoader.cs
- UdpChannelListener.cs
- DataGridHeaderBorder.cs
- ActivityCodeDomReferenceService.cs
- RenamedEventArgs.cs
- Context.cs
- sqlcontext.cs
- XmlDictionaryWriter.cs
- EntityDataSourceSelectingEventArgs.cs
- CompilationSection.cs
- SqlCacheDependency.cs
- AnnotationHelper.cs
- ForEachAction.cs
- CursorConverter.cs
- CurrentTimeZone.cs
- SourceFileBuildProvider.cs
- OpenFileDialog.cs
- PointCollection.cs
- XmlSchemaImporter.cs
- ReadOnlyDataSourceView.cs
- SamlConditions.cs
- PerformanceCountersBase.cs
- TextTreeDeleteContentUndoUnit.cs
- StringPropertyBuilder.cs
- GroupByExpressionRewriter.cs
- SubclassTypeValidator.cs
- RuntimeCompatibilityAttribute.cs
- ReflectionServiceProvider.cs
- CompiledQuery.cs
- ValidationHelpers.cs
- FrameworkContentElement.cs
- TypeConverterMarkupExtension.cs
- IndexedString.cs
- Operand.cs
- ToolStripPanel.cs
- TransactionProtocol.cs
- MatrixAnimationBase.cs
- PersianCalendar.cs
- documentsequencetextview.cs
- SpeechDetectedEventArgs.cs
- EntityParameter.cs
- SqlBulkCopyColumnMappingCollection.cs
- PtsCache.cs
- BitmapEditor.cs
- ThemeInfoAttribute.cs
- NativeMethods.cs
- MessageFilterException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- HtmlAnchor.cs
- Panel.cs
- RelationshipEntry.cs
- versioninfo.cs
- ControlPropertyNameConverter.cs
- DataContractSerializer.cs
- RuntimeCompatibilityAttribute.cs
- XmlSchemaCompilationSettings.cs
- ImageMetadata.cs
- InOutArgument.cs
- KeyEventArgs.cs
- ProviderUtil.cs
- XmlBinaryReader.cs
- WebPartAddingEventArgs.cs
- TableStyle.cs
- WebRequestModuleElementCollection.cs
- ParsedAttributeCollection.cs
- WizardPanel.cs
- TrackingConditionCollection.cs
- BinaryCommonClasses.cs
- DetailsViewRowCollection.cs
- ExtensionCollection.cs
- Cell.cs
- ComboBox.cs
- CommandTreeTypeHelper.cs
- ExtenderHelpers.cs
- ThreadPool.cs
- ProtectedConfiguration.cs
- loginstatus.cs
- GlyphElement.cs
- serverconfig.cs
- UnitySerializationHolder.cs
- ScrollPattern.cs
- XmlSerializer.cs
- SizeChangedInfo.cs
- SqlCommandSet.cs
- DataColumnMappingCollection.cs
- HostingEnvironment.cs
- OperationPickerDialog.cs
- XPathQilFactory.cs