12 types derived from TextWriter
mscorlib (4)
system\io\streamwriter.cs (1)
40public class StreamWriter : TextWriter
system\io\stringwriter.cs (1)
34public class StringWriter : TextWriter
system\io\textwriter.cs (2)
620private sealed class NullTextWriter : TextWriter 649internal sealed class SyncTextWriter : TextWriter, IDisposable
System (1)
compmod\system\codedom\compiler\IndentTextWriter.cs (1)
21public class IndentedTextWriter : TextWriter {
System.Core (1)
System\Diagnostics\EventSchemaTraceListener.cs (1)
688private sealed class TraceWriter : TextWriter
System.Data (1)
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
10256private class ConstrainedTextWriter : TextWriter {
System.Data.Services (1)
System\Data\Services\Serializers\IndentedTextWriter.cs (1)
25internal sealed class IndentedTextWriter : TextWriter
System.Web (3)
HttpWriter.cs (1)
783public sealed class HttpWriter : TextWriter {
UI\CssTextWriter.cs (1)
19internal sealed class CssTextWriter : TextWriter {
UI\HTMLTextWriter.cs (1)
20public class HtmlTextWriter : TextWriter {
System.Web.Mobile (1)
UI\MobileControls\Adapters\EmptyTextWriter.cs (1)
31internal class EmptyTextWriter : TextWriter
468 references to TextWriter
mscorlib (50)
system\bcldebug.cs (1)
364using (TextWriter err = File.AppendText("ConsoleErrors.log"))
system\console.cs (13)
74private static volatile TextWriter _out; 75private static volatile TextWriter _error; 301public static TextWriter Out { 306Contract.Ensures(Contract.Result<TextWriter>() != null); 314public static TextWriter Error { 317Contract.Ensures(Contract.Result<TextWriter>() != null); 351TextWriter writer = null; 364writer = TextWriter.Synchronized(StreamWriter.Null); 375writer = TextWriter.Synchronized(stdxxx); 1927public static void SetOut(TextWriter newOut) { 1937newOut = TextWriter.Synchronized(newOut); 1950public static void SetError(TextWriter newError) { 1960newError = TextWriter.Synchronized(newError);
system\io\file.cs (1)
1125private static void InternalWriteAllLines(TextWriter writer, IEnumerable<String> contents)
system\io\textwriter.cs (31)
47public static readonly TextWriter Null = new NullTextWriter(); 53Tuple<TextWriter, char> tuple = (Tuple<TextWriter, char>)state; 60Tuple<TextWriter, string> tuple = (Tuple<TextWriter, string>)state; 67Tuple<TextWriter, char[], int, int> tuple = (Tuple<TextWriter, char[],int, int>)state; 74Tuple<TextWriter, char> tuple = (Tuple<TextWriter, char>)state; 81Tuple<TextWriter, string> tuple = (Tuple<TextWriter, string>)state; 88Tuple<TextWriter, char[], int, int> tuple = (Tuple<TextWriter, char[],int, int>)state; 93private static Action<object> _FlushDelegate = state => ((TextWriter)state).Flush(); 177public static TextWriter Synchronized(TextWriter writer) { 180Contract.Ensures(Contract.Result<TextWriter>() != null); 543Tuple<TextWriter, char> tuple = new Tuple<TextWriter, char>(this, value); 551Tuple<TextWriter, string> tuple = new Tuple<TextWriter, string>(this, value); 567Tuple<TextWriter, char[], int, int> tuple = new Tuple<TextWriter, char[], int, int>(this, buffer, index, count); 575Tuple<TextWriter, char> tuple = new Tuple<TextWriter, char>(this, value); 583Tuple<TextWriter, string> tuple = new Tuple<TextWriter, string>(this, value); 599Tuple<TextWriter, char[], int, int> tuple = new Tuple<TextWriter, char[], int, int>(this, buffer, index, count); 651private TextWriter _out; 653internal SyncTextWriter(TextWriter t): base(t.FormatProvider) {
system\reflection\emit\dynamicilgenerator.cs (1)
14using TextWriter = System.IO.TextWriter;
system\reflection\emit\ilgenerator.cs (3)
12using TextWriter = System.IO.TextWriter; 1214MethodInfo mi = typeof(TextWriter).GetMethod("WriteLine", parameterTypes); 1252MethodInfo mi = typeof(TextWriter).GetMethod("WriteLine", parameterTypes);
PresentationFramework (4)
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (2)
97private static void FormatPlainText(string s, bool csv, TextWriter output, ref bool escapeApplied) 155private static void FormatPlainTextAsHtml(string s, TextWriter output)
src\Framework\System\Windows\Markup\XamlWriter.cs (2)
80TextWriter writer = new StringWriter(sb, TypeConverterHelper.InvariantEnglishUS); 114public static void Save(object obj, TextWriter writer)
SMDiagnostics (1)
System\ServiceModel\Diagnostics\EncodingFallbackAwareXmlTextWriter.cs (1)
15internal EncodingFallbackAwareXmlTextWriter(TextWriter writer)
System (43)
compmod\microsoft\csharp\csharpcodeprovider.cs (8)
90public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) { 408private TextWriter Output { 808public void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) { 3868void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) { 3891void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) { 3914void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) { 3942void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) { 3965void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) {
compmod\microsoft\visualbasic\VBCodeProvider.cs (1)
98public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\CodeDOMProvider.cs (7)
125public virtual ICodeGenerator CreateGenerator(TextWriter output) { 214public virtual void GenerateCodeFromExpression(CodeExpression expression, TextWriter writer, CodeGeneratorOptions options) { 224public virtual void GenerateCodeFromStatement(CodeStatement statement, TextWriter writer, CodeGeneratorOptions options) { 234public virtual void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options) { 244public virtual void GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) { 254public virtual void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options) { 258public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\CodeGenerator.cs (7)
191protected TextWriter Output { 387void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) { 410void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) { 433void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) { 461void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) { 484void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) { 506public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) {
compmod\system\codedom\compiler\ICodeGenerator.cs (5)
65void GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o); 75void GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o); 85void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o); 95void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o); 105void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o);
compmod\system\codedom\compiler\IndentTextWriter.cs (4)
22private TextWriter writer; 38public IndentedTextWriter(TextWriter writer) : this(writer, DefaultTabString) { 47public IndentedTextWriter(TextWriter writer, string tabString): base(CultureInfo.InvariantCulture) { 101public TextWriter InnerWriter {
compmod\system\diagnostics\DelimitedListTraceListener.cs (2)
29public DelimitedListTraceListener(TextWriter writer) : base(writer) { 32public DelimitedListTraceListener(TextWriter writer, string name) : base(writer, name) {
compmod\system\diagnostics\TextWriterTraceListener.cs (5)
26internal TextWriter writer; 31/// <see cref='System.IO.TextWriter'/> 59public TextWriterTraceListener(TextWriter writer) 69public TextWriterTraceListener(TextWriter writer, string name) 95public TextWriter Writer {
compmod\system\diagnostics\XmlWriterTraceListener.cs (2)
33public XmlWriterTraceListener(TextWriter writer) : base(writer){ } 34public XmlWriterTraceListener(TextWriter writer, string name) : base(writer, name){ }
net\System\Net\WebUtility.cs (2)
66public static unsafe void HtmlEncode(string value, TextWriter output) { 166public static void HtmlDecode(string value, TextWriter output) {
System.Activities (6)
System\Activities\Statements\WriteLine.cs (4)
24public InArgument<TextWriter> TextWriter 42RuntimeArgument textWriterArgument = new RuntimeArgument("TextWriter", typeof(TextWriter), ArgumentDirection.In); 55TextWriter writer = this.TextWriter.Get(context); 58writer = context.GetExtension<TextWriter>() ?? Console.Out;
System\Activities\XamlIntegration\TextExpressionCompiler.cs (2)
194public bool GenerateSource(TextWriter textWriter) 2339void WriteCode(TextWriter textWriter)
System.Activities.Presentation (4)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (3)
43public DesignTimeXamlWriter(TextWriter textWriter, WorkflowDesignerXamlSchemaContext context, bool shouldWriteDebugSymbol) 259TextWriter textWriter; 261public NamespaceIndentingXmlWriter(TextWriter textWriter)
Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
210TextWriter textWriter = new StringWriter(CultureInfo.InvariantCulture);
System.Configuration (4)
System\Configuration\ConfigurationElement.cs (1)
973internal virtual void Dump(TextWriter tw) {
System\Configuration\XmlUtilWriter.cs (3)
44private TextWriter _writer; // the wrapped text writer 58internal XmlUtilWriter(TextWriter writer, bool trackPosition) { 71internal TextWriter Writer {
System.Core (4)
Microsoft\Scripting\Ast\DebugViewWriter.cs (3)
46private TextWriter _out; 72private DebugViewWriter(TextWriter file) { 135internal static void WriteTo(Expression node, TextWriter writer) {
System\Diagnostics\EventSchemaTraceListener.cs (1)
99new public TextWriter Writer {
System.Data (21)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\DesignTimeXamlWriter.cs (3)
43public DesignTimeXamlWriter(TextWriter textWriter, WorkflowDesignerXamlSchemaContext context, bool shouldWriteDebugSymbol) 259TextWriter textWriter; 261public NamespaceIndentingXmlWriter(TextWriter textWriter)
cdf\src\NetFx40\Tools\Microsoft.Tools.Common\Microsoft\Activities\Presentation\Xaml\WorkflowDesignerXamlHelper.cs (1)
210TextWriter textWriter = new StringWriter(CultureInfo.InvariantCulture);
fx\src\data\System\Data\DataSet.cs (9)
1786/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary> 1787/// <param name="writer">The <see cref='TextWriter'/> object with which to write.</param> 1788public void WriteXmlSchema(TextWriter writer) 1793/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary> 1794/// <param name="writer">The <see cref='TextWriter'/> object with which to write.</param> 1796public void WriteXmlSchema(TextWriter writer, Converter<Type, string> multipleTargetConverter) 1845private void WriteXmlSchema(TextWriter writer, SchemaFormat schemaFormat, Converter<Type, string> multipleTargetConverter) 2591public void WriteXml(TextWriter writer) 2628public void WriteXml(TextWriter writer, XmlWriteMode mode)
fx\src\data\System\Data\DataTable.cs (6)
4757public void WriteXml(TextWriter writer) 4762public void WriteXml(TextWriter writer, bool writeHierarchy) 4806public void WriteXml(TextWriter writer, XmlWriteMode mode) 4811public void WriteXml(TextWriter writer, XmlWriteMode mode, bool writeHierarchy) 4925public void WriteXmlSchema( TextWriter writer ) { 4929public void WriteXmlSchema( TextWriter writer, bool writeHierarchy )
fx\src\data\System\Data\SqlClient\TdsParser.cs (2)
10257TextWriter _next; 10261public ConstrainedTextWriter(TextWriter next, int size) {
System.Data.Entity.Design (22)
System\Data\Entity\Design\EntityCodeGenerator.cs (5)
148public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target, Version targetEntityFrameworkVersion) 171public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target) 199public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target, IEnumerable<XmlReader> additionalEdmSchemas, Version targetEntityFrameworkVersion) 232public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target, IEnumerable<XmlReader> additionalEdmSchemas) 360using (TextWriter writer = textWriter.GetOrCreateTextWriter())
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (8)
106TextWriter outputWriter = null; 130public IList<EdmSchemaError> GenerateViews(StorageMappingItemCollection mappingCollection, TextWriter outputWriter) 150public IList<EdmSchemaError> GenerateViews(StorageMappingItemCollection mappingCollection, TextWriter outputWriter, Version targetEntityFrameworkVersion) 158TextWriter writer; 179Func<TextWriter> GetWriter, 180out TextWriter outputWriter) 333Dictionary<EntitySetBase, string> generatedViews, TextWriter sourceWriter, CodeDomProvider provider, IList<EdmSchemaError> schemaErrors) 468private static void GenerateCode(TextWriter sourceWriter, CodeDomProvider provider, CodeCompileUnit compileUnit)
System\Data\EntityModel\Emitters\FixUpCollection.cs (4)
84public void Do(System.IO.TextReader reader, System.IO.TextWriter writer, LanguageOption language, bool hasNamespace) 124private static void CopyFile(System.IO.TextReader reader, System.IO.TextWriter writer) 136private void DoFixUpsForCS(System.IO.TextReader reader, System.IO.TextWriter writer, bool hasNamespace) 220public void DoFixUpsForVB(System.IO.TextReader reader, System.IO.TextWriter writer)
System\Data\EntityModel\EntityClassGenerator.cs (2)
103public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target) 113public IList<EdmSchemaError> GenerateCode(XmlReader sourceEdmSchema, TextWriter target, IEnumerable<XmlReader> additionalEdmSchemas)
System\Data\EntityModel\LazyTextWriterCreator.cs (3)
30private TextWriter _writer = null; 33internal LazyTextWriterCreator(TextWriter writer) 53internal TextWriter GetOrCreateTextWriter()
System.Data.Linq (5)
DataContext.cs (1)
248public TextWriter Log {
Provider\IProvider.cs (1)
33TextWriter Log { get; set; }
SqlClient\SqlProvider.cs (3)
54private TextWriter log; 218TextWriter IProvider.Log { 1152private void LogCommand(TextWriter writer, DbCommand cmd) {
System.Data.Services (4)
System\Data\Services\Serializers\IndentedTextWriter.cs (2)
28private TextWriter writer; 43public IndentedTextWriter(TextWriter writer) : base(CultureInfo.InvariantCulture)
System\Data\Services\Serializers\JsonWriter.cs (1)
49public JsonWriter(TextWriter writer)
System\Data\Services\Serializers\TextSerializer.cs (1)
29private readonly TextWriter writer;
System.Data.Services.Client (4)
System\Data\Services\Client\MaterializeFromAtom.cs (1)
88private System.IO.TextWriter writer;
System\Data\Services\Client\Util.cs (3)
561internal static void TraceElement(XmlReader reader, System.IO.TextWriter writer) 592internal static void TraceEndElement(XmlReader reader, System.IO.TextWriter writer, bool indent) 611internal static void TraceText(System.IO.TextWriter writer, string value)
System.Data.Services.Design (9)
System\Data\EntityModel\DataServiceBuildProvider.cs (1)
90using (TextWriter writer = assemblyBuilder.CreateCodeFile(this))
System\Data\EntityModel\Emitters\FixUpCollection.cs (4)
80public void Do(System.IO.TextReader reader, System.IO.TextWriter writer, LanguageOption language, bool hasNamespace) 120private static void CopyFile(System.IO.TextReader reader, System.IO.TextWriter writer) 132private void DoFixUpsForCS(System.IO.TextReader reader, System.IO.TextWriter writer, bool hasNamespace) 216public void DoFixUpsForVB(System.IO.TextReader reader, System.IO.TextWriter writer)
System\Data\EntityModel\EntityClassGenerator.cs (1)
180public IList<EdmSchemaError> GenerateCode(XmlReader sourceReader, TextWriter targetWriter, string namespacePrefix)
System\Data\EntityModel\LazyTextWriterCreator.cs (3)
25private TextWriter _writer; 36internal LazyTextWriterCreator(TextWriter writer) 41internal TextWriter GetOrCreateTextWriter()
System.Data.SqlXml (6)
System\Xml\Xsl\XsltOld\Processor.cs (1)
371public void Execute(TextWriter writer) {
System\Xml\Xsl\XsltOld\TextOnlyOutput.cs (3)
19private TextWriter writer; 25 public TextWriter Writer { 42internal TextOnlyOutput(Processor processor, TextWriter writer) {
System\Xml\Xsl\XsltOld\TextOutput.cs (2)
17private TextWriter writer; 30internal TextOutput(Processor processor, TextWriter writer)
System.Management (2)
Instrumentation\CodeSpit.cs (1)
30void WriteCode(TextWriter writer)
WmiGenerator.cs (1)
70private TextWriter tw = null;
System.Runtime.Remoting (52)
metadata\metadata.cs (3)
74 TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); 87TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true)); 268TextWriter tw = new StreamWriter(outputStream, new UTF8Encoding(false, true));
metadata\sudswriter.cs (2)
44 internal SUDSGenerator(Type[] types, SdlType sdlType, TextWriter output) 51 internal SUDSGenerator(ServiceType[] serviceTypes, SdlType sdlType, TextWriter output)
metadata\wsdlparser.cs (20)
3225private WriterStream(String fileName, TextWriter writer) 3231internal TextWriter OutputStream 3275TextWriter textWriter = new StreamWriter(_completeFileName, false, new UTF8Encoding(false)); 3294private TextWriter _writer; 3733internal virtual void PrintCSC(TextWriter textWriter, String indentation, 3882private void PrintPropertyBody(TextWriter textWriter, String indentation, StringBuilder sb, String bodyPrefix) 4210internal override void PrintCSC(TextWriter textWriter, String indentation, 4331internal override void PrintCSC(TextWriter textWriter, String indentation, 4434internal abstract void PrintClassMethods(TextWriter textWriter, 4469internal override void PrintClassMethods(TextWriter textWriter, 4777internal void PrintCSC(TextWriter textWriter, String indentation, 4861internal override void PrintClassMethods(TextWriter textWriter, 4987internal void PrintCSC(TextWriter textWriter, String indentation, 5029internal abstract void PrintCSC(TextWriter textWriter, String newIndentation, 5042internal override void PrintCSC(TextWriter textWriter, String newIndentation, 5383internal void PrintCSC(TextWriter textWriter, String indentation, 5892internal void PrintCSC(TextWriter textWriter, String indentation, String curNS, StringBuilder sb) 6149private void PrintClientProxy(TextWriter textWriter, String indentation, String curNS, StringBuilder sb) 6268private void PrintISerializable(TextWriter textWriter, String indentation, String curNS, StringBuilder sb, String baseString) 6879TextWriter textWriter = writerStream.OutputStream;
metadata\wsdlwriter.cs (27)
39internal WsdlGenerator(Type[] types, TextWriter output) 63internal WsdlGenerator(Type[] types, SdlType sdlType, TextWriter output) 87internal WsdlGenerator(Type[] types, TextWriter output, Assembly assembly, String url) 96internal WsdlGenerator(Type[] types, SdlType sdlType, TextWriter output, Assembly assembly, String url) 104internal WsdlGenerator(ServiceType[] serviceTypes, SdlType sdlType, TextWriter output) 632private void PrintWsdlNamespaces(TextWriter textWriter, StringBuilder sb, String indent) 690private void PrintTypesBeginWsdl(TextWriter textWriter, StringBuilder sb, String indent) 699private void PrintTypesEndWsdl(TextWriter textWriter, StringBuilder sb, String indent) 708internal void PrintServiceWsdl(TextWriter textWriter, StringBuilder sb, String indent, ArrayList refNames) 799private TextWriter _textWriter; 829void Print(TextWriter textWriter, StringBuilder sb, String indent); 840public void Print(TextWriter textWriter, StringBuilder sb, String indent) 918public override void Print(TextWriter textWriter, StringBuilder sb, String indent) 970public void Print(TextWriter textWriter, StringBuilder sb, String indent) 991public abstract void Print(TextWriter textWriter, StringBuilder sb, String indent); 1010public override void Print(TextWriter textWriter, StringBuilder sb, String indent){ 1050internal abstract void PrintSchemaType(TextWriter textWriter, StringBuilder sb, String indent, bool bAnonymous); 1079internal override void PrintSchemaType(TextWriter textWriter, StringBuilder sb, String indent, bool bAnonymous){ 1251protected void PrintBody(TextWriter textWriter, StringBuilder sb, String indent){ 1313internal override void PrintSchemaType(TextWriter textWriter, StringBuilder sb, String indent, bool bAnonymous){ 1345internal override void PrintSchemaType(TextWriter textWriter, StringBuilder sb, String indent, bool bAnonymous) 1687internal override void PrintSchemaType(TextWriter textWriter, StringBuilder sb, String indent, bool bAnonymous) 1743internal void PrintMessageWsdl(TextWriter textWriter, StringBuilder sb, String indent, ArrayList refNames) 2126private void PrintSuds(Type type, String[] implIFaces, Type[] nestedTypes, TextWriter textWriter, StringBuilder sb, String indent) 2856internal void PrintDependsOnWsdl(TextWriter textWriter, StringBuilder sb, String indent, Hashtable usedNames) 2880internal void PrintSchemaWsdl(TextWriter textWriter, StringBuilder sb, String indent){ 2977internal void PrintMessageWsdl(TextWriter textWriter, StringBuilder sb, String indent, ArrayList refNames)
System.ServiceModel.Activation (1)
System\ServiceModel\Activities\Activation\XamlBuildProviderExtension.cs (1)
233using (TextWriter codeFile = assemblyBuilder.CreateCodeFile(buildProvider))
System.ServiceModel.Web (3)
System\ServiceModel\Web\WebOperationContext.cs (3)
253public Message CreateTextResponse(Action<TextWriter> textWriter, string contentType) 263public Message CreateTextResponse(Action<TextWriter> textWriter, string contentType, Encoding encoding) 280using (TextWriter writer = new StreamWriter(stream, encoding))
System.Web (93)
Abstractions\HttpBrowserCapabilitiesBase.cs (1)
742public virtual HtmlTextWriter CreateHtmlTextWriter(TextWriter w) {
Abstractions\HttpBrowserCapabilitiesWrapper.cs (1)
717public override HtmlTextWriter CreateHtmlTextWriter(TextWriter w) {
Abstractions\HttpResponseBase.cs (1)
156public virtual TextWriter Output {
Abstractions\HttpResponseWrapper.cs (1)
162public override TextWriter Output {
Abstractions\HttpServerUtilityBase.cs (7)
52public virtual void Execute(string path, TextWriter writer) { 60public virtual void Execute(string path, TextWriter writer, bool preserveForm) { 64public virtual void Execute(IHttpHandler handler, TextWriter writer, bool preserveForm) { 82public virtual void HtmlDecode(string s, TextWriter output) { 94public virtual void HtmlEncode(string s, TextWriter output) { 140public virtual void UrlDecode(string s, TextWriter output) { 154public virtual void UrlEncode(string s, TextWriter output) {
Abstractions\HttpServerUtilityWrapper.cs (7)
62public override void Execute(string path, TextWriter writer) { 70public override void Execute(string path, TextWriter writer, bool preserveForm) { 74public override void Execute(IHttpHandler handler, TextWriter writer, bool preserveForm) { 82public override void HtmlDecode(string s, TextWriter output) { 90public override void HtmlEncode(string s, TextWriter output) { 130public override void UrlDecode(string s, TextWriter output) { 138public override void UrlEncode(string s, TextWriter output) {
Compilation\AssemblyBuilder.cs (4)
222internal virtual TextWriter CreateCodeFile(BuildProvider buildProvider, out string filename) { 252public TextWriter CreateCodeFile(BuildProvider buildProvider) { 290TextWriter writer = CreateCodeFile(buildProvider, out filename); 1281internal override TextWriter CreateCodeFile(BuildProvider buildProvider, out string filename) {
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
1507TextWriter w = new StringWriter(CultureInfo.InvariantCulture);
Compilation\BuildManager.cs (1)
2752internal static TextWriter GetUpdatableDeploymentTargetWriter(VirtualPath virtualPath, Encoding fileEncoding) {
Configuration\BrowserCapabilitiesCodeGenerator.cs (1)
788TextWriter twriter = new StreamWriter(new FileStream(_browsersDirectory + "\\BrowserCapsFactory.cs", FileMode.Create));
Configuration\HttpCapabilitiesBase.cs (2)
171public HtmlTextWriter CreateHtmlTextWriter(TextWriter w) { 191internal HtmlTextWriter CreateHtmlTextWriterInternal(TextWriter tw) {
ErrorFormatter.cs (1)
249TextWriter textWriter = context.Response.SwitchWriter(stringWriter);
Hosting\SimpleWorkerRequest.cs (3)
37private TextWriter _output; 374public SimpleWorkerRequest(String page, String query, TextWriter output): this() { 398public SimpleWorkerRequest(String appVirtualDir, String appPhysicalDir, String page, String query, TextWriter output): this() {
HttpRequest.cs (1)
2914TextWriter w = new StreamWriter(f);
HttpResponse.cs (6)
46private TextWriter _writer; // others just have Writer 161public HttpResponse(TextWriter writer) { 1918public TextWriter Output { 1923internal TextWriter SwitchWriter(TextWriter writer) { 1924TextWriter oldWriter = _writer;
httpserverutility.cs (15)
281public void Execute(string path, TextWriter writer) { 307public void Execute(string path, TextWriter writer, bool preserveForm) { 407public void Execute(IHttpHandler handler, TextWriter writer, bool preserveForm) { 414internal void Execute(IHttpHandler handler, TextWriter writer, bool preserveForm, bool setPreviousPage) { 423private void ExecuteInternal(IHttpHandler handler, TextWriter writer, bool preserveForm, bool setPreviousPage, 438TextWriter savedOutputWriter = null; 821internal static void ExecuteLocalRequestAndCaptureResponse(String path, TextWriter writer, 948public void HtmlDecode(string s, TextWriter output) { 972public void HtmlEncode(string s, TextWriter output) { 1007public void UrlEncode(string s, TextWriter output) { 1030public void UrlDecode(string s, TextWriter output) { 1090public static void HtmlDecode(string s, TextWriter output) { 1132public static void HtmlEncode(String s, TextWriter output) { 1154public static void HtmlAttributeEncode(String s, TextWriter output) { 1193internal static void FormatPlainTextAsHtml(String s, TextWriter output) {
Instrumentation\PageExecutionContext.cs (1)
26public TextWriter TextWriter { get; set; }
Security\AntiXss\AntiXssEncoder.cs (2)
20protected internal override void HtmlAttributeEncode(string value, TextWriter output) { 28protected internal override void HtmlEncode(string value, TextWriter output) {
UI\ChtmlTextWriter.cs (2)
31public ChtmlTextWriter(TextWriter writer) : this(writer, DefaultTabString) { 35public ChtmlTextWriter(TextWriter writer, string tabString) : base(writer, tabString) {
UI\Control.cs (3)
3476protected void BeginRenderTracing(TextWriter writer, object traceObject) { 3484protected void EndRenderTracing(TextWriter writer, object traceObject) { 3488private void TraceNonRenderingControlInternal(TextWriter writer) {
UI\CssTextWriter.cs (5)
20private TextWriter _writer; 79public CssTextWriter(TextWriter writer) { 289private static void WriteAttribute(TextWriter writer, HtmlTextWriterStyle key, string name, string value) { 312internal static void WriteAttributes(TextWriter writer, RenderStyle[] styles, int count) { 431internal static void WriteUrlAttribute(TextWriter writer, string url) {
UI\Html32TextWriter.cs (2)
54public Html32TextWriter(TextWriter writer) : this(writer, DefaultTabString) { 61public Html32TextWriter(TextWriter writer, string tabString) : base(writer, tabString) {
UI\HTMLTextWriter.cs (4)
82private TextWriter writer; 321public TextWriter InnerWriter { 650public HtmlTextWriter(TextWriter writer) : this(writer, DefaultTabString) { 653public HtmlTextWriter(TextWriter writer, string tabString) : base(CultureInfo.InvariantCulture) {
UI\LOSFormatter.cs (4)
110TextWriter output = new StreamWriter(stream); 117/// <para>Serializes the view state value into a <see cref='System.IO.TextWriter'/> object.</para> 119public void Serialize(TextWriter output, object value) { 127private void SerializeInternal(TextWriter output, object value) {
UI\Page.cs (4)
1450protected internal virtual HtmlTextWriter CreateHtmlTextWriter(TextWriter tw) { 1464internal static HtmlTextWriter CreateHtmlTextWriterInternal(TextWriter tw, HttpRequest request) { 1474public static HtmlTextWriter CreateHtmlTextWriterFromType(TextWriter tw, Type writerType) { 3448Server.Execute(_previousPage, TextWriter.Null,
UI\PartialCachingControl.cs (1)
367TextWriter savedWriter = Context.Response.SwitchWriter(tmpWriter);
UI\RenderTraceListener.cs (4)
89public virtual void BeginRendering(TextWriter writer, object renderedObject) { 95public virtual void EndRendering(TextWriter writer, object renderedObject) { 126public override void BeginRendering(TextWriter writer, object renderedObject) { 132public override void EndRendering(TextWriter writer, object renderedObject) {
UI\TemplateParser.cs (1)
1164TextWriter precompTargetWriter = BuildManager.GetUpdatableDeploymentTargetWriter(CurrentVirtualPath, fileEncoding);
UI\WebControls\Menu.cs (1)
1927ConstructorInfo constructor = _designTimeTextWriterType.GetConstructor(new Type[] { typeof(TextWriter) });
UI\XhtmlTextWriter.cs (2)
31public XhtmlTextWriter(TextWriter writer) : this(writer, DefaultTabString) { 35public XhtmlTextWriter(TextWriter writer, string tabString) : base(writer, tabString) {
Util\HttpEncoder.cs (4)
216protected internal virtual void HtmlAttributeEncode(string value, TextWriter output) { 278private unsafe static void HtmlAttributeEncodeInternal(String s, TextWriter output) { 335protected internal virtual void HtmlDecode(string value, TextWriter output) { 354protected internal virtual void HtmlEncode(string value, TextWriter output) {
System.Web.DataVisualization (7)
Common\General\ChartSerializer.cs (1)
497 public void Save(TextWriter writer)
Common\Utilities\XmlSerializer.cs (3)
1331internal void Serialize(object objectToSerialize, TextWriter textWriter) 1364TextWriter textWriter = writer as TextWriter;
WebForm\ChartWebControl.cs (1)
2801private HtmlTextWriter CreateHtmlTextWriter(TextWriter tw)
WebForm\General\ChartHttpHandler.cs (2)
143using (TextWriter w = new StringWriter(CultureInfo.InvariantCulture)) 523using (TextWriter w = new StringWriter(CultureInfo.CurrentCulture))
System.Web.Extensions (13)
Compilation\WCFBuildProvider.cs (1)
158using (TextWriter writer = assemblyBuilder.CreateCodeFile(this))
Compilation\WCFModel\MapFileLoader.cs (2)
53using (var mapFileWriter = GetMapFileWriter()) 193protected virtual TextWriter GetMapFileWriter()
HttpResponseInternalBase.cs (2)
11public virtual TextWriter SwitchWriter(TextWriter writer) {
HttpResponseInternalWrapper.cs (3)
47public override TextWriter Output { 304public override TextWriter SwitchWriter(TextWriter writer) {
UI\PageRequestManager.cs (5)
132internal static void EncodeString(TextWriter writer, string type, string id, string content) { 703TextWriter oldWriter = null; 707oldWriter = page.Response.SwitchWriter(TextWriter.Null); 715HtmlTextWriter nullHtmlWriter = new HtmlTextWriter(TextWriter.Null); 927public ParserHtmlTextWriter() : base(TextWriter.Null) {
System.Web.Mobile (29)
UI\MobileControls\Adapters\ChtmlMobileTextWriter.cs (1)
36public ChtmlMobileTextWriter(TextWriter writer, MobileCapabilities device)
UI\MobileControls\Adapters\ChtmlPageAdapter.cs (1)
160public override HtmlTextWriter CreateTextWriter(TextWriter writer)
UI\MobileControls\Adapters\HtmlMobileTextWriter.cs (1)
42public HtmlMobileTextWriter(TextWriter writer, MobileCapabilities device)
UI\MobileControls\Adapters\HtmlPageAdapter.cs (1)
341public virtual HtmlTextWriter CreateTextWriter(TextWriter writer)
UI\MobileControls\Adapters\MobileTextWriter.cs (1)
51public MobileTextWriter(TextWriter writer, MobileCapabilities device) : base(writer)
UI\MobileControls\Adapters\MultiPartWriter.cs (1)
37protected MultiPartWriter(TextWriter writer) : base(writer)
UI\MobileControls\Adapters\UpWmlMobileTextWriter.cs (1)
64public UpWmlMobileTextWriter(TextWriter writer, MobileCapabilities device, MobilePage page)
UI\MobileControls\Adapters\UpWmlPageAdapter.cs (1)
45public override HtmlTextWriter CreateTextWriter(TextWriter writer)
UI\MobileControls\Adapters\WmlMobileTextWriter.cs (2)
42private TextWriter _realInnerWriter; 78public WmlMobileTextWriter(TextWriter writer, MobileCapabilities device, MobilePage page)
UI\MobileControls\Adapters\WmlPageAdapter.cs (1)
135public virtual HtmlTextWriter CreateTextWriter(TextWriter writer)
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlBasicPageAdapter.cs (1)
272public virtual HtmlTextWriter CreateTextWriter( TextWriter writer) {
UI\MobileControls\Adapters\XhtmlAdapters\XhtmlMobileTextWriter.cs (2)
43private TextWriter _cachedInnerWriter = null; 66public XhtmlMobileTextWriter (TextWriter writer, MobileCapabilities device) : base(writer, device) {
UI\MobileControls\Design\MobileControlPersister.cs (13)
112private static void PersistCollectionProperty(TextWriter sw, object component, PropertyDescriptor propDesc, PersistenceMode persistMode, IDesignerHost host) { 243private static void PersistComplexProperty(TextWriter sw, object component, PropertyDescriptor propDesc, IDesignerHost host) { 298private static void PersistDataBindings(TextWriter sw, Control control) { 358internal static void PersistInnerProperties(TextWriter sw, object component, IDesignerHost host) { 450private static void PersistStringProperty(TextWriter sw, object component, PropertyDescriptor propDesc, PersistenceMode mode) { 486private static void PersistAttributes(TextWriter sw, object component, string prefix, PropertyDescriptor propDesc) { 690private static void PersistTemplateProperty(TextWriter sw, object component, PropertyDescriptor propDesc) 701private static void PersistTemplateProperty(TextWriter sw, String templateName, ITemplate template) 809internal static void PersistControl(TextWriter sw, Control control) { 853internal static void PersistControl(TextWriter sw, Control control, IDesignerHost host) { 956private static void PersistChildControls(TextWriter sw, ControlCollection controls, IDesignerHost host) { 964private static void PersistDataBoundLiteralControl(TextWriter sw, DesignerDataBoundLiteralControl control) { 978private static void PersistLiteralControl(TextWriter sw, LiteralControl control) {
UI\MobileControls\IPageAdapter.cs (1)
56HtmlTextWriter CreateTextWriter(TextWriter writer);
UI\MobileControls\MobilePage.cs (1)
1408protected override HtmlTextWriter CreateHtmlTextWriter(TextWriter writer)
System.Web.Services (9)
System\Web\Services\Description\ServiceDescription.cs (2)
412public void Write(TextWriter writer) { 424TextWriter writer = new StreamWriter(stream);
System\Web\Services\Discovery\DiscoveryDocument.cs (2)
97public void Write(TextWriter writer) { 109TextWriter writer = new StreamWriter(stream, new UTF8Encoding(false));
System\Web\Services\Protocols\HtmlFormParameterWriter.cs (1)
44TextWriter writer = new StreamWriter(requestStream, new ASCIIEncoding());
System\Web\Services\Protocols\RequestResponse.cs (1)
192public static void HtmlDecode(string s, TextWriter output)
System\Web\Services\Protocols\UrlEncodedParameterWriter.cs (2)
52protected void Encode(TextWriter writer, object[] values) { 69protected void Encode(TextWriter writer, string name, object value) {
System\Web\Services\Protocols\UrlParameterWriter.cs (1)
31TextWriter writer = new StringWriter(builder, CultureInfo.InvariantCulture);
System.Windows.Forms (5)
winforms\Managed\System\Resources\ResXResourceWriter.cs (3)
235TextWriter textWriter; 285public ResXResourceWriter(TextWriter textWriter) { 288public ResXResourceWriter(TextWriter textWriter, Func<Type, string> typeNameConverter) {
winforms\Managed\System\WinForms\DataGridViewCell.cs (2)
1422internal static void FormatPlainText(string s, bool csv, TextWriter output, ref bool escapeApplied) 1476internal static void FormatPlainTextAsHtml(string s, TextWriter output)
System.Windows.Forms.DataVisualization (4)
Common\General\ChartSerializer.cs (1)
497 public void Save(TextWriter writer)
Common\Utilities\XmlSerializer.cs (3)
1331internal void Serialize(object objectToSerialize, TextWriter textWriter) 1364TextWriter textWriter = writer as TextWriter;
System.Workflow.Activities (3)
Common\CompModHelpers.cs (2)
994else if (output is TextWriter) 995return XmlWriter.Create(output as TextWriter, settings);
Rules\Helpers.cs (1)
157using (TextWriter ruleFileWriter = loader.GetFileWriter(rulesFileName))
System.Workflow.ComponentModel (6)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1159public override TextWriter GetFileWriter(string filePath)
AuthoringOM\Design\WorkflowInlining.cs (1)
303public override TextWriter GetFileWriter(string filePath)
AuthoringOM\Design\XomlDesignerLoader.cs (2)
123public abstract TextWriter GetFileWriter(string filePath); 489using (TextWriter layoutWriter = GetFileWriter(layoutFileName))
Shared\CompModHelpers.cs (2)
992else if (output is TextWriter) 993return XmlWriter.Create(output as TextWriter, settings);
System.Workflow.Runtime (3)
Tracking\SqlTrackingService.cs (2)
613internal static XmlWriter CreateXmlWriter(TextWriter output) 621return XmlWriter.Create(output as TextWriter, settings);
Tracking\TrackingProfileSerializer.cs (1)
864public void Serialize(TextWriter writer, TrackingProfile profile)
System.Xml (31)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (2)
86public HtmlEncodedRawTextWriter( TextWriter writer, XmlWriterSettings settings ) : base( writer, settings ) { 778public HtmlEncodedRawTextWriterIndent( TextWriter writer, XmlWriterSettings settings ) : base( writer, settings ) {
System\Xml\Core\TextEncodedRawTextWriter.cs (1)
47public TextEncodedRawTextWriter( TextWriter writer, XmlWriterSettings settings ) : base ( writer, settings ) {
System\Xml\Core\XmlAutoDetectWriter.cs (2)
27private TextWriter textWriter; 44public XmlAutoDetectWriter(TextWriter textWriter, XmlWriterSettings writerSettings)
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
76protected TextWriter writer; 134public XmlEncodedRawTextWriter( TextWriter writer, XmlWriterSettings settings ) : this( settings ) { 1645public XmlEncodedRawTextWriterIndent( TextWriter writer, XmlWriterSettings settings ) : base( writer, settings ) {
System\Xml\Core\XmlTextEncoder.cs (2)
25TextWriter textWriter; 43internal XmlTextEncoder( TextWriter textWriter ) {
System\Xml\Core\XmlTextWriter.cs (2)
126TextWriter textWriter; 283public XmlTextWriter(TextWriter w) : this() {
System\Xml\Core\XmlWriter.cs (2)
632public static XmlWriter Create(TextWriter output) { 637public static XmlWriter Create(TextWriter output, XmlWriterSettings settings) {
System\Xml\Core\XmlWriterSettings.cs (1)
582internal XmlWriter CreateWriter(TextWriter output) {
System\Xml\Dom\XmlDocument.cs (1)
1191public virtual void Save( TextWriter writer ) {
System\Xml\Dom\XmlDomTextWriter.cs (1)
28public XmlDOMTextWriter( TextWriter w ) : base( w ){
System\Xml\Schema\XmlSchema.cs (2)
144public void Write(TextWriter writer) { 152public void Write(TextWriter writer, XmlNamespaceManager namespaceManager) {
System\Xml\Serialization\Compiler.cs (1)
108internal TextWriter Source {
System\Xml\Serialization\indentedWriter.cs (2)
17TextWriter writer; 22internal IndentedWriter(TextWriter writer, bool compact) {
System\Xml\Serialization\XmlSerializer.cs (2)
270public void Serialize(TextWriter textWriter, object o) { 278public void Serialize(TextWriter textWriter, object o, XmlSerializerNamespaces namespaces) {
System\Xml\Xslt\XslCompiledTransform.cs (3)
343public void Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) { 373public void Transform(XmlReader input, XsltArgumentList arguments, TextWriter results) { 419public void Transform(string inputUri, XsltArgumentList arguments, TextWriter results) {
System\Xml\Xslt\XslTransform.cs (4)
165public void Transform(XPathNavigator input, XsltArgumentList args, TextWriter output, XmlResolver resolver) { 171public void Transform(XPathNavigator input, XsltArgumentList args, TextWriter output) { 190public void Transform(IXPathNavigable input, XsltArgumentList args, TextWriter output, XmlResolver resolver) { 197public void Transform(IXPathNavigable input, XsltArgumentList args, TextWriter output) {
System.Xml.Linq (20)
System\Xml\Linq\XLinq.cs (20)
4199/// be saved to a file, a <see cref="Stream"/>, a <see cref="TextWriter"/>, 4282/// Output this <see cref="XElement"/> to the passed in <see cref="TextWriter"/>. 4287/// <see cref="XElement.Save(TextWriter, SaveOptions)"/>) enabling 4293/// The <see cref="TextWriter"/> to output this <see cref="XElement"/> to. 4295public void Save(TextWriter textWriter) { 4300/// Output this <see cref="XElement"/> to a <see cref="TextWriter"/>. 4303/// The <see cref="TextWriter"/> to output the XML to. 4309public void Save(TextWriter textWriter, SaveOptions options) { 5789/// be saved to a file, a <see cref="Stream"/>, a <see cref="TextWriter"/>, 5886/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>. 5891/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 5897/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to. 5899public void Save(TextWriter textWriter) { 5904/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 5907/// The <see cref="TextWriter"/> to output the XML to. 5913public void Save(TextWriter textWriter, SaveOptions options) { 7320/// <param name="textWriter"><see cref="TextWriter"/> to write to </param> 7321public void Save(TextWriter textWriter) { 7329/// <param name="textWriter"><see cref="TextWriter"/> to write to </param> 7334public void Save(TextWriter textWriter, SaveOptions options) {