31 types derived from TextWriter
Aspire.Cli.Tests (3)
dotnet-svcutil-lib (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Http.Connections.Common (1)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (3)
Microsoft.AspNetCore.OpenApi (1)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.SignalR.Common (1)
Microsoft.AspNetCore.SignalR.Protocols.Json (1)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.WebUtilities (1)
Microsoft.Build (1)
Microsoft.CodeAnalysis (1)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Maui.Graphics (1)
Microsoft.ML.PerformanceTests (1)
Microsoft.ML.TestFrameworkCommon (1)
Microsoft.Web.XmlTransform (1)
System.Private.CoreLib (6)
1209 references to TextWriter
aspire (21)
Commands\GroupedHelpWriter.cs (5)
34public static void WriteHelp(Command command, TextWriter writer, int? maxWidth = null)
156internal static void WriteUsage(TextWriter writer, params string[] usages)
167internal static void WriteTwoColumnSection(TextWriter writer, string heading, IEnumerable<(string Label, string Description)> rows, int maxWidth, bool trailingBlankLine = true)
189private static void WriteGroup(TextWriter writer, string heading, List<BaseCommand> commands, int columnWidth, int width)
222private static void WriteTwoColumnRow(TextWriter writer, string label, string description, int columnWidth, int maxWidth)
Aspire.Cli.Tests (9)
Aspire.Hosting.CodeGeneration.Go (1)
Aspire.Hosting.CodeGeneration.Java (1)
Aspire.Hosting.CodeGeneration.Rust (1)
Aspire.Hosting.CodeGeneration.TypeScript (1)
Aspire.Hosting.DevTunnels (36)
DevTunnelCli.cs (32)
35public Task<int> GetVersionAsync(TextWriter? outputWriter = null, TextWriter? errorWriter = null, ILogger? logger = default, CancellationToken cancellationToken = default)
44public Task<int> UserLogoutAsync(TextWriter? outputWriter = null, TextWriter? errorWriter = null, ILogger? logger = default, CancellationToken cancellationToken = default)
48public Task<int> UserStatusAsync(TextWriter? outputWriter = null, TextWriter? errorWriter = null, ILogger? logger = default, CancellationToken cancellationToken = default)
54TextWriter? outputWriter = null,
55TextWriter? errorWriter = null,
74TextWriter? outputWriter = null,
75TextWriter? errorWriter = null,
90TextWriter? outputWriter = null,
91TextWriter? errorWriter = null,
104TextWriter? outputWriter = null,
105TextWriter? errorWriter = null,
119TextWriter? outputWriter = null,
120TextWriter? errorWriter = null,
136TextWriter? outputWriter = null,
137TextWriter? errorWriter = null,
157TextWriter? outputWriter = null,
158TextWriter? errorWriter = null,
165TextWriter? outputWriter = null,
166TextWriter? errorWriter = null,
175TextWriter? outputWriter = null,
176TextWriter? errorWriter = null,
194TextWriter? outputWriter = null,
195TextWriter? errorWriter = null,
212TextWriter? outputWriter = null,
213TextWriter? errorWriter = null,
218private Task<int> RunAsync(string[] args, TextWriter? outputWriter = null, TextWriter? errorWriter = null, ILogger? logger = default, CancellationToken cancellationToken = default)
221private Task<int> RunAsync(string[] args, TextWriter? outputWriter = null, TextWriter? errorWriter = null, bool useShellExecute = false, ILogger? logger = default, CancellationToken cancellationToken = default)
DevTunnelCliClient.cs (4)
290private async Task<(T? Result, int ExitCode, string? Error)> CallCliAsJsonAsync<T>(Func<TextWriter, TextWriter, ILogger?, CancellationToken, Task<int>> cliCall, ILogger? logger = default, CancellationToken cancellationToken = default)
295private async Task<(T? Result, int ExitCode, string? Error)> CallCliAsJsonAsync<T>(Func<TextWriter, TextWriter, ILogger?, CancellationToken, Task<int>> cliCall, string? propertyName, ILogger? logger = default, CancellationToken cancellationToken = default)
Aspire.Hosting.DevTunnels.Tests (6)
cdac-build-tool (1)
csc (11)
src\roslyn\src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
122internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null)
168public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null)
190private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter)
208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
CSharpSyntaxGenerator (12)
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();
dotnet (4)
dotnet-aot (2)
dotnet-dev-certs (9)
dotnet-getdocument (9)
dotnet-openapi (12)
dotnet-sql-cache (9)
dotnet-suggest (3)
dotnet-svcutil-lib (63)
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\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)
dotnet-svcutil-lib.Tests (1)
dotnet-user-jwts (9)
dotnet-user-secrets (9)
dotnet-watch (1)
GenerateDocumentationAndConfigFiles (4)
GetDocument.Insider (11)
ILAssembler (4)
ILCompiler.Compiler (7)
Compiler\Logger.cs (3)
40public static Logger Null = new Logger(new TextLogWriter(TextWriter.Null), null, false, true);
72public Logger(TextWriter writer, ILProvider ilProvider, bool isVerbose, IEnumerable<int> suppressedWarnings, bool singleWarn, IEnumerable<string> singleWarnEnabledModules, IEnumerable<string> singleWarnDisabledModules, IEnumerable<string> suppressedCategories, bool treatWarningsAsErrors, IDictionary<int, bool> warningsAsErrors, bool disableGeneratedCodeHeuristics)
82public Logger(TextWriter writer, ILProvider ilProvider, bool isVerbose, bool disableGeneratedCodeHeuristics)
ILCompiler.Diagnostics (3)
ILCompiler.MetadataTransform (3)
ILCompiler.ReadyToRun (4)
Microsoft.Arcade.Common (9)
Microsoft.AspNetCore.Components.Endpoints (26)
Rendering\EndpointHtmlRenderer.Streaming.cs (13)
22private TextWriter? _streamingUpdatesWriter;
47public async Task SendStreamingUpdatesAsync(HttpContext httpContext, Task untilTaskCompleted, TextWriter writer)
98internal void EmitInitializersIfNecessary(HttpContext httpContext, TextWriter writer)
110private void SendBatchAsStreamingUpdate(in RenderBatch renderBatch, TextWriter writer)
216private static void HandleExceptionAfterResponseStarted(HttpContext httpContext, TextWriter writer, Exception exception)
230private static void HandleNotFoundAfterResponseStarted(TextWriter writer, HttpContext httpContext, string notFoundUrl)
236private static void HandleNavigationAfterResponseStarted(TextWriter writer, HttpContext httpContext, string destinationUrl)
243private static void WriteResponseTemplate(TextWriter writer, HttpContext httpContext, string destinationUrl, bool useEnhancedNav)
260protected override void WriteComponentHtml(int componentId, TextWriter output)
263protected override void RenderChildComponent(TextWriter output, ref RenderTreeFrame componentFrame)
270private void WriteComponentHtml(int componentId, TextWriter output, bool allowBoundaryMarkers, SequenceAndKey sequenceAndKey = default)
289if (CacheViewService.TryBeginWrite(renderState, cacheView, output, out var wrappedOutput))
437private void EmitBrowserConfigurationOnce(TextWriter output)
Microsoft.AspNetCore.Components.Web (12)
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.DataProtection.MicroBenchmarks (1)
Microsoft.AspNetCore.Diagnostics (29)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (29)
Microsoft.AspNetCore.Hosting (12)
Microsoft.AspNetCore.Html.Abstractions (7)
Microsoft.AspNetCore.Mvc.Abstractions (6)
Microsoft.AspNetCore.Mvc.Core (7)
Microsoft.AspNetCore.Mvc.Formatters.Xml (14)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.Razor (25)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (40)
Microsoft.AspNetCore.OpenApi (4)
Microsoft.AspNetCore.Razor (7)
Microsoft.AspNetCore.Routing (4)
Microsoft.AspNetCore.Server.IIS (12)
Microsoft.AspNetCore.SignalR.Protocols.NewtonsoftJson (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (2)
Microsoft.Build (13)
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.Core (1)
Microsoft.CodeAnalysis (42)
CommandLine\CommonCompiler.cs (14)
97TextWriter consoleOutput,
103public abstract void PrintLogo(TextWriter consoleOutput);
104public abstract void PrintHelp(TextWriter consoleOutput);
105public abstract void PrintLangVersions(TextWriter consoleOutput);
111public virtual void PrintVersion(TextWriter consoleOutput)
523internal bool ReportDiagnostics(IEnumerable<Diagnostic> diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation)
594private bool ReportDiagnostics(DiagnosticBag diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation)
598internal bool ReportDiagnostics(IEnumerable<DiagnosticInfo> diagnostics, TextWriter consoleOutput, ErrorLogger? errorLoggerOpt, Compilation? compilation)
604private void ReportIVTInfos(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics)
661private protected abstract void DiagnoseBadAccesses(TextWriter consoleOutput, ErrorLogger? errorLogger, Compilation compilation, ImmutableArray<Diagnostic> diagnostics);
710protected virtual void PrintError(Diagnostic diagnostic, TextWriter consoleOutput)
715public SarifErrorLogger? GetErrorLogger(TextWriter consoleOutput)
755public virtual int Run(TextWriter consoleOutput, CancellationToken cancellationToken = default)
876private int RunCore(TextWriter consoleOutput, ErrorLogger? errorLogger, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.CSharp (11)
Microsoft.CodeAnalysis.CSharp.Scripting (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.Scripting (8)
Microsoft.CodeAnalysis.VisualBasic (14)
Microsoft.CodeAnalysis.VisualBasic.Scripting (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.DotNet.Cli.Definitions (3)
Microsoft.DotNet.Cli.Utils (18)
Microsoft.DotNet.HotReload.Watch (6)
Microsoft.DotNet.ProjectTools (2)
Microsoft.DotNet.XliffTasks (8)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Logging.Console (15)
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,
136private static void WriteMessage(TextWriter textWriter, string message, bool singleLine)
153static void WriteReplacing(TextWriter writer, string oldValue, string newValue, string message)
205private void WriteScopeInformation(TextWriter textWriter, IExternalScopeProvider? scopeProvider, bool singleLine)
Microsoft.Extensions.WebEncoders (6)
Microsoft.Maui.Graphics (6)
Microsoft.Maui.Resizetizer (2)
Microsoft.ML.AutoML.Interactive (3)
Microsoft.ML.Core (24)
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)
Microsoft.ML.Data (28)
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)
Microsoft.ML.Ensemble (3)
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)
Microsoft.ML.KMeansClustering (1)
Microsoft.ML.Maml (2)
Microsoft.ML.Mkl.Components (1)
Microsoft.ML.PCA (2)
Microsoft.ML.Predictor.Tests (3)
Microsoft.ML.Recommender (1)
Microsoft.ML.ResultProcessor (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\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)
Microsoft.ML.Sweeper (2)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (2)
Microsoft.ML.Transforms (2)
Microsoft.ML.Vision (1)
Microsoft.TemplateEngine.Cli (5)
Microsoft.TestPlatform.CommunicationUtilities (3)
Microsoft.TestPlatform.CoreUtilities (2)
Microsoft.Web.XmlTransform (3)
MSBuild (13)
XMake.cs (13)
870TextWriter preprocessWriter = null;
871TextWriter targetsWriter = null;
1381private static ExitType OutputPropertiesAfterEvaluation(string[] getProperty, string[] getItem, ProjectInstance project, TextWriter outputStream)
1401private static ExitType OutputBuildInformationInJson(BuildResult result, string[] getProperty, string[] getItem, string[] getTargetResult, ILogger[] loggers, ExitType exitType, TextWriter outputStream)
1583TextWriter preprocessWriter,
1584TextWriter targetsWriter,
2026private static bool PrintTargets(string projectFile, string toolsVersion, Dictionary<string, string> globalProperties, TextWriter targetsWriter, ProjectCollection projectCollection)
2425ref TextWriter preprocessWriter,
2426ref TextWriter targetsWriter,
3205internal static TextWriter ProcessPreprocessSwitch(string[] parameters)
3207TextWriter writer = Console.Out;
3224internal static TextWriter ProcessTargetsSwitch(string[] parameters)
3226TextWriter writer = Console.Out;
mscorlib (1)
netstandard (1)
NuGet.Build.Tasks.Console (7)
Program.cs (7)
166/// <param name="errorWriter">A <see cref="TextWriter" /> to write errors to.</param>
169internal static bool TryParseArguments(string[] args, Func<Stream> getStream, TextWriter errorWriter, out (Dictionary<string, string> Options, FileInfo MSBuildExeFilePath, string EntryProjectFilePath, Dictionary<string, string> MSBuildGlobalProperties) arguments)
238/// Logs an error to the specified <see cref="TextWriter" />.
240/// <param name="errorWriter">The <see cref="TextWriter" /> to write the error to.</param>
243private static void LogError(TextWriter errorWriter, string format, params object[] args)
252/// <param name="errorWriter">A <see cref="TextWriter" /> to write errors to if one occurs.</param>
256internal static bool TryDeserializeGlobalProperties(TextWriter errorWriter, BinaryReader reader, out Dictionary<string, string> globalProperties)
NuGet.CommandLine.XPlat (16)
NuGet.ProjectModel (3)
NuGet.Protocol (3)
PresentationFramework (4)
rzc (11)
System.CodeDom (29)
Microsoft\CSharp\CSharpCodeGenerator.cs (6)
298public void GenerateCodeFromMember(CodeTypeMember member, TextWriter writer, CodeGeneratorOptions options)
3095void ICodeGenerator.GenerateCodeFromType(CodeTypeDeclaration e, TextWriter w, CodeGeneratorOptions o)
3123void ICodeGenerator.GenerateCodeFromExpression(CodeExpression e, TextWriter w, CodeGeneratorOptions o)
3151void ICodeGenerator.GenerateCodeFromCompileUnit(CodeCompileUnit e, TextWriter w, CodeGeneratorOptions o)
3186void ICodeGenerator.GenerateCodeFromNamespace(CodeNamespace e, TextWriter w, CodeGeneratorOptions o)
3214void ICodeGenerator.GenerateCodeFromStatement(CodeStatement e, TextWriter w, CodeGeneratorOptions o)
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\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.CommandLine (12)
System.Configuration.ConfigurationManager (3)
System.Console (14)
System.Data.Common (15)
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.IO (1)
System.Linq.Expressions (3)
System.Private.CoreLib (118)
src\runtime\src\libraries\System.Private.CoreLib\src\System\CodeDom\Compiler\IndentedTextWriter.cs (18)
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"/>.
199/// Asynchronously writes the specified <see cref="char"/> to the underlying <see cref="TextWriter"/>, inserting
211/// Asynchronously writes the specified <see cref="Rune"/> to the underlying <see cref="TextWriter"/>, inserting
224/// to the underlying <see cref="TextWriter"/>, starting at the specified index, and outputting tabs at the
238/// Asynchronously writes the specified string to the underlying <see cref="TextWriter"/>, inserting tabs at the
250/// Asynchronously writes the specified characters to the underlying <see cref="TextWriter"/>, inserting tabs at the
263/// Asynchronously writes the contents of the specified <see cref="StringBuilder"/> to the underlying <see cref="TextWriter"/>, inserting tabs at the
281/// Asynchronously writes the specified string to the underlying <see cref="TextWriter"/> without inserting tabs.
428/// Asynchronously writes the specified <see cref="char"/> to the underlying <see cref="TextWriter"/> followed by a line terminator, inserting tabs
441/// Asynchronously writes the specified <see cref="Rune"/> to the underlying <see cref="TextWriter"/> followed by a line terminator, inserting tabs
455/// to the underlying <see cref="TextWriter"/>, starting at the specified index within the buffer, inserting tabs at the start of every line.
469/// Asynchronously writes the specified string followed by a line terminator to the underlying <see cref="TextWriter"/>, inserting
482/// Asynchronously writes the specified characters followed by a line terminator to the underlying <see cref="TextWriter"/>, inserting
497/// underlying <see cref="TextWriter"/>, inserting tabs at the start of every line.
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\TextWriter.cs (26)
24public static readonly TextWriter Null = new NullTextWriter();
591var t = (TupleSlim<TextWriter, char>)state!;
593}, new TupleSlim<TextWriter, char>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
608var t = (TupleSlim<TextWriter, char, char>)state!;
611}, new TupleSlim<TextWriter, char, char>(this, valueChars[0], valueChars[1]), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
620var t = (TupleSlim<TextWriter, string?>)state!;
622}, new TupleSlim<TextWriter, string?>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
668var t = (TupleSlim<TextWriter, char[], int, int>)state!;
670}, new TupleSlim<TextWriter, char[], int, int>(this, buffer, index, count), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
678var t = (TupleSlim<TextWriter, ReadOnlyMemory<char>>)state!;
680}, new TupleSlim<TextWriter, ReadOnlyMemory<char>>(this, buffer), cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
685var t = (TupleSlim<TextWriter, char>)state!;
687}, new TupleSlim<TextWriter, char>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
702var t = (TupleSlim<TextWriter, char, char>)state!;
705}, new TupleSlim<TextWriter, char, char>(this, valueChars[0], valueChars[1]), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
714var t = (TupleSlim<TextWriter, string?>)state!;
716}, new TupleSlim<TextWriter, string?>(this, value), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
763var t = (TupleSlim<TextWriter, char[], int, int>)state!;
765}, new TupleSlim<TextWriter, char[], int, int>(this, buffer, index, count), CancellationToken.None, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
773var t = (TupleSlim<TextWriter, ReadOnlyMemory<char>>)state!;
775}, new TupleSlim<TextWriter, ReadOnlyMemory<char>>(this, buffer), cancellationToken, TaskCreationOptions.DenyChildAttach, TaskScheduler.Default);
792return Task.Factory.StartNew(static state => ((TextWriter)state!).Flush(), this,
882public static TextWriter Synchronized(TextWriter writer)
893private readonly TextWriter _out;
895internal SyncTextWriter(TextWriter t)
System.Private.Xml (39)
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.Runtime (1)
System.Runtime.Extensions (1)
System.Text.Encodings.Web (8)
System.Text.RegularExpressions (5)
System.Text.RegularExpressions.Generator (1)
System.Web.HttpUtility (7)
System.Windows.Forms (6)
System.Xaml (3)
vbc (11)
src\roslyn\src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
122internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null)
168public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null)
190private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter)
208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)
VBCSCompiler (10)
src\roslyn\src\Compilers\Shared\BuildClient.cs (5)
24internal delegate int CompileFunc(string[] arguments, BuildPaths buildPaths, TextWriter textWriter, IAnalyzerAssemblyLoader analyzerAssemblyLoader);
122internal RunCompilationResult RunCompilation(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null, string? pipeName = null)
168public Task<RunCompilationResult> RunCompilationAsync(IEnumerable<string> originalArguments, BuildPaths buildPaths, TextWriter? textWriter = null)
190private int RunLocalCompilation(string[] arguments, BuildPaths buildPaths, TextWriter textWriter)
208private RunCompilationResult? RunServerCompilation(TextWriter textWriter, List<string> arguments, BuildPaths buildPaths, string? libDirectory, string pipeName, string? keepAlive)