30 types derived from TextWriter
dotnet-svcutil-lib (1)
FrameworkFork\Microsoft.CodeDom\Compiler\IndentTextWriter.cs (1)
17public class IndentedTextWriter : TextWriter
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
72private sealed class TestOutputWriter : TextWriter
Microsoft.AspNetCore.Components.Endpoints (1)
Rendering\Buffering\BufferedTextWriter.cs (1)
8internal class BufferedTextWriter : TextWriter
Microsoft.AspNetCore.Http.Connections.Common (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
14internal sealed class Utf8BufferTextWriter : TextWriter
Microsoft.AspNetCore.Mvc.TagHelpers (1)
CacheTagHelper.cs (1)
215private sealed class CharBufferTextWriter : TextWriter
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Buffers\PagedBufferedTextWriter.cs (1)
11internal sealed class PagedBufferedTextWriter : TextWriter
Buffers\ViewBufferTextWriter.cs (1)
20internal sealed class ViewBufferTextWriter : TextWriter
DefaultEditorTemplates.cs (1)
457private sealed class HasContentTextWriter : TextWriter
Microsoft.AspNetCore.OpenApi (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
14internal sealed class Utf8BufferTextWriter : TextWriter
Microsoft.AspNetCore.Razor (1)
TagHelpers\DefaultTagHelperContent.cs (1)
303private sealed class EmptyOrWhiteSpaceWriter : TextWriter
Microsoft.AspNetCore.SignalR.Common (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
14internal sealed class Utf8BufferTextWriter : TextWriter
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
14internal sealed class Utf8BufferTextWriter : TextWriter
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\Utf8BufferTextWriter.cs (1)
14internal sealed class Utf8BufferTextWriter : TextWriter
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
RedisHubLifetimeManager.cs (1)
832private sealed class LoggerTextWriter : TextWriter
Microsoft.AspNetCore.WebUtilities (1)
HttpResponseStreamWriter.cs (1)
16public class HttpResponseStreamWriter : TextWriter
Microsoft.Build (1)
BackEnd\Node\OutOfProcServerNode.cs (1)
445internal sealed class RedirectConsoleWriter : TextWriter
Microsoft.CodeAnalysis (1)
Text\SourceTextWriter.cs (1)
10internal abstract class SourceTextWriter : TextWriter
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
72private sealed class TestOutputWriter : TextWriter
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
72private sealed class TestOutputWriter : TextWriter
Microsoft.Extensions.SecretManager.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TestConsole.cs (1)
72private sealed class TestOutputWriter : TextWriter
Microsoft.Extensions.Telemetry.Tests (1)
Latency\Internal\LatencyConsoleExporterTests.cs (1)
157private sealed class Accumulator : TextWriter
Microsoft.Maui.Graphics (1)
Text\CountingWriter.cs (1)
6 public class CountingWriter : TextWriter
Microsoft.ML.PerformanceTests (1)
Helpers\EmptyWriter.cs (1)
12internal class EmptyWriter : TextWriter
Microsoft.ML.TestFrameworkCommon (1)
TestLogger.cs (1)
12public sealed class TestLogger : TextWriter
System.Private.CoreLib (6)
src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (1)
13public class IndentedTextWriter : TextWriter
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
18public class StreamWriter : TextWriter
src\libraries\System.Private.CoreLib\src\System\IO\StringWriter.cs (1)
13public class StringWriter : TextWriter
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (1)
43private sealed class BroadcastingTextWriter : TextWriter
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (2)
689private sealed class NullTextWriter : TextWriter 769internal sealed class SyncTextWriter : TextWriter, IDisposable
1298 references to TextWriter
Aspire.Cli.Tests (1)
Utils\CliTestHelper.cs (1)
120internal sealed class TestOutputTextWriter(ITestOutputHelper outputHelper) : TextWriter
BoundTreeGenerator (3)
BoundNodeClassWriter.cs (3)
30private readonly TextWriter _writer; 36private BoundNodeClassWriter(TextWriter writer, Tree tree, TargetLanguage targetLang) 97public static void Write(TextWriter writer, Tree tree, TargetLanguage targetLang)
BuildBoss (28)
CompilerNuGetCheckerUtil.cs (6)
71public bool Check(TextWriter textWriter) 91private bool CheckPublishData(TextWriter textWriter) 129private bool CheckPackages(TextWriter textWriter) 219TextWriter textWriter, 229TextWriter textWriter, 357private bool CheckExternalApis(TextWriter textWriter)
ICheckerUtil.cs (1)
18bool Check(TextWriter textWriter);
OptProfCheckerUtil.cs (3)
34public bool Check(TextWriter textWriter) 62private bool CheckVsix(TextWriter textWriter, string vsixName, JToken tests) 99private static HashSet<string> GetManifestFileNames(TextWriter textWriter, string vsixFullPath)
ProjectCheckerUtil.cs (9)
32public bool Check(TextWriter textWriter) 79private bool CheckForProperty(TextWriter textWriter, string propertyName) 93private bool CheckProjectReferences(TextWriter textWriter) 106private bool CheckNoGuidsOnProjectReferences(TextWriter textWriter, List<ProjectReferenceEntry> entryList) 121private bool CheckInternalsVisibleTo(TextWriter textWriter) 168private bool CheckDeploymentSettings(TextWriter textWriter) 180private bool CheckProjectReferencesComplete(TextWriter textWriter, IEnumerable<ProjectKey> declaredReferences) 210private bool CheckUnitTestReferenceRestriction(TextWriter textWriter, IEnumerable<ProjectKey> declaredReferences) 235private bool CheckTargetFrameworks(TextWriter textWriter)
SolutionCheckerUtil.cs (5)
40public bool Check(TextWriter textWriter) 52private bool CheckProjects(TextWriter textWriter, Dictionary<ProjectKey, SolutionProjectData> map) 80private bool CheckDuplicate(TextWriter textWriter, out Dictionary<ProjectKey, SolutionProjectData> map) 110private bool CheckProjectSystemGuid(TextWriter textWriter, IEnumerable<SolutionProjectData> dataList) 145private bool CheckSameDirectory(TextWriter textWriter, Dictionary<ProjectKey, SolutionProjectData> map)
StructuredLoggerCheckerUtil.cs (1)
29public bool Check(TextWriter textWriter)
TargetsCheckerUtil.cs (3)
25public bool Check(TextWriter textWriter) 60private bool CheckProps(ProjectUtil util, TextWriter textWriter) 81private bool CheckTargets(ProjectUtil util, TextWriter textWriter)
ClientSample (5)
RawSample.cs (1)
75private static async Task ReceiveLoop(TextWriter output, PipeReader input)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
csc (11)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (4)
18/// provided call back. The newly created <see cref="TextWriter"/> will be passed down to the callback. 20internal static T RunWithUtf8Output<T>(Func<TextWriter, T> func) 41internal static T RunWithUtf8Output<T>(bool utf8Output, TextWriter textWriter, Func<TextWriter, T> func)
src\Compilers\CSharp\csc\Program.cs (1)
40public static int Run(string[] args, string clientDir, string workingDir, string sdkDir, string? tempDir, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader); 125internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null) 171public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null) 193private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter) 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
src\Compilers\Shared\Csc.cs (1)
22internal static int Run(string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
CSharpSyntaxGenerator (12)
AbstractFileWriter.cs (2)
17private readonly TextWriter _writer; 29protected AbstractFileWriter(TextWriter writer, Tree tree, CancellationToken cancellationToken)
SignatureWriter.cs (3)
16private readonly TextWriter _writer; 20private SignatureWriter(TextWriter writer, Tree tree) 28public static void Write(TextWriter writer, Tree tree)
SourceGenerator.cs (1)
115void addResult(Action<TextWriter> writeFunction, string hintName)
SourceWriter.cs (4)
18private SourceWriter(TextWriter writer, Tree tree, CancellationToken cancellationToken = default) 23public static void WriteMain(TextWriter writer, Tree tree, CancellationToken cancellationToken = default) => new SourceWriter(writer, tree, cancellationToken).WriteMain(); 25public static void WriteInternal(TextWriter writer, Tree tree, CancellationToken cancellationToken = default) => new SourceWriter(writer, tree, cancellationToken).WriteInternal(); 27public static void WriteSyntax(TextWriter writer, Tree tree, CancellationToken cancellationToken = default) => new SourceWriter(writer, tree, cancellationToken).WriteSyntax();
TestWriter.cs (2)
15private TestWriter(TextWriter writer, Tree tree, CancellationToken cancellationToken = default) : base(writer, tree, cancellationToken) 19public static void Write(TextWriter writer, Tree tree)
dotnet-dev-certs (9)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
dotnet-getdocument (9)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
dotnet-openapi (12)
Application.cs (2)
24TextWriter output = null, 25TextWriter error = null)
Commands\BaseCommand.cs (1)
58public TextWriter Warning
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
dotnet-sql-cache (9)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
dotnet-svcutil-lib (62)
CodeSerializer.cs (1)
66using (TextWriter writer = CreateOutputFile())
FrameworkFork\Microsoft.CodeDom\Compiler\CodeDOMProvider.cs (7)
125public virtual ICodeGenerator CreateGenerator(TextWriter output) 225public virtual void GenerateCodeFromExpression(CodeExpression expression, TextWriter writer, CodeGeneratorOptions options) 236public virtual void GenerateCodeFromStatement(CodeStatement statement, TextWriter writer, CodeGeneratorOptions options) 247public virtual void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options) 258public virtual void GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) 269public virtual void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options) 274public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeGenerator.cs (7)
216protected TextWriter Output 447void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 476void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) 505void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) 541void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 570void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) 598public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
FrameworkFork\Microsoft.CodeDom\Compiler\ICodeGenerator.cs (5)
62void GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o); 72void GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o); 82void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o); 92void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o); 102void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o);
FrameworkFork\Microsoft.CodeDom\Compiler\IndentTextWriter.cs (4)
19private TextWriter _writer; 35public IndentedTextWriter(TextWriter writer) : this(writer, DefaultTabString) 45public IndentedTextWriter(TextWriter writer, string tabString) : base(CultureInfo.InvariantCulture) 109public TextWriter InnerWriter
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (8)
92public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) 427private TextWriter Output 862public void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) 4286void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 4315void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) 4344void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) 4380void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 4409void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o)
FrameworkFork\Microsoft.Xml\Xml\Core\HtmlEncodedRawTextWriter.cs (2)
52public HtmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 831public HtmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
FrameworkFork\Microsoft.Xml\Xml\Core\TextEncodedRawTextWriter.cs (1)
25public TextEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlAutoDetectWriter.cs (2)
26private TextWriter _textWriter; 44public XmlAutoDetectWriter(TextWriter textWriter, XmlWriterSettings writerSettings)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlEncodedRawTextWriter.cs (3)
75protected TextWriter writer; 134public XmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : this(settings) 1804public XmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextEncoder.cs (2)
26private TextWriter _textWriter; 44internal XmlTextEncoder(TextWriter textWriter)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlTextWriter.cs (2)
136private TextWriter _textWriter; 296public XmlTextWriter(TextWriter w) : this()
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriter.cs (2)
700public static XmlWriter Create(TextWriter output) 706public static XmlWriter Create(TextWriter output, XmlWriterSettings settings)
FrameworkFork\Microsoft.Xml\Xml\Core\XmlWriterSettings.cs (1)
593internal XmlWriter CreateWriter(TextWriter output)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDocument.cs (1)
1364public virtual void Save(TextWriter writer)
FrameworkFork\Microsoft.Xml\Xml\Dom\XmlDomTextWriter.cs (1)
27public XmlDOMTextWriter(TextWriter w) : base(w)
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (2)
1066public TextWriter Open() 1084TextWriter w = Open();
FrameworkFork\Microsoft.Xml\Xml\schema\XmlSchema.cs (2)
146public void Write(TextWriter writer) 155public void Write(TextWriter writer, XmlNamespaceManager namespaceManager)
FrameworkFork\Microsoft.Xml\Xml\Serialization\IndentedWriter.cs (2)
18private TextWriter _writer; 23internal IndentedWriter(TextWriter writer, bool compact)
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializer.cs (2)
300public void Serialize(TextWriter textWriter, object o) 309public void Serialize(TextWriter textWriter, object o, XmlSerializerNamespaces namespaces)
FrameworkFork\Microsoft.Xml\Xml\Xslt\XsltCommand.cs (3)
54public void Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) 88public void Transform(XmlReader input, XsltArgumentList arguments, TextWriter results) 131public void Transform(string inputUri, XsltArgumentList arguments, TextWriter results)
FrameworkFork\System.Web.Services\Services\Description\ServiceDescription.cs (2)
450public void Write(TextWriter writer) 464TextWriter writer = new StreamWriter(stream);
dotnet-svcutil-lib.Tests (1)
UnitTest.cs (1)
30var originalOutput = Console.Out;
dotnet-user-jwts (9)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
dotnet-user-secrets (9)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
GenerateDocumentationAndConfigFiles (4)
JsonWriter.cs (3)
23/// Takes ownership of the given <see cref="TextWriter" /> at construction and handles its disposal. 27private readonly TextWriter _output; 34public JsonWriter(TextWriter output)
Program.cs (1)
629TextWriter textWriter;
GetDocument.Insider (11)
Commands\GetDocumentCommandWorker.cs (2)
42private static readonly Type[] _generateMethodParameterTypes = [typeof(string), typeof(TextWriter)]; 43private static readonly Type[] _generateWithVersionMethodParameterTypes = [typeof(string), typeof(TextWriter), typeof(OpenApiSpecVersion)];
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\ConsoleReporter.cs (1)
34protected virtual void WriteLine(TextWriter writer, string message, ConsoleColor? color)
src\Tools\Shared\CommandLine\IConsole.cs (2)
16TextWriter Out { get; } 17TextWriter Error { get; }
src\Tools\Shared\CommandLine\PhysicalConsole.cs (2)
26public TextWriter Error => Console.Error; 28public TextWriter Out => Console.Out;
HtmlGenerationWebSite (2)
Components\CheckViewData - LackModel.cs (1)
15var writer = ViewContext.Writer;
Components\CheckViewData.cs (1)
14var writer = ViewContext.Writer;
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
IOperationGenerator (1)
IOperationClassWriter.cs (1)
25private TextWriter _writer = null!;
Microsoft.Arcade.Common (9)
Command.cs (3)
130public ICommand ForwardStatus(TextWriter to = null) 160public ICommand ForwardStdOut(TextWriter to = null) 175public ICommand ForwardStdErr(TextWriter to = null)
CompactConsoleLoggerFormatter.cs (3)
50public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) 89private void WriteMessage(TextWriter textWriter, string message, bool includePadding = true) 136private static void WriteColoredMessage(TextWriter textWriter, string message, ConsoleColor? background, ConsoleColor? foreground)
ICommand.cs (3)
16ICommand ForwardStatus(TextWriter to = null); 17ICommand ForwardStdErr(TextWriter to = null); 18ICommand ForwardStdOut(TextWriter to = null);
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TestConsole.cs (2)
39public TextWriter Error { get; } 40public TextWriter Out { get; }
Microsoft.AspNetCore.Components.Endpoints (17)
Rendering\Buffering\BufferedTextWriter.cs (2)
11private readonly TextWriter _underlying; 17public BufferedTextWriter(TextWriter underlying)
Rendering\Buffering\TextChunk.cs (1)
54public Task WriteToAsync(TextWriter writer, string charArraySegments, ref StringBuilder? tempBuffer)
Rendering\Buffering\TextChunkListBuilder.cs (1)
35public async Task WriteToAsync(TextWriter writer, string charArraySegments)
Rendering\EndpointHtmlRenderer.cs (1)
233static async Task FlushThenComplete(TextWriter writerToFlush, Task completion)
Rendering\EndpointHtmlRenderer.Prerendering.cs (2)
319public async ValueTask WriteToAsync(TextWriter writer) 331public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Rendering\EndpointHtmlRenderer.PrerenderingState.cs (1)
215public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Rendering\EndpointHtmlRenderer.Streaming.cs (9)
22private TextWriter? _streamingUpdatesWriter; 46public async Task SendStreamingUpdatesAsync(HttpContext httpContext, Task untilTaskCompleted, TextWriter writer) 97internal void EmitInitializersIfNecessary(HttpContext httpContext, TextWriter writer) 109private void SendBatchAsStreamingUpdate(in RenderBatch renderBatch, TextWriter writer) 215private static void HandleExceptionAfterResponseStarted(HttpContext httpContext, TextWriter writer, Exception exception) 229private static void HandleNavigationAfterResponseStarted(TextWriter writer, HttpContext httpContext, string destinationUrl) 248protected override void WriteComponentHtml(int componentId, TextWriter output) 251protected override void RenderChildComponent(TextWriter output, ref RenderTreeFrame componentFrame) 258private void WriteComponentHtml(int componentId, TextWriter output, bool allowBoundaryMarkers, SequenceAndKey sequenceAndKey = default)
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Components.Web (12)
HtmlRendering\HtmlRootComponent.cs (1)
48public void WriteHtmlTo(TextWriter output)
HtmlRendering\StaticHtmlRenderer.HtmlWriting.cs (11)
33protected internal virtual void WriteComponentHtml(int componentId, TextWriter output) 48protected virtual void RenderChildComponent(TextWriter output, ref RenderTreeFrame componentFrame) 53private int RenderFrames(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 72TextWriter output, 104private int RenderElement(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position) 182private int RenderScriptElementChildren(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 201private void RenderHiddenFieldForNamedSubmitEvent(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int namedEventFramePosition) 274TextWriter output, 346void EmitFormActionIfNotExplicit(TextWriter output, bool isForm, bool hasExplicitActionValue) 377private int RenderChildren(int componentId, TextWriter output, ArrayRange<RenderTreeFrame> frames, int position, int maxElements) 387private int RenderChildComponent(TextWriter output, ArrayRange<RenderTreeFrame> frames, int position)
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Diagnostics (29)
src\Shared\Diagnostics\BaseView.cs (12)
132/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 138TextWriter writer, 215/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 226/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 229/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types. 233protected void WriteTo(TextWriter writer, object value) 252/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 254protected void WriteTo(TextWriter writer, string? value) 265/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 267protected static void WriteLiteralTo(TextWriter writer, object value) 275/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 277protected static void WriteLiteralTo(TextWriter writer, string value)
src\Shared\Diagnostics\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
src\Shared\RazorViews\BaseView.cs (7)
23private readonly Stack<TextWriter> _textWriterStack = new Stack<TextWriter>(); 43protected TextWriter Output { get; private set; } = default!; 99protected virtual void PushWriter(TextWriter writer) 107protected virtual TextWriter PopWriter() 234/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 247/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types.
src\Shared\RazorViews\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (29)
src\Shared\Diagnostics\BaseView.cs (12)
132/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 138TextWriter writer, 215/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 226/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 229/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types. 233protected void WriteTo(TextWriter writer, object value) 252/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 254protected void WriteTo(TextWriter writer, string? value) 265/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 267protected static void WriteLiteralTo(TextWriter writer, object value) 275/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 277protected static void WriteLiteralTo(TextWriter writer, string value)
src\Shared\Diagnostics\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
src\Shared\RazorViews\BaseView.cs (7)
23private readonly Stack<TextWriter> _textWriterStack = new Stack<TextWriter>(); 43protected TextWriter Output { get; private set; } = default!; 99protected virtual void PushWriter(TextWriter writer) 107protected virtual TextWriter PopWriter() 234/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 247/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types.
src\Shared\RazorViews\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Hosting (12)
src\Shared\RazorViews\BaseView.cs (7)
23private readonly Stack<TextWriter> _textWriterStack = new Stack<TextWriter>(); 43protected TextWriter Output { get; private set; } = default!; 99protected virtual void PushWriter(TextWriter writer) 107protected virtual TextWriter PopWriter() 234/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 247/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types.
src\Shared\RazorViews\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
Microsoft.AspNetCore.Html.Abstractions (7)
HtmlContentBuilder.cs (1)
157public void WriteTo(TextWriter writer, HtmlEncoder encoder)
HtmlFormattableString.cs (1)
55public void WriteTo(TextWriter writer, HtmlEncoder encoder)
HtmlString.cs (1)
38public void WriteTo(TextWriter writer, HtmlEncoder encoder)
IHtmlAsyncContent.cs (2)
14/// <param name="writer">The <see cref="TextWriter"/> to which the content is written.</param> 15ValueTask WriteToAsync(TextWriter writer);
IHtmlContent.cs (2)
17/// <param name="writer">The <see cref="TextWriter"/> to which the content is written.</param> 19void WriteTo(TextWriter writer, HtmlEncoder encoder);
Microsoft.AspNetCore.Html.Abstractions.Tests (5)
HtmlContentBuilderExtensionsTest.cs (4)
403public void WriteTo(TextWriter writer, HtmlEncoder encoder) 421public void WriteTo(TextWriter writer, HtmlEncoder encoder) 436public void WriteTo(TextWriter writer, HtmlEncoder encoder) 451public void WriteTo(TextWriter writer, HtmlEncoder encoder)
HtmlContentBuilderTest.cs (1)
241public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Mvc.Abstractions (6)
Formatters\OutputFormatterWriteContext.cs (6)
18/// <param name="writerFactory">The delegate used to create a <see cref="TextWriter"/> for writing the response.</param> 21public OutputFormatterWriteContext(HttpContext httpContext, Func<Stream, Encoding, TextWriter> writerFactory, Type? objectType, object? @object) 33/// Gets or sets a delegate used to create a <see cref="TextWriter"/> for writing text to the response. 41/// The <see cref="TextWriter"/> created by this delegate will encode text and write to the 42/// <see cref="HttpResponse.Body"/> stream. Call this delegate to create a <see cref="TextWriter"/> 50public virtual Func<Stream, Encoding, TextWriter> WriterFactory { get; protected set; }
Microsoft.AspNetCore.Mvc.Core (7)
Infrastructure\ContentResultExecutor.cs (1)
62await using (var textWriter = _httpResponseStreamWriterFactory.CreateWriter(response.Body, resolvedContentTypeEncoding))
Infrastructure\IHttpResponseStreamWriterFactory.cs (4)
11/// Creates <see cref="TextWriter"/> instances for writing to <see cref="Http.HttpResponse.Body"/>. 16/// Creates a new <see cref="TextWriter"/>. 20/// <returns>A <see cref="TextWriter"/>.</returns> 21TextWriter CreateWriter(Stream stream, Encoding encoding);
Infrastructure\MemoryPoolHttpResponseStreamWriterFactory.cs (1)
54public TextWriter CreateWriter(Stream stream, Encoding encoding)
Infrastructure\ObjectResultExecutor.cs (1)
55protected Func<Stream, Encoding, TextWriter> WriterFactory { get; }
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\JsonOutputFormatterTestBase.cs (1)
179Func<Stream, Encoding, TextWriter> writerFactory = null)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
TestHttpResponseStreamWriterFactory.cs (1)
14public TextWriter CreateWriter(Stream stream, Encoding encoding)
Microsoft.AspNetCore.Mvc.Formatters.Xml (14)
XmlDataContractSerializerOutputFormatter.cs (7)
169/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 173/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 180TextWriter writer, 193/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 198/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 206TextWriter writer, 268await using (var textWriter = context.WriterFactory(responseStream, writerSettings.Encoding))
XmlSerializerOutputFormatter.cs (7)
148/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 152/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 159TextWriter writer, 172/// Creates a new instance of <see cref="XmlWriter"/> using the given <see cref="TextWriter"/> and 177/// The underlying <see cref="TextWriter"/> which the <see cref="XmlWriter"/> should write to. 185TextWriter writer, 245await using (var textWriter = context.WriterFactory(responseStream, selectedEncoding))
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerOutputFormatterTest.cs (1)
828TextWriter writer,
XmlSerializerOutputFormatterTest.cs (1)
618TextWriter writer,
Microsoft.AspNetCore.Mvc.Localization (1)
LocalizedHtmlString.cs (1)
72public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.Mvc.Localization.Test (1)
HtmlLocalizerTest.cs (1)
149() => content.WriteTo(TextWriter.Null, new HtmlTestEncoder()));
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
NewtonsoftJsonOutputFormatter.cs (3)
90/// <param name="writer">The <see cref="TextWriter"/> used to write.</param> 92protected virtual JsonWriter CreateJsonWriter(TextWriter writer) 171await using (var writer = context.WriterFactory(responseStream, selectedEncoding))
NewtonsoftJsonResultExecutor.cs (1)
119await using (var writer = _writerFactory.CreateWriter(responseStream, resolvedContentTypeEncoding))
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Formatters\JsonOutputFormatterTestBase.cs (1)
179Func<Stream, Encoding, TextWriter> writerFactory = null)
Microsoft.AspNetCore.Mvc.Razor (25)
HelperResult.cs (8)
14private readonly Func<TextWriter, Task> _asyncAction; 20/// <see cref="WriteTo(TextWriter, HtmlEncoder)"/> is called.</param> 21/// <remarks>Calls to <see cref="WriteTo(TextWriter, HtmlEncoder)"/> result in a blocking invocation of 23public HelperResult(Func<TextWriter, Task> asyncAction) 31/// Gets the asynchronous delegate to invoke when <see cref="WriteTo(TextWriter, HtmlEncoder)"/> is called. 33public Func<TextWriter, Task> WriteAction => _asyncAction; 38/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 40public virtual void WriteTo(TextWriter writer, HtmlEncoder encoder)
RazorPageBase.cs (14)
27private readonly Stack<TextWriter> _textWriterStack = new Stack<TextWriter>(); 32private TextWriter? _pageWriter; 52/// Gets the <see cref="TextWriter"/> that the page is writing output to. 55/// Gets the <see cref="TextWriter"/> that the page is writing output to. 58public virtual TextWriter Output 321protected internal virtual void PushWriter(TextWriter writer) 335protected internal virtual TextWriter PopWriter() 338var writer = _textWriterStack.Pop(); 403var writer = Output; 438var writer = Output; 672/// Invokes <see cref="TextWriter.FlushAsync()"/> on <see cref="Output"/> and <see cref="m:Stream.FlushAsync"/> 840public TagHelperScopeInfo(ViewBuffer buffer, HtmlEncoder encoder, TextWriter writer) 851public TextWriter Writer { get; }
RazorView.cs (2)
114var oldWriter = context.Writer; 261await using (var writer = _bufferScope!.CreateWriter(context.Writer))
TagHelpers\UrlResolutionTagHelper.cs (1)
356public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.Mvc.Razor.Test (20)
DefaultTagHelperFactoryTest.cs (1)
163TextWriter.Null,
Infrastructure\DefaultTagHelperActivatorTest.cs (1)
49TextWriter.Null,
RazorPageActivatorTest.cs (1)
265TextWriter.Null,
RazorPageCreateTagHelperTest.cs (1)
100TextWriter.Null,
RazorPageTest.cs (8)
28private readonly Func<TextWriter, Task> NullAsyncWrite = writer => writer.WriteAsync(string.Empty); 218var originalWriter = page.Output; 866var writer = new Mock<TextWriter>(); 886var writer = new Mock<TextWriter>(); 904var writer = new Mock<TextWriter>(); 929var writer = new Mock<TextWriter>(); 1295var poppedWriter = page.PopWriter(); 1406TextWriter writer = null,
RazorViewTest.cs (8)
31TextWriter actual = null; 46var expected = viewContext.Writer; 77var expectedWriter = viewContext.Writer; 120var expectedWriter = viewContext.Writer; 196var expectedWriter = viewContext.Writer; 283TextWriter actual = null; 296var original = viewContext.Writer; 322var original = viewContext.Writer;
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvoker.cs (2)
115TextWriter.Null, 154TextWriter.Null,
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageTest.cs (1)
33var viewContext = new ViewContext(pageContext, NullView.Instance, viewData, tempData, TextWriter.Null, new HtmlHelperOptions());
Microsoft.AspNetCore.Mvc.TagHelpers (4)
CacheTagHelper.cs (1)
253public void WriteTo(TextWriter writer, HtmlEncoder encoder)
PartialTagHelper.cs (1)
198private async Task RenderPartialViewAsync(TextWriter writer, object model, IView view)
ScriptTagHelper.cs (1)
449TextWriter writer)
TagHelperOutputExtensions.cs (1)
351public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (11)
CacheTagHelperTest.cs (1)
937TextWriter.Null,
CacheTagKeyTest.cs (1)
545TextWriter.Null,
DistributedCacheTagHelperTest.cs (1)
743TextWriter.Null,
FormTagHelperTest.cs (1)
1166TextWriter.Null,
ImageTagHelperTest.cs (1)
306TextWriter.Null,
LinkTagHelperTest.cs (1)
1137TextWriter.Null,
PartialTagHelperTest.cs (1)
845TextWriter.Null,
ScriptTagHelperTest.cs (1)
1118TextWriter.Null,
TestableHtmlGenerator.cs (1)
88TextWriter.Null,
ValidationMessageTagHelperTest.cs (1)
477TextWriter.Null,
ValidationSummaryTagHelperTest.cs (1)
661TextWriter.Null,
Microsoft.AspNetCore.Mvc.ViewFeatures (40)
AntiforgeryExtensions.cs (1)
54public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Buffers\IViewBufferScope.cs (3)
28/// <param name="writer">The <see cref="TextWriter"/>.</param> 30TextWriter CreateWriter(TextWriter writer);
Buffers\MemoryPoolViewBufferScope.cs (2)
86public TextWriter CreateWriter(TextWriter writer)
Buffers\PagedBufferedTextWriter.cs (2)
13private readonly TextWriter _inner; 16public PagedBufferedTextWriter(ArrayPool<char> pool, TextWriter inner)
Buffers\ViewBuffer.cs (4)
178public void WriteTo(TextWriter writer, HtmlEncoder encoder) 208/// <param name="writer">The <see cref="TextWriter"/>.</param> 211public async Task WriteToAsync(TextWriter writer, HtmlEncoder encoder) 377public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Buffers\ViewBufferTextWriter.cs (4)
12/// A <see cref="TextWriter"/> that is backed by a unbuffered writer (over the Response stream) and/or a 22private readonly TextWriter _inner; 46/// The inner <see cref="TextWriter"/> to write output to when this instance is no longer buffering. 48public ViewBufferTextWriter(ViewBuffer buffer, Encoding encoding, HtmlEncoder htmlEncoder, TextWriter inner)
DefaultEditorTemplates.cs (2)
501public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 513public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
HtmlHelper.cs (2)
502/// <param name="writer">The <see cref="TextWriter"/>.</param> 508TextWriter writer)
Rendering\TagBuilder.cs (4)
234private void AppendAttributes(TextWriter writer, HtmlEncoder encoder) 320public void WriteTo(TextWriter writer, HtmlEncoder encoder) 354TextWriter writer, 410public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Rendering\ViewContext.cs (6)
45/// <param name="writer">The <see cref="TextWriter"/> to render output to.</param> 52TextWriter writer, 83/// <param name="writer">The <see cref="TextWriter"/> to render output to.</param> 88TextWriter writer) 191/// Gets or sets the <see cref="TextWriter"/> used to write the output. 193public TextWriter Writer { get; set; }
StringHtmlContent.cs (1)
30public void WriteTo(TextWriter writer, HtmlEncoder encoder)
ViewComponentResultExecutor.cs (2)
101await using var writer = _writerFactory.CreateWriter(response.Body, resolvedContentTypeEncoding); 127await using (var intermediateWriter = _writerFactory.CreateWriter(bufferingStream, resolvedContentTypeEncoding))
ViewComponents\ViewComponentContext.cs (4)
38/// <param name="writer">The <see cref="TextWriter"/> for writing output.</param> 44TextWriter writer) 114/// Gets the <see cref="TextWriter"/> for output. 119public TextWriter Writer => ViewContext.Writer;
ViewExecutor.cs (3)
162TextWriter.Null, 206await using (var writer = WriterFactory.CreateWriter(response.Body, resolvedContentTypeEncoding)) 210var oldWriter = viewContext.Writer;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (21)
Buffers\ViewBufferTextWriterTest.cs (1)
85var inner = new Mock<TextWriter>();
DefaultEditorTemplatesTest.cs (8)
100noopContentWithEmptyToString.Setup(c => c.WriteTo(It.IsAny<TextWriter>(), It.IsAny<HtmlEncoder>())); 107noopContentWithNonEmptyToString.Setup(c => c.WriteTo(It.IsAny<TextWriter>(), It.IsAny<HtmlEncoder>())); 115.Setup(c => c.WriteTo(It.IsAny<TextWriter>(), It.IsAny<HtmlEncoder>())) 116.Callback<TextWriter, HtmlEncoder>((writer, encoder) => 133.Setup(c => c.WriteTo(It.IsAny<TextWriter>(), It.IsAny<HtmlEncoder>())) 134.Callback<TextWriter, HtmlEncoder>((writer, encoder) => writer.Write("Some string")); 142.Setup(c => c.WriteTo(It.IsAny<TextWriter>(), It.IsAny<HtmlEncoder>())) 143.Callback<TextWriter, HtmlEncoder>((writer, encoder) => writer.Write("Some string"));
DefaultHtmlGeneratorTest.cs (1)
1044TextWriter.Null,
DefaultValidationHtmlAttributeProviderTest.cs (1)
264TextWriter.Null,
Rendering\ViewContextTests.cs (2)
27writer: TextWriter.Null, 54writer: TextWriter.Null,
ViewComponents\ContentViewComponentResultTest.cs (1)
47TextWriter.Null,
ViewComponents\HtmlContentViewComponentResultTest.cs (1)
47TextWriter.Null,
ViewComponents\ViewComponentContextTest.cs (4)
30TextWriter.Null, 41TextWriter.Null); 92TextWriter.Null, 101TextWriter.Null);
ViewComponents\ViewViewComponentResultTest.cs (2)
527TextWriter.Null, 542TextWriter.Null);
Microsoft.AspNetCore.Mvc.Views.TestCommon (2)
TestViewBufferScope.cs (2)
26public TextWriter CreateWriter(TextWriter writer)
Microsoft.AspNetCore.OpenApi (4)
Services\IDocumentProvider.cs (2)
24Task GenerateAsync(string documentName, TextWriter writer); 25Task GenerateAsync(string documentName, TextWriter writer, OpenApiSpecVersion openApiSpecVersion);
Services\OpenApiDocumentProvider.cs (2)
26public async Task GenerateAsync(string documentName, TextWriter writer) 44public async Task GenerateAsync(string documentName, TextWriter writer, OpenApiSpecVersion openApiSpecVersion)
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests (1)
SnapshotTestHelper.cs (1)
202var targetMethod = serviceType.GetMethod("GenerateAsync", [typeof(string), typeof(TextWriter)]) ?? throw new InvalidOperationException("Could not resolve GenerateAsync method.");
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Razor (7)
TagHelpers\DefaultTagHelperContent.cs (2)
179public override void WriteTo(TextWriter writer, HtmlEncoder encoder) 201private static void WriteToCore(object entry, TextWriter writer, HtmlEncoder encoder)
TagHelpers\NullHtmlEncoder.cs (2)
40public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 54public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
TagHelpers\TagHelperAttribute.cs (1)
81public void WriteTo(TextWriter writer, HtmlEncoder encoder)
TagHelpers\TagHelperContent.cs (1)
155public abstract void WriteTo(TextWriter writer, HtmlEncoder encoder);
TagHelpers\TagHelperOutput.cs (1)
382public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.Razor.Test (2)
TagHelpers\DefaultTagHelperContentTest.cs (2)
807public void WriteTo(TextWriter writer, HtmlEncoder encoder) 821public void WriteTo(TextWriter writer, HtmlEncoder encoder)
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Routing (4)
Internal\DfaGraphWriter.cs (2)
39/// <param name="writer">The <see cref="TextWriter"/> to which the content is written.</param> 40public void Write(EndpointDataSource dataSource, TextWriter writer)
UriBuildingContext.cs (2)
51public TextWriter PathWriter { get; } 53public TextWriter QueryWriter { get; }
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Server.IIS (12)
src\Shared\RazorViews\BaseView.cs (7)
23private readonly Stack<TextWriter> _textWriterStack = new Stack<TextWriter>(); 43protected TextWriter Output { get; private set; } = default!; 99protected virtual void PushWriter(TextWriter writer) 107protected virtual TextWriter PopWriter() 234/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked 247/// <see cref="HelperResult.WriteTo(TextWriter)"/> is invoked for <see cref="HelperResult"/> types.
src\Shared\RazorViews\HelperResult.cs (5)
17/// <param name="action">The delegate to invoke when <see cref="WriteTo(TextWriter)"/> is called.</param> 18public HelperResult(Action<TextWriter> action) 23public Action<TextWriter> WriteAction { get; } 28/// <param name="writer">The <see cref="TextWriter"/> instance to write to.</param> 29public void WriteTo(TextWriter writer)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.Shared.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
src\SignalR\common\Shared\JsonUtils.cs (1)
26internal static JsonTextWriter CreateJsonTextWriter(TextWriter textWriter)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
RedisOptions.cs (2)
27public Func<TextWriter, Task<IConnectionMultiplexer>>? ConnectionFactory { get; set; } 29internal async Task<IConnectionMultiplexer> ConnectAsync(TextWriter log)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (3)
TestConnectionMultiplexer.cs (3)
102public bool Configure(TextWriter log = null) 107public Task<bool> ConfigureAsync(TextWriter log = null) 162public void GetStatus(TextWriter log)
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.Build (17)
BackEnd\Node\OutOfProcServerNode.cs (2)
415var oldOut = Console.Out; 416var oldErr = Console.Error;
Construction\ProjectRootElement.cs (1)
1619public void Save(TextWriter writer)
Definition\Project.cs (3)
1469public void Save(TextWriter writer) 1478public void SaveLogicalProject(TextWriter writer) 3317public override void SaveLogicalProject(TextWriter writer)
ElementLocation\XmlDocumentWithLocation.cs (1)
309public override void Save(TextWriter writer)
Logging\TerminalLogger\Terminal.cs (2)
35internal TextWriter Output { private get; set; } 85internal Terminal(TextWriter output)
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (2)
196/// Facilitate remoting the <see cref="ProjectRootElement.Save(TextWriter)"/>. 198public abstract void Save(TextWriter writer);
ObjectModelRemoting\DefinitionObjectsLinks\ProjectLink.cs (1)
251public abstract void SaveLogicalProject(TextWriter writer);
ProjectWriter.cs (1)
78internal ProjectWriter(TextWriter w)
StringExtensions.cs (4)
80/// Adds the missing span-taking overload to .NET Framework version of <see cref="TextWriter"/>. 82public static void Write(this TextWriter writer, ReadOnlySpan<char> buffer) 88/// Adds the missing span-taking overload to .NET Framework version of <see cref="TextWriter"/>. 90public static void WriteLine(this TextWriter writer, ReadOnlySpan<char> buffer)
Microsoft.Build.Engine.OM.UnitTests (4)
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
140public void Save(TextWriter writer) { this.ProjectXml.Save(writer); } 322public override void Save(TextWriter writer)
ObjectModelRemoting\RemoteProjectsProviderMock\EvaluationLinkMocks\MockProjectLink.cs (2)
105public void SaveLogicalProject(TextWriter writer) 241public override void SaveLogicalProject(TextWriter writer) => this.Proxy.SaveLogicalProject(writer);
Microsoft.Build.Tasks.CodeAnalysis (4)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (4)
18/// provided call back. The newly created <see cref="TextWriter"/> will be passed down to the callback. 20internal static T RunWithUtf8Output<T>(Func<TextWriter, T> func) 41internal static T RunWithUtf8Output<T>(bool utf8Output, TextWriter textWriter, Func<TextWriter, T> func)
Microsoft.Build.Tasks.Core (1)
GenerateResource.cs (1)
3460using (TextWriter output = new StreamWriter(_stronglyTypedFilename))
Microsoft.Build.UnitTests.Shared (2)
StreamHelpers.cs (2)
24TextWriter w = new StreamWriter(m, System.Text.Encoding.UTF8); 58TextWriter w = new StreamWriter(m, encoding); // HIGHCHAR: StringToStream helper accepts encoding from caller.
Microsoft.Cci.Extensions (15)
Experimental\APIEmitter.cs (1)
18private TextWriter _writer;
Writers\DocumentIdWriter.cs (2)
16private readonly TextWriter _writer; 19public DocumentIdWriter(TextWriter writer, ICciFilter filter, DocIdKinds kinds)
Writers\Syntax\HtmlSyntaxWriter.cs (1)
21public HtmlSyntaxWriter(TextWriter writer)
Writers\Syntax\IndentionSyntaxWriter.cs (4)
15private readonly TextWriter _writer; 20public IndentionSyntaxWriter(TextWriter writer) 45protected virtual void WriteLine(TextWriter writer) 50protected virtual void WriteIndent(TextWriter writer, string indent)
Writers\Syntax\OpenXmlSyntaxWriter.cs (3)
20public OpenXmlSyntaxWriter(TextWriter writer) 83protected override void WriteLine(TextWriter writer) 90protected override void WriteIndent(TextWriter writer, string indent)
Writers\Syntax\TextSyntaxWriter.cs (1)
12public TextSyntaxWriter(TextWriter writer)
Writers\Syntax\UnifiedDiffSyntaxWriter.cs (1)
33public UnifiedDiffSyntaxWriter(TextWriter writer)
Writers\TypeForwardWriter.cs (2)
17private TextWriter _writer; 18public TypeForwardWriter(TextWriter writer, ICciFilter filter)
Microsoft.CodeAnalysis (41)
CommandLine\CommonCompiler.cs (14)
96TextWriter consoleOutput, 102public abstract void PrintLogo(TextWriter consoleOutput); 103public abstract void PrintHelp(TextWriter consoleOutput); 104public abstract void PrintLangVersions(TextWriter consoleOutput); 110public virtual void PrintVersion(TextWriter consoleOutput) 526internal bool ReportDiagnostics(IEnumerable<Diagnostic> diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation) 597private bool ReportDiagnostics(DiagnosticBag diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation) 601internal bool ReportDiagnostics(IEnumerable<DiagnosticInfo> diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation) 607private void ReportIVTInfos(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics) 664private protected abstract void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics); 713protected virtual void PrintError(Diagnostic diagnostic, TextWriter consoleOutput) 718public SarifErrorLogger? GetErrorLogger(TextWriter consoleOutput) 758public virtual int Run(TextWriter consoleOutput, CancellationToken cancellationToken = default) 879private int RunCore(TextWriter consoleOutput, ErrorLogger? errorLogger, CancellationToken cancellationToken)
CommandLine\NoThrowStreamDisposer.cs (1)
13/// writes them to the given <see cref="TextWriter"/>. Check
CommandLine\ReportAnalyzerUtil.cs (3)
19TextWriter consoleOutput, 65private static void ReportAnalyzerExecutionTime(TextWriter consoleOutput, AnalyzerDriver analyzerDriver, CultureInfo culture) 112private static void ReportGeneratorExecutionTime(TextWriter consoleOutput, GeneratorDriverTimingInfo driverTimingInfo, CultureInfo culture)
CommandLine\TouchedFileLogger.cs (5)
29/// Semantics are undefined after a call to <see cref="WriteReadPaths(TextWriter)" />. 39/// Semantics are undefined after a call to <see cref="WriteWrittenPaths(TextWriter)" />. 50/// <see cref="WriteWrittenPaths(TextWriter)" />. 63public void WriteReadPaths(TextWriter s) 88public void WriteWrittenPaths(TextWriter s)
InternalUtilities\JsonWriter.cs (3)
23/// Takes ownership of the given <see cref="TextWriter" /> at construction and handles its disposal. 27private readonly TextWriter _output; 34public JsonWriter(TextWriter output)
Syntax\GreenNode.cs (5)
626public void WriteTo(System.IO.TextWriter writer) 631protected internal void WriteTo(TextWriter writer, bool leading, bool trailing) 644TextWriter writer, 715protected virtual void WriteTriviaTo(TextWriter writer) 720protected virtual void WriteTokenTo(TextWriter writer, bool leading, bool trailing)
Syntax\SyntaxNode.cs (2)
306/// Writes the full text of this node to the specified <see cref="TextWriter"/>. 308public virtual void WriteTo(TextWriter writer)
Syntax\SyntaxNodeOrToken.cs (1)
337public void WriteTo(System.IO.TextWriter writer)
Syntax\SyntaxToken.cs (2)
178public void WriteTo(System.IO.TextWriter writer) 186internal void WriteTo(System.IO.TextWriter writer, bool leading, bool trailing)
Syntax\SyntaxTrivia.cs (1)
243public void WriteTo(System.IO.TextWriter writer)
Text\LargeText.cs (1)
182public override void Write(TextWriter writer, TextSpan span, CancellationToken cancellationToken = default(CancellationToken))
Text\SourceText.cs (2)
541public void Write(TextWriter textWriter, CancellationToken cancellationToken = default(CancellationToken)) 549public virtual void Write(TextWriter writer, TextSpan span, CancellationToken cancellationToken = default(CancellationToken))
Text\StringText.cs (1)
91public override void Write(TextWriter textWriter, TextSpan span, CancellationToken cancellationToken = default(CancellationToken))
Microsoft.CodeAnalysis.CSharp (11)
CommandLine\CSharpCompiler.cs (5)
39TextWriter consoleOutput, 275public override void PrintLogo(TextWriter consoleOutput) 282public override void PrintLangVersions(TextWriter consoleOutput) 323public override void PrintHelp(TextWriter consoleOutput) 381private protected override void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics)
Compiler\DocumentationCommentCompiler.cs (3)
36private readonly TextWriter _writer; //never write directly - always use a helper 54TextWriter writer, 396TextWriter? expanderWriter = shouldSkipPartialDefinitionComments ? null : _writer; // Don't actually write partial method definition parts.
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (1)
73TextWriter writer,
Syntax\InternalSyntax\SyntaxToken.cs (1)
405protected override void WriteTokenTo(System.IO.TextWriter writer, bool leading, bool trailing)
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
85protected override void WriteTriviaTo(System.IO.TextWriter writer)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (5)
CommandLineTests.cs (5)
7365var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7387var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7409var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7429var comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance); 7433comp = cmd.CreateCompilation(TextWriter.Null, new TouchedFileLogger(), NullErrorLogger.Instance);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
PDB\PortablePdbTests.cs (1)
60TextWriter writer = new StringWriter();
Microsoft.CodeAnalysis.CSharp.Scripting (2)
Hosting\CommandLine\Csi.cs (2)
37public override void PrintLogo(TextWriter consoleOutput) 44public override void PrintHelp(TextWriter consoleOutput)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
MockCSharpCompiler.cs (2)
72TextWriter consoleOutput, 78TextWriter consoleOutput,
Microsoft.CodeAnalysis.EditorFeatures.Text (1)
Extensions.SnapshotSourceText.cs (1)
312public override void Write(TextWriter textWriter, TextSpan span, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.InteractiveHost (13)
Interactive\Core\InteractiveHost.cs (10)
56private TextWriter _output; 57private TextWriter _errorOutput; 80_output = TextWriter.Null; 81_errorOutput = TextWriter.Null; 117_ = Task.Run(() => SetOutputs(TextWriter.Null, TextWriter.Null)); 128public void SetOutputs(TextWriter output, TextWriter errorOutput) 157var writer = error ? _errorOutput : _output; 168var writer = isError ? _errorOutput : _output;
Interactive\Core\InteractiveHost.Service.cs (3)
534var writer = (error.Severity == DiagnosticSeverity.Error) ? Console.Error : Console.Out; 731private static void DisplaySearchPaths(TextWriter writer, List<string> attemptedFilePaths) 775private void DisplayInteractiveErrors(ImmutableArray<Diagnostic> diagnostics, TextWriter output)
Microsoft.CodeAnalysis.Scripting (8)
Hosting\CommandLine\CommandLineScriptGlobals.cs (2)
24private readonly TextWriter _outputWriter; 42public CommandLineScriptGlobals(TextWriter outputWriter, ObjectFormatter objectFormatter)
Hosting\CommandLine\ConsoleIO.cs (4)
17public TextWriter Error { get; } 18public TextWriter Out { get; } 21public ConsoleIO(TextWriter output, TextWriter error, TextReader input)
Hosting\InteractiveScriptGlobals.cs (2)
26private readonly TextWriter _outputWriter; 47public InteractiveScriptGlobals(TextWriter outputWriter, ObjectFormatter objectFormatter)
Microsoft.CodeAnalysis.Scripting.TestUtilities (3)
TestConsoleIO.cs (3)
28private TestConsoleIO(Reader reader, TextWriter output) 109private readonly TextWriter _other; 111public TeeWriter(TextWriter other)
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\RuntimeUtilities.cs (2)
86var savedConsoleOut = Console.Out; 87var savedConsoleError = Console.Error;
Microsoft.CodeAnalysis.UnitTests (2)
Text\SourceTextTests.cs (2)
456SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(4, 4))); 465SourceText.From("ABC").Write(TextWriter.Null, TextSpan.FromBounds(2, 4)));
Microsoft.CodeAnalysis.VisualBasic (14)
CommandLine\VisualBasicCompiler.vb (7)
55Private Function ParseFile(consoleOutput As TextWriter, 86Public Overrides Function CreateCompilation(consoleOutput As TextWriter, 183Private Sub PrintReferences(resolvedReferences As List(Of MetadataReference), consoleOutput As TextWriter) 211Public Overrides Sub PrintLogo(consoleOutput As TextWriter) 232Public Overrides Sub PrintHelp(consoleOutput As TextWriter) 236Public Overrides Sub PrintLangVersions(consoleOutput As TextWriter) 305Private Protected Overrides Sub DiagnoseBadAccesses(consoleOutput As TextWriter, errorLogger As ErrorLogger, compilation As Compilation, diagnostics As ImmutableArray(Of Diagnostic))
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (1)
35Private Sub New(assemblyName As String, compilation As VisualBasicCompilation, writer As TextWriter,
Compilation\DocumentationComments\DocumentationCommentWalker.vb (2)
35Private ReadOnly _writer As TextWriter 41writer As TextWriter,
Compilation\DocumentationComments\DocWriter.vb (2)
22Private ReadOnly _writer As TextWriter 27Public Sub New(writer As TextWriter)
Syntax\InternalSyntax\SyntaxToken.vb (1)
225Protected Overrides Sub WriteTokenTo(writer As System.IO.TextWriter, leading As Boolean, trailing As Boolean)
Syntax\InternalSyntax\SyntaxTrivia.vb (1)
72Protected Overrides Sub WriteTriviaTo(writer As System.IO.TextWriter)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (4)
CommandLineTests.vb (4)
388Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 407Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 426Dim comp = cmd.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing) 9732Dim comp = vbc.CreateCompilation(TextWriter.Null, New TouchedFileLogger(), NullErrorLogger.Instance, Nothing)
Microsoft.CodeAnalysis.VisualBasic.Scripting (2)
Hosting\CommandLine\Vbi.vb (2)
38Public Overrides Sub PrintLogo(consoleOutput As TextWriter) 44Public Overrides Sub PrintHelp(consoleOutput As TextWriter)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Syntax\StatementSyntaxWalkerTests.vb (2)
109Private ReadOnly _arg As TextWriter 111Public Sub New(arg As TextWriter)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (2)
MockVisualBasicCompiler.vb (2)
69Public Overloads Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult)) As Compilation 73Public Overrides Function CreateCompilation(consoleOutput As TextWriter, touchedFilesLogger As TouchedFileLogger, errorLogger As ErrorLogger, syntaxTreeDiagnosticOptionsOpt As ImmutableArray(Of AnalyzerConfigOptionsResult), globalConfigOptions As AnalyzerConfigOptionsResult) As Compilation
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
BuildHostLogger.cs (1)
10internal sealed class BuildHostLogger(TextWriter output)
Rpc\RpcServer.cs (1)
29private readonly TextWriter _streamWriter;
src\Compilers\Core\Portable\InternalUtilities\JsonWriter.cs (3)
23/// Takes ownership of the given <see cref="TextWriter" /> at construction and handles its disposal. 27private readonly TextWriter _output; 34public JsonWriter(TextWriter output)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
src\Workspaces\MSBuild\BuildHost\Rpc\RpcServer.cs (1)
29private readonly TextWriter _streamWriter;
Microsoft.DotNet.AsmDiff (9)
Csv\CsvTextWriter.cs (3)
11private TextWriter _textWriter; 15public CsvTextWriter(TextWriter textWriter) 20public CsvTextWriter(TextWriter textWriter, CsvSettings settings)
DiffEngine.cs (3)
20public static void Export(DiffConfiguration configuration, IEnumerable<DiffComment> diffComments, DiffFormat format, TextWriter streamWriter) 47private static ICciDifferenceWriter CreateExportWriter(DiffFormat format, TextWriter textWriter, DiffConfiguration configuration, IStyleSyntaxWriter writer, IEnumerable<DiffComment> diffComments) 78private static IStyleSyntaxWriter GetExportWriter(DiffFormat format, TextWriter textWriter, bool strikeOutRemoved)
MarkdownDiffExporter.cs (1)
177private static void WriteDiff(TextWriter writer, string marker, string indent, string suffix, IDefinition api)
Program.cs (2)
114using (TextWriter output = GetOutput()) 203public TextWriter GetOutput()
Microsoft.DotNet.GenAPI (5)
GenAPITask.cs (5)
205using (TextWriter output = GetOutput(OutputPath, GetFilename(assembly, _writerType, _syntaxWriterType))) 233using (TextWriter output = GetOutput(OutputPath)) 282private static TextWriter GetOutput(string outFilePath, string filename = "") 358private static IStyleSyntaxWriter GetSyntaxWriter(TextWriter output, WriterType writer, SyntaxWriterType syntax) 371private ICciWriter GetWriter(TextWriter output, ISyntaxWriter syntaxWriter, bool includeInternals)
Microsoft.DotNet.Open.Api.Tools.Tests (4)
OpenApiTestBase.cs (2)
17protected readonly TextWriter _output = new StringWriter(); 18protected readonly TextWriter _error = new StringWriter();
src\Tools\Shared\TestHelpers\TestConsole.cs (2)
39public TextWriter Error { get; } 40public TextWriter Out { get; }
Microsoft.DotNet.SignCheckLibrary (2)
Utils.cs (2)
140var consoleOutput = Console.Out; 144var errorOutput = Console.Error;
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (22)
HelperFactory.cs (7)
128var outputParameter = Expression.Parameter(typeof(TextWriter), "output"); 136new ProvidedParameter("output", typeof(TextWriter), outputParameter), 137new ProvidedParameter("template", typeof(Action<TextWriter, object>), Expression.MakeMemberAccess(optionsParameter, typeof(HelperOptions).GetProperty("Template"))), 138new ProvidedParameter("inverse", typeof(Action<TextWriter, object>), Expression.MakeMemberAccess(optionsParameter, typeof(HelperOptions).GetProperty("Inverse"))), 175var outputParameter = Expression.Parameter(typeof(TextWriter), "output"); 182new ProvidedParameter("output", typeof(TextWriter), outputParameter), 211new[] {typeof(TextWriter), typeof(string)});
Languages\angular\Angular.cs (8)
105TextWriter output, 107Action<TextWriter, object> template, 194TextWriter output, 196Action<TextWriter, object> template, 282public static void Serialize(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, params object[] args) 312public static void Deserialize(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, params object[] args)
Languages\csharp\CSharp.cs (4)
165public void NullCheck(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, bool required) 181public void NotNullCheck(TextWriter output, object context, Action<TextWriter, object> template, TypeReference reference, bool required)
Languages\Language.cs (2)
13public delegate void Template(TextWriter writer, object context); 39private static Action<TextWriter, object> LoadTemplateFile(IHandlebars hb, string path)
ServiceClientCodeFactory.cs (1)
86hb.RegisterTemplate(name, new Action<TextWriter, object>(template));
Microsoft.DotNet.XliffTasks (8)
Model\Document.cs (1)
108public abstract void Save(TextWriter writer);
Model\JsonDocument.cs (1)
29protected override void SaveCore(TextWriter writer)
Model\TranslatableDocument.cs (2)
40public sealed override void Save(TextWriter writer) 72protected abstract void SaveCore(TextWriter writer);
Model\TranslatableXmlDocument.cs (1)
22protected override void SaveCore(TextWriter writer)
Model\UnstructuredDocument.cs (1)
69protected override void SaveCore(TextWriter writer)
Model\XDocumentExtensions.cs (1)
16public static void SaveCustom(this XDocument document, TextWriter writer)
Model\XlfDocument.cs (1)
65public override void Save(System.IO.TextWriter writer)
Microsoft.Extensions.ApiDescription.Tool.Tests (2)
src\Tools\Shared\TestHelpers\TestConsole.cs (2)
39public TextWriter Error { get; } 40public TextWriter Out { get; }
Microsoft.Extensions.Diagnostics (2)
Metrics\DebugConsoleMetricListener.cs (2)
19internal TextWriter? _textWriter; // For testing 69var writer = _textWriter ?? Console.Out;
Microsoft.Extensions.Logging.Console (15)
AnsiLogConsole.cs (1)
13private readonly TextWriter _textWriter;
AnsiParsingLogConsole.cs (1)
16private readonly TextWriter _textWriter;
ConsoleFormatter.cs (1)
41public abstract void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter);
JsonConsoleFormatter.cs (2)
29public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) 56private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string? message, LogLevel logLevel,
SimpleConsoleFormatter.cs (5)
47public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) 68private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string message, LogLevel logLevel, 132private static void WriteMessage(TextWriter textWriter, string message, bool singleLine) 149static void WriteReplacing(TextWriter writer, string oldValue, string newValue, string message) 201private void WriteScopeInformation(TextWriter textWriter, IExternalScopeProvider? scopeProvider, bool singleLine)
SystemdConsoleFormatter.cs (4)
37public override void Write<TState>(in LogEntry<TState> logEntry, IExternalScopeProvider? scopeProvider, TextWriter textWriter) 58private void WriteInternal(IExternalScopeProvider? scopeProvider, TextWriter textWriter, string message, LogLevel logLevel, string category, 106static void WriteReplacingNewLine(TextWriter writer, string message) 135private void WriteScopeInformation(TextWriter textWriter, IExternalScopeProvider? scopeProvider)
TextWriterExtensions.cs (1)
11public static void WriteColoredMessage(this TextWriter textWriter, string message, ConsoleColor? background, ConsoleColor? foreground)
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
21private static TextWriter _standardOutput;
Microsoft.Extensions.SecretManager.Tools.Tests (2)
src\Tools\Shared\TestHelpers\TestConsole.cs (2)
39public TextWriter Error { get; } 40public TextWriter Out { get; }
Microsoft.Extensions.WebEncoders (6)
Testing\HtmlTestEncoder.cs (2)
36public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 52public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
Testing\JavaScriptTestEncoder.cs (2)
36public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 52public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
Testing\UrlTestEncoder.cs (2)
36public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 52public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
Microsoft.Maui.Graphics (6)
Text\CountingWriter.cs (2)
8 private readonly TextWriter _writer; 11 public CountingWriter(TextWriter writer)
Text\XmlAttributedTextWriter.cs (4)
22 TextWriter writer) 55 TextWriter writer) 82 TextWriter writer) 90 private void WriteAttribute(TextWriter writer, string attribute, string value)
Microsoft.Maui.Resizetizer (2)
GenerateSplashStoryboard.cs (2)
107 internal static void SubstituteStoryboard(TextWriter writer, string resourceName, string? image, SKColor color) 122 internal static void SubstituteStoryboard(TextWriter writer, string resourceName, string? image, string r, string g, string b, string a)
Microsoft.ML.AutoML.Interactive (3)
AutoMLMonitorKernelExtension.cs (3)
45private static void WriteSummary(NotebookMonitor monitor, TextWriter writer) 72private static void WriteChart(NotebookMonitor monitor, TextWriter writer) 96private static void WriteTable(NotebookMonitor notebookMonitor, TextWriter writer)
Microsoft.ML.Core (24)
Data\ModelSaveContext.cs (1)
155internal void SaveTextStream(string name, Action<TextWriter> action)
Environment\ConsoleEnvironment.cs (21)
27private readonly TextWriter _out; 28private readonly TextWriter _err; 29private readonly TextWriter _test; 39public ConsoleWriter(ConsoleEnvironment parent, TextWriter outWriter, TextWriter errWriter, TextWriter testWriter = null) 83var wr = isError ? _err : _out; 116private string WriteAndReturnLinePrefix(MessageSensitivity sensitivity, TextWriter writer) 124private void WriteHeader(TextWriter wr, PipeBase<ChannelMessage> commChannel) 132private void WriteName(TextWriter wr, ChannelProviderBase provider) 250private static void PrintOperationStart(TextWriter writer, ProgressReporting.ProgressEvent ev) 255private static void PrintOperationStop(TextWriter writer, ProgressReporting.ProgressEvent ev) 260private void PrintProgressLine(TextWriter writer, ProgressReporting.ProgressEvent ev) 355private readonly TextWriter _testWriter; 368TextWriter outWriter = null, TextWriter errWriter = null, TextWriter testWriter = null) 423internal IDisposable RedirectChannelOutput(TextWriter newOutWriter, TextWriter newErrWriter) 441public OutputRedirector(ConsoleEnvironment env, TextWriter newOutWriter, TextWriter newErrWriter)
Environment\HostEnvironmentBase.cs (1)
539public virtual void PrintMessageNormalized(TextWriter writer, string message, bool removeLastNewLine, string prefix = null)
Utilities\Stream.cs (1)
26public static void CloseEx(this TextWriter writer)
Microsoft.ML.Data (28)
Commands\ShowSchemaCommand.cs (2)
83internal static void RunOnData(TextWriter writer, Arguments args, IDataView data) 117private static void PrintSchema(TextWriter writer, Arguments args, DataViewSchema schema, ITransposeDataView transposeDataView)
DataLoadSave\Text\TextSaver.cs (4)
389private void WriteDataCore(IChannel ch, TextWriter writer, IDataView data, 456private void WriteSchemaAsComment(TextWriter writer, string str) 527private readonly TextWriter _writer; 552public State(TextSaver parent, TextWriter writer, ValueWriter[] pipes, bool hasHeader)
Dirty\PredictorInterfaces.cs (4)
81void SaveAsText(TextWriter writer, RoleMappedSchema schema); 90void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null); 99void SaveSummary(TextWriter writer, RoleMappedSchema schema); 136void SaveAsCode(TextWriter writer, RoleMappedSchema schema);
Dirty\PredictorUtils.cs (4)
18public static void SaveSummary(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 38public static void SaveText(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 85public static void SaveIni(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 117public static void SaveCode(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer)
Prediction\Calibrator.cs (5)
225void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) 232void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) 240void ICanSaveInSourceCode.SaveAsCode(TextWriter writer, RoleMappedSchema schema) 248void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) 1760ctx.SaveTextStream("Calibrator.txt", (Action<TextWriter>)(writer =>
Scorers\SchemaBindablePredictorWrapper.cs (1)
182void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema)
Transforms\ValueToKeyMappingTransformerImpl.cs (8)
576internal abstract void WriteTextTerms(TextWriter writer); 669internal override void WriteTextTerms(TextWriter writer) 747internal override void WriteTextTerms(TextWriter writer) 869public virtual void WriteTextTerms(TextWriter writer) 1083private static readonly FuncInstanceMethodInfo1<KeyImpl<T>, PrimitiveDataViewType, TextWriter, bool> _writeTextTermsCoreMethodInfo 1084= FuncInstanceMethodInfo1<KeyImpl<T>, PrimitiveDataViewType, TextWriter, bool>.Create(target => target.WriteTextTermsCore<int>); 1173public override void WriteTextTerms(TextWriter writer) 1188private bool WriteTextTermsCore<TMeta>(PrimitiveDataViewType srcMetaType, TextWriter writer)
Microsoft.ML.Ensemble (3)
PipelineEnsemble.cs (1)
569void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema)
Trainer\EnsembleModelParametersBase.cs (2)
130void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) 146void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.FastTree (10)
FastTree.cs (7)
2962void ICanSaveInSourceCode.SaveAsCode(TextWriter writer, RoleMappedSchema schema) 2971void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) 2981void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) 3134void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) 3178private void SaveEnsembleAsCode(TextWriter writer, RoleMappedSchema schema) 3202private void SaveTreeAsCode(InternalRegressionTree tree, TextWriter writer, in VBuffer<ReadOnlyMemory<char>> names) 3208private void ToCSharp(InternalRegressionTree tree, TextWriter writer, int node, in VBuffer<ReadOnlyMemory<char>> names)
GamModelParameters.cs (3)
356void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) 397void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) 436void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator)
Microsoft.ML.KMeansClustering (1)
KMeansModelParameters.cs (1)
178void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.Maml (2)
MAML.cs (2)
237private static void PrintFullExceptionDetails(TextWriter writer, Exception ex) 273private static void PrintExceptionData(TextWriter writer, Exception ex, bool includeComponents)
Microsoft.ML.Mkl.Components (1)
OlsLinearRegression.cs (1)
899private protected override void SaveSummary(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.PCA (2)
PcaTrainer.cs (2)
555void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) 560void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.Predictor.Tests (3)
CompareBaselines.cs (3)
64private void CompareDirs(TextWriter log, string root1, string root2, string rel) 150public void Report(TextWriter log, string path) 165private void CompareFiles(TextWriter log, string root1, string root2, string rel)
Microsoft.ML.Recommender (1)
MatrixFactorizationPredictor.cs (1)
193void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.ResultProcessor (1)
ResultProcessor.cs (1)
1081TextWriter outStream = (cmd.OutputFile != null && cmd.OutputFile.Length > 1
Microsoft.ML.StandardTrainers (28)
Standard\LinearModelParameters.cs (11)
352void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) 360void ICanSaveInSourceCode.SaveAsCode(TextWriter writer, RoleMappedSchema schema) 370private protected abstract void SaveSummary(TextWriter writer, RoleMappedSchema schema); 372void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) => SaveSummary(writer, schema); 393private protected abstract void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null); 395void ICanSaveInIniFormat.SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) => SaveAsIni(writer, schema, calibrator); 523private protected override void SaveSummary(TextWriter writer, RoleMappedSchema schema) 557private protected override void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator = null) 591private protected override void SaveAsIni(TextWriter writer, RoleMappedSchema schema, ICalibrator calibrator) 658private protected override void SaveSummary(TextWriter writer, RoleMappedSchema schema) 759private protected override void SaveSummary(TextWriter writer, RoleMappedSchema schema)
Standard\LinearPredictorUtils.cs (1)
31public static void SaveAsCode(TextWriter writer, in VBuffer<float> weights, float bias,
Standard\LogisticRegression\MulticlassLogisticRegression.cs (12)
870/// Actual implementation of <see cref="ICanSaveInTextFormat.SaveAsText(TextWriter, RoleMappedSchema)"/> should happen in derived classes. 872private void SaveAsTextCore(TextWriter writer, RoleMappedSchema schema) 889/// Redirect <see cref="ICanSaveInTextFormat.SaveAsText(TextWriter, RoleMappedSchema)"/> call to the right function. 891void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema) => SaveAsTextCore(writer, schema); 896void ICanSaveSummary.SaveSummary(TextWriter writer, RoleMappedSchema schema) 902/// Actual implementation of <see cref="ICanSaveInSourceCode.SaveAsCode(TextWriter, RoleMappedSchema)"/> should happen in derived classes. 904private void SaveAsCodeCore(TextWriter writer, RoleMappedSchema schema) 925private protected abstract void SavePostTransformAsCode(TextWriter writer, string scoresName); 928/// Redirect <see cref="ICanSaveInSourceCode.SaveAsCode(TextWriter, RoleMappedSchema)"/> call to the right function. 930void ICanSaveInSourceCode.SaveAsCode(TextWriter writer, RoleMappedSchema schema) => SaveAsCodeCore(writer, schema); 1179private protected override void SavePostTransformAsCode(TextWriter writer, string scoresName) { } 1253private protected override void SavePostTransformAsCode(TextWriter writer, string scoresName)
Standard\ModelStatistics.cs (2)
154internal virtual void SaveText(TextWriter writer, DataViewSchema.Column featureColumn, int paramCountCap) 474internal override void SaveText(TextWriter writer, DataViewSchema.Column featureColumn, int paramCountCap)
Standard\MulticlassClassification\OneVersusAllTrainer.cs (2)
456void ICanSaveInSourceCode.SaveAsCode(TextWriter writer, RoleMappedSchema schema) 476void ICanSaveInTextFormat.SaveAsText(TextWriter writer, RoleMappedSchema schema)
Microsoft.ML.Sweeper (2)
ConfigRunner.cs (2)
224TextWriter standardOutputWriter = null, TextWriter standardErrorWriter = null)
Microsoft.ML.TestFramework (2)
BaseTestBaseline.cs (1)
340using (TextWriter dst = File.CreateText(path))
TestCommandBase.cs (1)
328private protected static int MainForTest(ConsoleEnvironment env, TextWriter writer, string args, bool printProgress = false)
Microsoft.ML.Tests (2)
ExpressionLanguageTests\ExpressionLanguageTests.cs (2)
427internal static TextWriter Writer; 441private static TextWriter OutWriter { get { return Writer ?? Console.Out; } }
Microsoft.ML.Transforms (2)
Expression\Printer.cs (1)
36public static void Print(Node node, TextWriter writer, bool showTypes = false, bool showValues = false)
Expression\Tokens.cs (1)
221public static void Write(TextWriter wrt, string str)
Microsoft.ML.Vision (1)
ImageClassificationTrainer.cs (1)
889using TextWriter writer = File.CreateText(cacheFilePath);
MSBuild (13)
XMake.cs (13)
678TextWriter preprocessWriter = null; 679TextWriter targetsWriter = null; 1099private static ExitType OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem, Project project, TextWriter outputStream) 1119private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream) 1289TextWriter preprocessWriter, 1290TextWriter targetsWriter, 1726private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection) 2507ref TextWriter preprocessWriter, 2508ref TextWriter targetsWriter, 3234internal static TextWriter ProcessPreprocessSwitch(string[] parameters) 3236TextWriter writer = Console.Out; 3253internal static TextWriter ProcessTargetsSwitch(string[] parameters) 3255TextWriter writer = Console.Out;
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
348[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
netstandard (1)
netstandard.cs (1)
969[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
PresentationFramework (4)
System\Windows\Controls\DataGridClipboardHelper.cs (2)
115private static void FormatPlainText(string s, bool csv, TextWriter output, ref bool escapeApplied) 173private static void FormatPlainTextAsHtml(string s, TextWriter output)
System\Windows\Markup\XamlWriter.cs (2)
43TextWriter writer = new StringWriter(sb, TypeConverterHelper.InvariantEnglishUS); 71public static void Save(object obj, TextWriter writer)
RunTests (1)
Logger.cs (1)
74internal static void WriteTo(TextWriter textWriter)
Swaggatherer (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
System.CodeDom (29)
Microsoft\CSharp\CSharpCodeGenerator.cs (6)
300public void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) 3097void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 3125void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) 3153void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) 3188void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 3216void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o)
Microsoft\CSharp\CSharpCodeProvider.cs (1)
43public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) =>
Microsoft\VisualBasic\VBCodeProvider.cs (1)
45public override void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options) =>
System\CodeDom\Compiler\CodeDomProvider.cs (7)
117public virtual ICodeGenerator CreateGenerator(TextWriter output) => CreateGenerator(); 154public virtual void GenerateCodeFromExpression(CodeExpression expression, TextWriter writer, CodeGeneratorOptions options) => 157public virtual void GenerateCodeFromStatement(CodeStatement statement, TextWriter writer, CodeGeneratorOptions options) => 160public virtual void GenerateCodeFromNamespace(CodeNamespace codeNamespace, TextWriter writer, CodeGeneratorOptions options) => 163public virtual void GenerateCodeFromCompileUnit(CodeCompileUnit compileUnit, TextWriter writer, CodeGeneratorOptions options) => 166public virtual void GenerateCodeFromType(CodeTypeDeclaration codeType, TextWriter writer, CodeGeneratorOptions options) => 169public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
System\CodeDom\Compiler\CodeGenerator.cs (7)
47protected TextWriter Output => _output; 251void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o) 279void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o) 307void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o) 342void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o) 370void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o) 398public virtual void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
System\CodeDom\Compiler\ExposedTabStringIndentedTextWriter.cs (2)
11public ExposedTabStringIndentedTextWriter(TextWriter writer, string tabString) : base(writer, tabString) 19TextWriter inner = InnerWriter;
System\CodeDom\Compiler\ICodeGenerator.cs (5)
16void GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o); 17void GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o); 18void GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o); 19void GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o); 20void GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o);
System.Configuration.ConfigurationManager (3)
System\Configuration\ConfigurationElement.cs (1)
866internal virtual void Dump(TextWriter tw)
System\Configuration\XmlUtilWriter.cs (2)
33internal XmlUtilWriter(TextWriter writer, bool trackPosition) 48internal TextWriter Writer { get; }
System.Console (14)
System\Console.cs (14)
29private static TextWriter? s_out, s_error; 187public static TextWriter Out 202static TextWriter EnsureInitialized() 216public static TextWriter Error 222static TextWriter EnsureInitialized() 236private static TextWriter CreateOutputWriter(Stream outputStream) 239TextWriter.Null : 240TextWriter.Synchronized(new StreamWriter( 670public static void SetOut(TextWriter newOut) 678if (newOut != TextWriter.Null) 680newOut = TextWriter.Synchronized(newOut); 690public static void SetError(TextWriter newError) 695if (newError != TextWriter.Null) 697newError = TextWriter.Synchronized(newError);
System.Data.Common (15)
System\Data\DataSet.cs (9)
1950/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary> 1951/// <param name="writer">The <see cref='TextWriter'/> object with which to write.</param> 1954public void WriteXmlSchema(TextWriter? writer) => WriteXmlSchema(writer, SchemaFormat.Public, null); 1956/// <summary>Writes the <see cref='DataSet'/> structure as an XML schema to a <see cref='TextWriter'/> object.</summary> 1957/// <param name="writer">The <see cref='TextWriter'/> object with which to write.</param> 1961public void WriteXmlSchema(TextWriter? writer, Converter<Type, string> multipleTargetConverter) 2019private void WriteXmlSchema(TextWriter? writer, SchemaFormat schemaFormat, Converter<Type, string>? multipleTargetConverter) 2900public void WriteXml(TextWriter? writer) => WriteXml(writer, XmlWriteMode.IgnoreSchema); 2928public void WriteXml(TextWriter? writer, XmlWriteMode mode)
System\Data\DataTable.cs (6)
5324public void WriteXml(TextWriter? writer) => WriteXml(writer, XmlWriteMode.IgnoreSchema, false); 5328public void WriteXml(TextWriter? writer, bool writeHierarchy) => WriteXml(writer, XmlWriteMode.IgnoreSchema, writeHierarchy); 5365public void WriteXml(TextWriter? writer, XmlWriteMode mode) 5372public void WriteXml(TextWriter? writer, XmlWriteMode mode, bool writeHierarchy) 5507public void WriteXmlSchema(TextWriter? writer) => WriteXmlSchema(writer, false); 5511public void WriteXmlSchema(TextWriter? writer, bool writeHierarchy)
System.Diagnostics.TextWriterTraceListener (14)
System\Diagnostics\DelimitedListTraceListener.cs (2)
28public DelimitedListTraceListener(TextWriter writer) : base(writer) 32public DelimitedListTraceListener(TextWriter writer, string? name) : base(writer, name)
System\Diagnostics\TextWriterTraceListener.cs (6)
11/// a <see cref='System.IO.TextWriter'/> or to a <see cref='System.IO.Stream'/>, 16internal TextWriter? _writer; 21/// <see cref='System.IO.TextWriter'/> 53public TextWriterTraceListener(TextWriter writer) 64public TextWriterTraceListener(TextWriter writer, string? name) 95public TextWriter? Writer
System\Diagnostics\XmlWriterTraceListener.cs (6)
34public XmlWriterTraceListener(TextWriter writer) 39public XmlWriterTraceListener(TextWriter writer, string? name) 395if (_writer is TextWriter writer) 407if (_writer is TextWriter writer) 419if (_writer is TextWriter writer) 431if (_writer is TextWriter writer)
System.IO (1)
System.IO.cs (1)
19[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
System.Linq.Expressions (3)
System\Linq\Expressions\DebugViewWriter.cs (3)
29private readonly TextWriter _out; 54private DebugViewWriter(TextWriter file) 118internal static void WriteTo(Expression node, TextWriter writer)
System.Private.CoreLib (108)
src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (16)
15private readonly TextWriter _writer; 22public IndentedTextWriter(TextWriter writer) : this(writer, DefaultTabString) { } 24public IndentedTextWriter(TextWriter writer, string tabString) : base(CultureInfo.InvariantCulture) 48public TextWriter InnerWriter => _writer; 84/// Asynchronously outputs tabs to the underlying <see cref="TextWriter"/> based on the current <see cref="Indent"/>. 189/// Asynchronously writes the specified <see cref="char"/> to the underlying <see cref="TextWriter"/>, inserting 202/// to the underlying <see cref="TextWriter"/>, starting at the specified index, and outputting tabs at the 216/// Asynchronously writes the specified string to the underlying <see cref="TextWriter"/>, inserting tabs at the 228/// Asynchronously writes the specified characters to the underlying <see cref="TextWriter"/>, inserting tabs at the 241/// Asynchronously writes the contents of the specified <see cref="StringBuilder"/> to the underlying <see cref="TextWriter"/>, inserting tabs at the 259/// Asynchronously writes the specified string to the underlying <see cref="TextWriter"/> without inserting tabs. 395/// Asynchronously writes the specified <see cref="char"/> to the underlying <see cref="TextWriter"/> followed by a line terminator, inserting tabs 409/// to the underlying <see cref="TextWriter"/>, starting at the specified index within the buffer, inserting tabs at the start of every line. 423/// Asynchronously writes the specified string followed by a line terminator to the underlying <see cref="TextWriter"/>, inserting 436/// Asynchronously writes the specified characters followed by a line terminator to the underlying <see cref="TextWriter"/>, inserting 451/// underlying <see cref="TextWriter"/>, inserting tabs at the start of every line.
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.CreateBroadcasting.cs (66)
15/// Creates an instance of <see cref="TextWriter"/> that writes supplied inputs to each of the writers in <paramref name="writers"/>. 17/// <param name="writers">The <see cref="TextWriter"/> instances to which all operations should be broadcast (multiplexed).</param> 19/// An instance of <see cref="TextWriter"/> that writes supplied inputs to each of the writers in <paramref name="writers"/> 34public static TextWriter CreateBroadcasting(params TextWriter[] writers) 45private readonly TextWriter[] _writers; 47public BroadcastingTextWriter(TextWriter[] writers) 50foreach (TextWriter writer in writers) 69foreach (TextWriter writer in _writers) 80foreach (TextWriter writer in _writers) 89foreach (TextWriter writer in _writers) 97foreach (TextWriter writer in _writers) 105foreach (TextWriter writer in _writers) 113foreach (TextWriter writer in _writers) 121foreach (TextWriter writer in _writers) 129foreach (TextWriter writer in _writers) 137foreach (TextWriter writer in _writers) 145foreach (TextWriter writer in _writers) 153foreach (TextWriter writer in _writers) 161foreach (TextWriter writer in _writers) 169foreach (TextWriter writer in _writers) 177foreach (TextWriter writer in _writers) 185foreach (TextWriter writer in _writers) 193foreach (TextWriter writer in _writers) 201foreach (TextWriter writer in _writers) 209foreach (TextWriter writer in _writers) 217foreach (TextWriter writer in _writers) 225foreach (TextWriter writer in _writers) 233foreach (TextWriter writer in _writers) 241foreach (TextWriter writer in _writers) 249foreach (TextWriter writer in _writers) 257foreach (TextWriter writer in _writers) 265foreach (TextWriter writer in _writers) 273foreach (TextWriter writer in _writers) 281foreach (TextWriter writer in _writers) 289foreach (TextWriter writer in _writers) 297foreach (TextWriter writer in _writers) 305foreach (TextWriter writer in _writers) 313foreach (TextWriter writer in _writers) 321foreach (TextWriter writer in _writers) 329foreach (TextWriter writer in _writers) 337foreach (TextWriter writer in _writers) 345foreach (TextWriter writer in _writers) 353foreach (TextWriter writer in _writers) 361foreach (TextWriter writer in _writers) 369foreach (TextWriter writer in _writers) 377foreach (TextWriter writer in _writers) 385foreach (TextWriter writer in _writers) 393foreach (TextWriter writer in _writers) 401foreach (TextWriter writer in _writers) 409foreach (TextWriter writer in _writers) 417foreach (TextWriter writer in _writers) 425foreach (TextWriter writer in _writers) 433foreach (TextWriter writer in _writers) 441foreach (TextWriter writer in _writers) 449foreach (TextWriter writer in _writers) 457foreach (TextWriter writer in _writers) 465foreach (TextWriter writer in _writers) 473foreach (TextWriter writer in _writers) 481foreach (TextWriter writer in _writers) 489foreach (TextWriter writer in _writers) 497foreach (TextWriter writer in _writers) 505foreach (TextWriter writer in _writers) 513foreach (TextWriter writer in _writers) 521foreach (TextWriter writer in _writers) 529foreach (TextWriter writer in _writers)
src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (22)
23public static readonly TextWriter Null = new NullTextWriter(); 541var t = (TupleSlim<TextWriter, char>)state!; 543}, new TupleSlim<TextWriter, char>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 548var t = (TupleSlim<TextWriter, string?>)state!; 550}, new TupleSlim<TextWriter, string?>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 587var t = (TupleSlim<TextWriter, char[], int, int>)state!; 589}, new TupleSlim<TextWriter, char[], int, int>(this, buffer, index, count), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 597var t = (TupleSlim<TextWriter, ReadOnlyMemory<char>>)state!; 599}, new TupleSlim<TextWriter, ReadOnlyMemory<char>>(this, buffer), cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 604var t = (TupleSlim<TextWriter, char>)state!; 606}, new TupleSlim<TextWriter, char>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 611var t = (TupleSlim<TextWriter, string?>)state!; 613}, new TupleSlim<TextWriter, string?>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 651var t = (TupleSlim<TextWriter, char[], int, int>)state!; 653}, new TupleSlim<TextWriter, char[], int, int>(this, buffer, index, count), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 661var t = (TupleSlim<TextWriter, ReadOnlyMemory<char>>)state!; 663}, new TupleSlim<TextWriter, ReadOnlyMemory<char>>(this, buffer), cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default); 672return Task.Factory.StartNew(static state => ((TextWriter)state!).Flush(), this, 758public static TextWriter Synchronized(TextWriter writer) 771private readonly TextWriter _out; 773internal SyncTextWriter(TextWriter t)
src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (2)
48public static void HtmlEncode(string? value, TextWriter output) 177public static void HtmlDecode(string? value, TextWriter output)
src\libraries\System.Private.CoreLib\src\System\Reflection\Emit\ILGenerator.cs (2)
131MethodInfo mi = typeof(IO.TextWriter).GetMethod("WriteLine", [cls]) ?? 163MethodInfo mi = typeof(IO.TextWriter).GetMethod("WriteLine", [cls]) ??
System.Private.Xml (39)
System\Xml\Core\HtmlEncodedRawTextWriter.cs (2)
27public HtmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings) 790public HtmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
System\Xml\Core\TextEncodedRawTextWriter.cs (1)
24public TextEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
System\Xml\Core\XmlAutoDetectWriter.cs (2)
24private readonly TextWriter? _textWriter; 42public XmlAutoDetectWriter(TextWriter textWriter, XmlWriterSettings writerSettings)
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
55protected TextWriter? _writer; 112public XmlEncodedRawTextWriter(TextWriter writer, XmlWriterSettings settings) : this(settings) 1922public XmlEncodedRawTextWriterIndent(TextWriter writer, XmlWriterSettings settings) : base(writer, settings)
System\Xml\Core\XmlTextEncoder.cs (2)
21private readonly TextWriter _textWriter; 36internal XmlTextEncoder(TextWriter textWriter)
System\Xml\Core\XmlTextWriter.cs (2)
133private readonly TextWriter _textWriter = null!; 299public XmlTextWriter(TextWriter w) : this()
System\Xml\Core\XmlWriter.cs (2)
660public static XmlWriter Create(TextWriter output) 672public static XmlWriter Create(TextWriter output, XmlWriterSettings? settings)
System\Xml\Core\XmlWriterSettings.cs (1)
435internal XmlWriter CreateWriter(TextWriter output)
System\Xml\Dom\XmlDocument.cs (1)
1421public virtual void Save(TextWriter writer)
System\Xml\Dom\XmlDomTextWriter.cs (1)
22public XmlDOMTextWriter(TextWriter w) : base(w)
System\Xml\Schema\XmlSchema.cs (2)
114public void Write(TextWriter writer) 122public void Write(TextWriter writer, XmlNamespaceManager? namespaceManager)
System\Xml\Serialization\Compiler.cs (1)
80internal TextWriter Source
System\Xml\Serialization\indentedWriter.cs (2)
13private readonly TextWriter _writer; 18internal IndentedWriter(TextWriter writer, bool compact)
System\Xml\Serialization\XmlSerializer.cs (2)
334public void Serialize(TextWriter textWriter, object? o) 341public void Serialize(TextWriter textWriter, object? o, XmlSerializerNamespaces? namespaces)
System\Xml\Xsl\IlGen\GenerateHelper.cs (1)
494private TextWriter? _writerDump;
System\Xml\Xsl\IlGen\XmlILTrace.cs (1)
74public static TextWriter? GetTraceWriter(string fileName)
System\Xml\Xsl\XsltOld\Processor.cs (1)
406public void Execute(TextWriter writer)
System\Xml\Xsl\XsltOld\TextOnlyOutput.cs (3)
11private readonly TextWriter _writer; 18public TextWriter Writer 35internal TextOnlyOutput(Processor processor, TextWriter writer)
System\Xml\Xsl\XsltOld\TextOutput.cs (2)
14private TextWriter _writer; 25internal TextOutput(Processor processor, TextWriter writer)
System\Xml\Xslt\XslCompiledTransform.cs (3)
258public void Transform(IXPathNavigable input, XsltArgumentList? arguments, TextWriter results) 296public void Transform(XmlReader input, XsltArgumentList? arguments, TextWriter results) 339public void Transform(string inputUri, XsltArgumentList? arguments, TextWriter results)
System\Xml\Xslt\XslTransform.cs (4)
151public void Transform(XPathNavigator input, XsltArgumentList? args, TextWriter output, XmlResolver? resolver) 158public void Transform(XPathNavigator input, XsltArgumentList? args, TextWriter output) 178public void Transform(IXPathNavigable input, XsltArgumentList? args, TextWriter output, XmlResolver? resolver) 185public void Transform(IXPathNavigable input, XsltArgumentList? args, TextWriter output)
System.Private.Xml.Linq (26)
System\Xml\Linq\XDocument.cs (11)
645/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>. 650/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 656/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to. 658public void Save(TextWriter textWriter) 664/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 667/// The <see cref="TextWriter"/> to output the XML to. 673public void Save(TextWriter textWriter, SaveOptions options) 694/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>. 697/// The <see cref="TextWriter"/> to output the XML to. 704public async Task SaveAsync(TextWriter textWriter, SaveOptions options, CancellationToken cancellationToken) 720/// be saved to a file, a <see cref="Stream"/>, a <see cref="TextWriter"/>,
System\Xml\Linq\XElement.cs (11)
171/// be saved to a file, a <see cref="Stream"/>, a <see cref="TextWriter"/>, 1094/// Output this <see cref="XElement"/> to the passed in <see cref="TextWriter"/>. 1099/// <see cref="XElement.Save(TextWriter, SaveOptions)"/>) enabling 1105/// The <see cref="TextWriter"/> to output this <see cref="XElement"/> to. 1107public void Save(TextWriter textWriter) 1113/// Output this <see cref="XElement"/> to a <see cref="TextWriter"/>. 1116/// The <see cref="TextWriter"/> to output the XML to. 1122public void Save(TextWriter textWriter, SaveOptions options) 1132/// Output this <see cref="XElement"/> to a <see cref="TextWriter"/>. 1135/// The <see cref="TextWriter"/> to output the XML to. 1142public async Task SaveAsync(TextWriter textWriter, SaveOptions options, CancellationToken cancellationToken)
System\Xml\Linq\XStreamingElement.cs (4)
129/// <param name="textWriter"><see cref="TextWriter"/> to write to </param> 130public void Save(TextWriter textWriter) 139/// <param name="textWriter"><see cref="TextWriter"/> to write to </param> 144public void Save(TextWriter textWriter, SaveOptions options)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
329[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
System.Runtime.Extensions (1)
System.Runtime.Extensions.cs (1)
50[assembly:System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.TextWriter))]
System.Text.Encodings.Web (8)
System\IO\TextWriterExtensions.cs (1)
17public static void WritePartialString(this TextWriter writer, string value, int offset, int count)
System\Text\Encodings\Web\TextEncoder.cs (7)
188/// Encodes the supplied string into a <see cref="TextWriter"/>. 192public void Encode(TextWriter output, string value) 198/// Encodes a substring into a <see cref="TextWriter"/>. 204public virtual void Encode(TextWriter output, string value, int startIndex, int characterCount) 233/// Encodes characters from an array into a <see cref="TextWriter"/>. 239public virtual void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 512private void EncodeCore(TextWriter output, ReadOnlySpan<char> value)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\Regex.Debug.cs (1)
18internal void SaveDGML(TextWriter writer, int maxLabelLength)
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.cs (2)
17/// <inheritdoc cref="Regex.SaveDGML(TextWriter, int)"/> 18public abstract void SaveDGML(TextWriter writer, int maxLabelLength);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Dgml.cs (2)
15/// <inheritdoc cref="Regex.SaveDGML(TextWriter, int)"/> 17public override void SaveDGML(TextWriter writer, int maxLabelLength)
System.Text.RegularExpressions.Generator (1)
RegexGenerator.Emitter.cs (1)
5541private static void DescribeExpressionAsXmlComment(TextWriter writer, RegexNode node, RegexMethod rm, int depth = 0)
System.Web.HttpUtility (7)
System\Web\HttpUtility.cs (3)
139public static void HtmlDecode(string? s, TextWriter output) => HttpEncoder.HtmlDecode(s, output); 153public static void HtmlEncode(string? s, TextWriter output) => HttpEncoder.HtmlEncode(s, output); 158public static void HtmlAttributeEncode(string? s, TextWriter output) => HttpEncoder.HtmlAttributeEncode(s, output);
System\Web\Util\HttpEncoder.cs (4)
51internal static void HtmlAttributeEncode(string? value, TextWriter output) 70private static void HtmlAttributeEncodeInternal(string s, int index, TextWriter output) 109internal static void HtmlDecode(string? value, TextWriter output) 119internal static void HtmlEncode(string? value, TextWriter output)
System.Web.Services.Description (2)
System\Web\Services\Description\ServiceDescription.cs (2)
324public void Write(TextWriter writer) 334TextWriter writer = new StreamWriter(stream);
System.Windows.Forms (6)
System\Resources\ResXResourceWriter.cs (4)
90private TextWriter? _textWriter; 127/// <see cref="TextWriter"/> object. 129public ResXResourceWriter(TextWriter textWriter) => _textWriter = textWriter; 131public ResXResourceWriter(TextWriter textWriter, Func<Type?, string> typeNameConverter)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (2)
1162TextWriter output, 1221internal static void FormatPlainTextAsHtml(string? s, TextWriter output)
System.Xaml (3)
System\Xaml\XamlServices.cs (1)
166public static void Save(TextWriter writer, object instance)
System\Xaml\XamlXmlWriter.cs (2)
63public XamlXmlWriter(TextWriter textWriter, XamlSchemaContext schemaContext) 68public XamlXmlWriter(TextWriter textWriter, XamlSchemaContext schemaContext, XamlXmlWriterSettings settings)
System.Xaml.Tests (1)
System\Xaml\XamlServicesTests.cs (1)
84Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((TextWriter)null!, 1));
TagHelpersWebSite (3)
MyHtmlContent.cs (1)
19public void WriteTo(TextWriter writer, HtmlEncoder encoder)
TagHelpers\CustomEncoderTagHelper.cs (2)
39public override void Encode(TextWriter output, char[] value, int startIndex, int characterCount) 51public override void Encode(TextWriter output, string value, int startIndex, int characterCount)
Templates.Blazor.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
Templates.Blazor.WebAssembly.Auth.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
Templates.Blazor.WebAssembly.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
Templates.Mvc.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
Templates.Tests (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
vbc (11)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (4)
18/// provided call back. The newly created <see cref="TextWriter"/> will be passed down to the callback. 20internal static T RunWithUtf8Output<T>(Func<TextWriter, T> func) 41internal static T RunWithUtf8Output<T>(bool utf8Output, TextWriter textWriter, Func<TextWriter, T> func)
src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader); 125internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null) 171public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null) 193private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter) 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
src\Compilers\Shared\Vbc.cs (1)
22internal static int Run(string[] args, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
src\Compilers\VisualBasic\vbc\Program.cs (1)
42public static int Run(string[] args, string clientDir, string workingDir, string sdkDir, string tempDir, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerLoader)
VBCSCompiler (10)
src\Compilers\Core\CommandLine\ConsoleUtil.cs (4)
18/// provided call back. The newly created <see cref="TextWriter"/> will be passed down to the callback. 20internal static T RunWithUtf8Output<T>(Func<TextWriter, T> func) 41internal static T RunWithUtf8Output<T>(bool utf8Output, TextWriter textWriter, Func<TextWriter, T> func)
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (1)
151TextWriter output = new StringWriter(CultureInfo.InvariantCulture);
src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader); 125internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null) 171public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null) 193private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter) 211private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
VBCSCompiler.UnitTests (3)
CompilerServerTests.cs (2)
149private static (T Result, string Output) UseTextWriter<T>(Encoding encoding, Func<TextWriter, T> func) 152TextWriter writer;
ServerUtil.cs (1)
207Func<string[], string, string, string, string, TextWriter, IAnalyzerAssemblyLoader, int> func;
VisualBasicSyntaxGenerator (28)
GreenNodes\GreenNodeFactoryWriter.vb (2)
16Private _writer As TextWriter 'output is sent here. 24Public Sub WriteFactories(writer As TextWriter)
GreenNodes\GreenNodeWriter.vb (2)
17Private _writer As TextWriter 'output is sent here. 27Public Sub WriteTreeAsCode(writer As TextWriter)
RedNodes\RedNodeFactoryWriter.vb (2)
11Private _writer As TextWriter 'output is sent here. 19Public Sub WriteFactories(writer As TextWriter)
RedNodes\RedNodeWriter.vb (3)
11Private _writer As TextWriter 'output is sent here. 19Public Sub WriteMainTreeAsCode(writer As TextWriter) 24Public Sub WriteSyntaxTreeAsCode(writer As TextWriter)
RedNodes\SyntaxFactsWriter.vb (3)
17Private _writer As TextWriter 'output is sent here. 25Public Sub GenerateFile(writer As TextWriter) 47Public Sub GenerateGetText(writer As TextWriter)
Tests\TestWriter.vb (2)
17Private _writer As TextWriter 'output is sent here. 27Public Sub WriteTestCode(writer As TextWriter)
Util\WriteCsvNames.vb (1)
18Private _writer As TextWriter 'output is sent here.
Util\WriteDumper.vb (1)
16Private _writer As TextWriter 'output is sent here.
Util\WriteUtils.vb (12)
581Private Sub GenerateXmlCommentPart(writer As TextWriter, text As String, xmlTag As String, indent As Integer, Optional escape As Boolean = True) 609Public Sub GenerateSummaryXmlComment(writer As TextWriter, text As String, Optional indent As Integer = 8) 613Public Sub GenerateParameterXmlComment(writer As TextWriter, parameterName As String, text As String, Optional escapeText As Boolean = False, Optional indent As Integer = 8) 635Public Sub GenerateTypeParameterXmlComment(writer As TextWriter, typeParameterName As String, text As String, Optional indent As Integer = 4) 652Protected Sub GenerateXmlComment(writer As TextWriter, descriptionText As String, remarksText As String, indent As Integer) 658Protected Sub GenerateXmlComment(writer As TextWriter, struct As ParseNodeStructure, indent As Integer, includeRemarks As Boolean) 677Protected Sub GenerateXmlComment(writer As TextWriter, child As ParseNodeChild, indent As Integer) 691Protected Sub GenerateWithXmlComment(writer As TextWriter, child As ParseNodeChild, indent As Integer) 698Protected Sub GenerateXmlComment(writer As TextWriter, field As ParseNodeField, indent As Integer) 705Protected Sub GenerateXmlComment(writer As TextWriter, kind As ParseNodeKind, indent As Integer) 712Protected Sub GenerateXmlComment(writer As TextWriter, enumerator As ParseEnumeration, indent As Integer) 719Protected Sub GenerateXmlComment(writer As TextWriter, enumerator As ParseEnumerator, indent As Integer)
Wasm.Performance.ConsoleHost (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
11private AnsiConsole(TextWriter writer, bool useConsoleColor) 35public TextWriter Writer { get; }
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;