Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CryptoKeySecurity.cs
- securestring.cs
- ReferentialConstraint.cs
- BitmapEffectState.cs
- DataListItem.cs
- XmlDocumentFragment.cs
- SessionStateUtil.cs
- TextBounds.cs
- InputScopeNameConverter.cs
- HostingEnvironment.cs
- IpcChannelHelper.cs
- ListBindingHelper.cs
- XPathMultyIterator.cs
- DataGridViewCellStyle.cs
- MatrixTransform3D.cs
- sqlmetadatafactory.cs
- Point3DIndependentAnimationStorage.cs
- AuthorizationSection.cs
- TextTreeExtractElementUndoUnit.cs
- CodeSubDirectory.cs
- SpecialTypeDataContract.cs
- RepeatButtonAutomationPeer.cs
- KeyInterop.cs
- CustomCredentialPolicy.cs
- SelectionListDesigner.cs
- SqlErrorCollection.cs
- EntityChangedParams.cs
- securitymgrsite.cs
- CodeConstructor.cs
- ToolStripScrollButton.cs
- TemplateContainer.cs
- DataColumnPropertyDescriptor.cs
- FrameworkElementAutomationPeer.cs
- GotoExpression.cs
- MailWriter.cs
- OneOfConst.cs
- ActiveXHost.cs
- FrameworkRichTextComposition.cs
- AspCompat.cs
- ListViewItem.cs
- Knowncolors.cs
- ExtensionFile.cs
- ViewStateModeByIdAttribute.cs
- XmlSchemaAnnotation.cs
- XpsPartBase.cs
- Context.cs
- QuaternionRotation3D.cs
- PeerNearMe.cs
- IndentedTextWriter.cs
- UnsafeNetInfoNativeMethods.cs
- ExpandSegmentCollection.cs
- TemplateControl.cs
- LockCookie.cs
- PowerModeChangedEventArgs.cs
- JsonEnumDataContract.cs
- BrushMappingModeValidation.cs
- QueryStringConverter.cs
- XmlSchemaAny.cs
- SafeCryptoHandles.cs
- categoryentry.cs
- ParserOptions.cs
- TileBrush.cs
- IPGlobalProperties.cs
- ZoneButton.cs
- InputQueue.cs
- ConnectionPoolManager.cs
- ContextMarshalException.cs
- GenericTypeParameterBuilder.cs
- ToolStripSystemRenderer.cs
- ProgressBar.cs
- PieceDirectory.cs
- FixedFindEngine.cs
- SmtpTransport.cs
- IsolatedStoragePermission.cs
- ComponentTray.cs
- DecimalStorage.cs
- InputScopeManager.cs
- GetWorkflowTree.cs
- DataBoundControlAdapter.cs
- DataGridTablesFactory.cs
- SqlDataSourceCustomCommandPanel.cs
- FocusTracker.cs
- SecurityHeaderElementInferenceEngine.cs
- TextEffect.cs
- NonceCache.cs
- DropShadowBitmapEffect.cs
- NewArrayExpression.cs
- SecureEnvironment.cs
- EqualityArray.cs
- DesignSurface.cs
- ContainerControl.cs
- ProxyWebPartConnectionCollection.cs
- GridItemCollection.cs
- Vector3DKeyFrameCollection.cs
- BamlRecords.cs
- NonParentingControl.cs
- ResourceKey.cs
- HttpCachePolicyElement.cs
- CodeCastExpression.cs
- LinqToSqlWrapper.cs