Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- EventData.cs
- IISUnsafeMethods.cs
- MinimizableAttributeTypeConverter.cs
- XmlSchema.cs
- HttpConfigurationContext.cs
- DescendentsWalker.cs
- AttachedAnnotationChangedEventArgs.cs
- VisualTreeUtils.cs
- TypeForwardedToAttribute.cs
- JsonReaderWriterFactory.cs
- CallInfo.cs
- PlatformCulture.cs
- PackWebRequest.cs
- TraversalRequest.cs
- FormsAuthenticationCredentials.cs
- IsolatedStorageSecurityState.cs
- ObjectListFieldsPage.cs
- DataGridViewRowsRemovedEventArgs.cs
- TransformedBitmap.cs
- KeyConstraint.cs
- RenderData.cs
- ComboBoxAutomationPeer.cs
- DataSvcMapFile.cs
- WebSysDisplayNameAttribute.cs
- WebPartManager.cs
- AuthorizationSection.cs
- ByteKeyFrameCollection.cs
- ProtectedConfigurationProviderCollection.cs
- SequenceFullException.cs
- StyleReferenceConverter.cs
- WebPartZoneBaseDesigner.cs
- WeakRefEnumerator.cs
- Gdiplus.cs
- PageThemeCodeDomTreeGenerator.cs
- IPipelineRuntime.cs
- KeysConverter.cs
- CroppedBitmap.cs
- MouseOverProperty.cs
- DigitalSignature.cs
- PenThreadWorker.cs
- FormParameter.cs
- ComponentCodeDomSerializer.cs
- SystemIPAddressInformation.cs
- DeferrableContent.cs
- SqlCommandBuilder.cs
- StorageEndPropertyMapping.cs
- QueryStack.cs
- ProtocolViolationException.cs
- FamilyTypeface.cs
- SqlCachedBuffer.cs
- RelationshipType.cs
- PathSegment.cs
- FileClassifier.cs
- Image.cs
- DataRelationCollection.cs
- GeometryCombineModeValidation.cs
- EdmToObjectNamespaceMap.cs
- OleDbException.cs
- AssociationEndMember.cs
- State.cs
- LicenseProviderAttribute.cs
- OracleDataReader.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- AppDomainProtocolHandler.cs
- DataException.cs
- TableLayoutPanel.cs
- MetadataSource.cs
- PreservationFileWriter.cs
- StaticTextPointer.cs
- SettingsProviderCollection.cs
- PropertySourceInfo.cs
- SrgsItemList.cs
- ClaimSet.cs
- XmlSchemaAnnotation.cs
- TableDetailsRow.cs
- ThicknessConverter.cs
- DefinitionProperties.cs
- Matrix.cs
- WebPartEditorCancelVerb.cs
- FreezableCollection.cs
- WebRequestModuleElementCollection.cs
- XmlDocumentFragment.cs
- DocumentDesigner.cs
- ClientConvert.cs
- HttpChannelFactory.cs
- DecoderFallback.cs
- LogReservationCollection.cs
- PublishLicense.cs
- DataListItem.cs
- CodeAttributeDeclaration.cs
- PageAsyncTaskManager.cs
- RightsManagementEncryptedStream.cs
- NavigateEvent.cs
- TableItemStyle.cs
- EndOfStreamException.cs
- DataServiceQueryOfT.cs
- HtmlLiteralTextAdapter.cs
- SystemSounds.cs
- OutputScopeManager.cs
- UiaCoreApi.cs