Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ReadWriteSpinLock.cs
- ResourceContainer.cs
- GenericParameterDataContract.cs
- TemplateApplicationHelper.cs
- AdornedElementPlaceholder.cs
- ListParagraph.cs
- DesignerToolStripControlHost.cs
- UnorderedHashRepartitionStream.cs
- MatrixValueSerializer.cs
- codemethodreferenceexpression.cs
- _SecureChannel.cs
- SqlEnums.cs
- HttpCapabilitiesSectionHandler.cs
- SafeNativeMethods.cs
- WebPartZoneCollection.cs
- QuadraticBezierSegment.cs
- userdatakeys.cs
- ZoneIdentityPermission.cs
- SystemInfo.cs
- connectionpool.cs
- PropertyInformationCollection.cs
- OleDbConnectionInternal.cs
- WorkflowMessageEventHandler.cs
- DataServiceExpressionVisitor.cs
- XpsS0ValidatingLoader.cs
- RadioButton.cs
- EdmItemCollection.cs
- XmlCharCheckingReader.cs
- UInt64Storage.cs
- SharingService.cs
- ExpressionHelper.cs
- Translator.cs
- HttpClientCertificate.cs
- PropertyToken.cs
- Roles.cs
- BrushMappingModeValidation.cs
- ToolStripHighContrastRenderer.cs
- StructuralObject.cs
- InvokePatternIdentifiers.cs
- Timer.cs
- Brush.cs
- ScriptComponentDescriptor.cs
- BitmapEffectInputData.cs
- XPathNavigatorKeyComparer.cs
- BuiltInExpr.cs
- RtfFormatStack.cs
- FormViewDeleteEventArgs.cs
- XMLUtil.cs
- FrameworkContentElement.cs
- NativeMethods.cs
- LocatorPartList.cs
- IncrementalCompileAnalyzer.cs
- ContainerControl.cs
- PenThreadWorker.cs
- WebPartZoneBaseDesigner.cs
- ScriptResourceHandler.cs
- ClonableStack.cs
- XmlBoundElement.cs
- WriteableBitmap.cs
- HeaderedItemsControl.cs
- RealizationContext.cs
- DllNotFoundException.cs
- Canvas.cs
- XmlSchemaComplexContentRestriction.cs
- RayMeshGeometry3DHitTestResult.cs
- TextRenderingModeValidation.cs
- DataGridViewRowHeaderCell.cs
- LinkedResource.cs
- GrammarBuilderPhrase.cs
- CodeObjectCreateExpression.cs
- XmlSchemaInfo.cs
- EnumConverter.cs
- Documentation.cs
- ActivitiesCollection.cs
- NonSerializedAttribute.cs
- SHA256.cs
- UserControl.cs
- DateTimeHelper.cs
- VirtualizingStackPanel.cs
- DataKey.cs
- DataGridPreparingCellForEditEventArgs.cs
- Overlapped.cs
- HwndSubclass.cs
- ActivityDesignerHelper.cs
- Model3DGroup.cs
- TypeUnloadedException.cs
- InnerItemCollectionView.cs
- PageParser.cs
- ImageButton.cs
- CodeMemberEvent.cs
- _AutoWebProxyScriptEngine.cs
- PropertyChange.cs
- DeferredTextReference.cs
- BasicHttpMessageCredentialType.cs
- XPathCompileException.cs
- RequestResizeEvent.cs
- RunInstallerAttribute.cs
- SymmetricCryptoHandle.cs
- SafeThreadHandle.cs
- PostBackTrigger.cs