Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlAttributeOverrides.cs
- PathTooLongException.cs
- LinqDataSourceValidationException.cs
- BevelBitmapEffect.cs
- TriggerCollection.cs
- GroupBoxAutomationPeer.cs
- XmlQueryRuntime.cs
- DelegateSerializationHolder.cs
- LinkedList.cs
- XMLSyntaxException.cs
- TimersDescriptionAttribute.cs
- ReadWriteSpinLock.cs
- UntypedNullExpression.cs
- FileDialog_Vista_Interop.cs
- DirectoryGroupQuery.cs
- PropertyPathConverter.cs
- MenuAdapter.cs
- WebSysDefaultValueAttribute.cs
- HttpValueCollection.cs
- xmlformatgeneratorstatics.cs
- BufferedGraphics.cs
- MsmqPoisonMessageException.cs
- ActiveXHelper.cs
- SelectionItemProviderWrapper.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- DrawingContextDrawingContextWalker.cs
- ScriptingRoleServiceSection.cs
- TextServicesManager.cs
- MetadataItemEmitter.cs
- MobileResource.cs
- CallSiteOps.cs
- controlskin.cs
- FileSecurity.cs
- ProgressiveCrcCalculatingStream.cs
- SafeFileMappingHandle.cs
- OracleBoolean.cs
- MouseGestureConverter.cs
- HttpHandler.cs
- Pair.cs
- ObfuscationAttribute.cs
- XmlSequenceWriter.cs
- DataGridCellClipboardEventArgs.cs
- DataGridViewRowEventArgs.cs
- StreamMarshaler.cs
- SqlException.cs
- EdmConstants.cs
- StateBag.cs
- RectValueSerializer.cs
- CellParagraph.cs
- DataGridViewComboBoxCell.cs
- WorkItem.cs
- UIElementHelper.cs
- AsyncContentLoadedEventArgs.cs
- TypeSystem.cs
- PersianCalendar.cs
- ImageCreator.cs
- CharacterString.cs
- PeerNameRegistration.cs
- DataGridViewCheckBoxCell.cs
- FilterException.cs
- SafeNativeMethods.cs
- DelegateHelpers.Generated.cs
- SubclassTypeValidator.cs
- Viewport3DVisual.cs
- AutomationEvent.cs
- Atom10FormatterFactory.cs
- ArithmeticException.cs
- DataBindingCollectionEditor.cs
- DbConnectionPoolOptions.cs
- UserControlParser.cs
- FreezableCollection.cs
- ThrowHelper.cs
- DynamicResourceExtensionConverter.cs
- InputMethod.cs
- DrawingImage.cs
- SHA1.cs
- AxHost.cs
- BamlStream.cs
- BinHexDecoder.cs
- HwndSourceKeyboardInputSite.cs
- PrivilegedConfigurationManager.cs
- OutputScopeManager.cs
- HttpCapabilitiesEvaluator.cs
- XmlCDATASection.cs
- CodeTypeMemberCollection.cs
- ChildrenQuery.cs
- FlowPosition.cs
- SqlUtils.cs
- NumberSubstitution.cs
- ReadOnlyHierarchicalDataSource.cs
- ScaleTransform.cs
- DesignSurfaceServiceContainer.cs
- CompositeCollection.cs
- ListBox.cs
- LongTypeConverter.cs
- RuntimeResourceSet.cs
- Win32SafeHandles.cs
- ReflectTypeDescriptionProvider.cs
- CSharpCodeProvider.cs
- ToolStripGrip.cs