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
- Site.cs
- StylusEditingBehavior.cs
- OdbcError.cs
- TemplateComponentConnector.cs
- DataGridTableCollection.cs
- Graphics.cs
- EventTrigger.cs
- Rect.cs
- Misc.cs
- FullTextBreakpoint.cs
- GenericsInstances.cs
- RootBuilder.cs
- OpenTypeLayoutCache.cs
- Shape.cs
- NativeMethods.cs
- CodeExporter.cs
- FacetChecker.cs
- HandleDictionary.cs
- ConstraintConverter.cs
- WorkflowHostingResponseContext.cs
- AnimationClockResource.cs
- LogicalChannel.cs
- MemberPath.cs
- BindingList.cs
- ObjectDataSourceDisposingEventArgs.cs
- BaseAppDomainProtocolHandler.cs
- BitmapDownload.cs
- DataControlFieldCell.cs
- AstTree.cs
- UriSectionData.cs
- DeferredSelectedIndexReference.cs
- LambdaCompiler.Address.cs
- SingleObjectCollection.cs
- RightsManagementPermission.cs
- InputReferenceExpression.cs
- OutOfProcStateClientManager.cs
- BmpBitmapDecoder.cs
- WmfPlaceableFileHeader.cs
- GroupBoxAutomationPeer.cs
- AdRotatorDesigner.cs
- WebConfigurationHost.cs
- MetafileHeader.cs
- HitTestDrawingContextWalker.cs
- TextContainerChangedEventArgs.cs
- TrailingSpaceComparer.cs
- ValidationPropertyAttribute.cs
- MetadataArtifactLoader.cs
- xsdvalidator.cs
- NavigationProperty.cs
- SectionInput.cs
- ActivityBuilderHelper.cs
- SchemaTableColumn.cs
- AutomationPattern.cs
- CommonGetThemePartSize.cs
- MenuEventArgs.cs
- Convert.cs
- QueryStringParameter.cs
- JobDuplex.cs
- CodeNamespaceImportCollection.cs
- SplayTreeNode.cs
- InlineUIContainer.cs
- InvokePattern.cs
- _CommandStream.cs
- WindowsProgressbar.cs
- HtmlFormAdapter.cs
- ScrollPattern.cs
- TraceContext.cs
- FlowDocumentFormatter.cs
- PrintingPermissionAttribute.cs
- RegistryKey.cs
- Bezier.cs
- MatrixCamera.cs
- ChangePassword.cs
- HtmlHead.cs
- LinearKeyFrames.cs
- XmlPreloadedResolver.cs
- MessageQueuePermissionEntryCollection.cs
- PagesChangedEventArgs.cs
- GroupDescription.cs
- QueryContinueDragEvent.cs
- CodeRemoveEventStatement.cs
- HighContrastHelper.cs
- MimeFormatExtensions.cs
- XmlNodeList.cs
- ServiceObjectContainer.cs
- ListSortDescription.cs
- InheritanceAttribute.cs
- XmlSerializerVersionAttribute.cs
- DataSetSchema.cs
- DataGrid.cs
- TypeElement.cs
- OutputCacheProfile.cs
- FrameworkRichTextComposition.cs
- HotSpotCollection.cs
- TextTreeUndoUnit.cs
- IconBitmapDecoder.cs
- TextDecorationUnitValidation.cs
- FormsAuthenticationEventArgs.cs
- SqlConnectionFactory.cs
- FixedSOMGroup.cs