Base:
method
Write
System.IO.TextWriter.Write(System.String)
1 override of Write
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\IO\StreamWriter.cs (1)
1045public override void Write(string? value) { }
204 references to Write
Aspire.Dashboard.Tests (4)
Model\TelemetryImportServiceTests.cs (4)
134writer.Write(CreateLogsJson("LogService", "log-instance", "Log message")); 141writer.Write(CreateTracesJson("TraceService", "trace-instance", "Trace operation")); 176writer.Write("Some console output"); 183writer.Write(CreateLogsJson("TestService", "instance-1", "Test message"));
Contract.Service.IntegrationTests (1)
ServiceContractTests.4.0.0.cs (1)
507sw.Write(str);
CSharpSyntaxGenerator (2)
Program.cs (2)
107outFile.Write(grammarText); 178outFile.Write(text);
dotnet-svcutil-lib (9)
FrameworkFork\Microsoft.CodeDom\Compiler\CodeCompiler.cs (2)
346sw.Write(cmdArgs); 386sw.Write(sources[i]);
FrameworkFork\Microsoft.CodeDom\Microsoft\CSharpCodeProvider.cs (2)
715sw.Write(cmdArgs); 4243sw.Write(sources[i]);
FrameworkFork\Microsoft.Xml\Xml\Core\util\TernaryTreeGenerator.cs (3)
442streamWriter.Write(indent3); 455streamWriter.Write(indent3); 459streamWriter.Write(" ");
FrameworkFork\Microsoft.Xml\Xml\schema\GenerateConverter.cs (1)
1113w.Write(_sw.ToString());
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ExceptionDataContract.cs (1)
657_sw.Write(stringToParse);
dotnet-svcutil-lib.Tests (3)
ProjectUtils.cs (3)
113sw.Write(csStr); 136sw.Write(csStr); 151sw2.Write(System.Text.RegularExpressions.Regex.Replace(csprojStr, @"<ItemGroup>\s+<PackageReference Include=""System.ServiceModel[\S\s]+ItemGroup>", ""));
dotnet-user-secrets (1)
Internal\SetCommand.cs (1)
69writer.Write(context.Console.In.ReadToEnd()); // TODO buffer?
FilesWebSite (3)
Controllers\DownloadFilesController.cs (3)
68writer.Write("This is sample text from a stream"); 79writer.Write("This is sample text from a stream"); 90writer.Write("This is sample text from a stream");
FormatterWebSite (1)
Controllers\StreamController.cs (1)
52writer.Write("Sample text from a stream");
illink (1)
installer.tasks (1)
GenerateRunScript.cs (1)
128sw.Write(templateContent);
Microsoft.AspNetCore.Diagnostics (3)
src\Shared\Diagnostics\BaseView.cs (3)
112Output.Write(beginning); 122Output.Write(attributes); 125Output.Write(AttributeEnding);
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (3)
src\Shared\Diagnostics\BaseView.cs (3)
112Output.Write(beginning); 122Output.Write(attributes); 125Output.Write(AttributeEnding);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Buffering\TestConfiguration.cs (1)
32writer.Write(_json());
Microsoft.AspNetCore.Hosting.Tests (3)
StaticWebAssets\ManifestStaticWebAssetsFileProviderTests.cs (3)
65writer.Write(@"{ 134writer.Write(@"{ 214writer.Write(@"{
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Infrastructure\ResourceFile.cs (1)
259writer.Write(content);
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
671compressedWriter.Write(resource.Content); 1218writer.Write(testResource.Content);
Microsoft.AspNetCore.WebUtilities.Tests (3)
HttpRequestStreamReaderTest.cs (3)
194writer.Write("\n\n\r\r\n\r"); 218writer.Write("123456789\r\nfoo"); 255writer.Write("\r\n");
Microsoft.Build (2)
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1881streamWriter!.Write(text);
Logging\FileLogger.cs (1)
148_fileWriter.Write(text);
Microsoft.Build.Engine.OM.UnitTests (1)
Construction\ProjectRootElement_Tests.cs (1)
1965writer.Write(ObjectModelHelpers.CleanupFileContents(EmptyProject));
Microsoft.Build.Engine.UnitTests (2)
Definition\ItemDefinitionGroup_Tests.cs (2)
1769writer.Write(otherProjectContent); 1828writer.Write(otherProjectContent);
Microsoft.Build.Tasks.Core (2)
BootstrapperUtil\BootstrapperBuilder.cs (1)
2044fileWriter.Write(text);
ManifestUtil\Util.cs (1)
455w.Write(s);
Microsoft.Build.Tasks.UnitTests (55)
Copy_Tests.cs (31)
501sw.Write("This is a temp file."); 549sw.Write(content); 599sw.Write(content); 604sw.Write(content); 658sw.Write("This is a source file."); 663sw.Write("This is a destination file."); 714sw.Write("This is a source file."); 719sw.Write("This is a destination file."); 782sw.Write("This is a source file."); 787sw.Write("This is a destination file."); 849sw.Write("This is a source file."); 854sw.Write("This is a destination file."); 916sw.Write("This is a source file."); 921sw.Write("This is a destination file."); 980sw.Write("This is a source file1."); 985sw.Write("This is a source file2."); 990sw.Write("This is a destination file1."); 995sw.Write("This is a destination file2."); 1061sw.Write("This is a source temp file."); 1066sw.Write("This is a destination temp file."); 1196sw.Write("This is a source temp file."); 1201sw.Write("This is a destination temp file."); 1288sw.Write("This is a destination temp file."); 1336sw.Write("This is a destination temp file."); 1511sw.Write("This is a destination temp file."); 1558sw.Write("This is a destination temp file."); 1886sw.Write("This is a source temp file."); 1960sw.Write("This is a source temp file."); 2027sw.Write("This is a source temp file."); 2086sw.Write("This is a source temp file."); 2214sw.Write("This is a source temp file.");
Delete_Tests.cs (1)
53sw.Write("This is a source file.");
Move_Tests.cs (14)
30sw.Write("This is a source temp file."); 76sw.Write("This is a source temp file."); 131sw.Write("This is a destination temp file."); 177sw.Write("This is a temp file."); 214sw.Write("This is a source temp file."); 219sw.Write("This is a destination temp file."); 270sw.Write("This is a source temp file."); 275sw.Write("This is a destination temp file."); 323sw.Write("This is a source temp file."); 328sw.Write("This is a destination temp file."); 378sw.Write("This is a source temp file."); 383sw.Write("This is a destination temp file."); 701sw.Write("This is a source temp file."); 807sw.Write("This is a source temp file.");
XslTransformation_Tests.cs (9)
954sw.Write(_xmlDocument2); 1055sw.Write(_xslDocument2); 1062sw.Write("<document><myInclude path = \"b.xml\"/></document>"); 1069sw.Write("<stuff/>"); 1119sw.Write(_xmlDocument); 1125sw.Write(_xslDocument); 1278sw.Write(_xmlDocument); 1285sw.Write(_xmlDocument2); 1293sw.Write(_xslDocument);
Microsoft.Build.Utilities.Core (1)
ToolTask.cs (1)
618responseFileStream.Write(ResponseFileEscape(responseFileCommands));
Microsoft.CodeAnalysis.Test.Utilities (1)
FX\ProcessUtilities.cs (1)
80process.StandardInput.Write(stdInput);
Microsoft.CodeAnalysis.UnitTests (2)
Text\LargeTextTests.cs (2)
24sw.Write(s); 119sw.Write(HelloWorld);
Microsoft.Data.Analysis (2)
DataFrame.IO.cs (2)
762csvFile.Write(name.Replace("\"", "\"\"")); // Quotations in CSV data must be escaped with another quotation 767csvFile.Write(name);
Microsoft.DotNet.Build.Tasks.Feed (1)
src\ConfigureInputFeed.cs (1)
44swriter.Write(nugetConfigBody);
Microsoft.DotNet.Build.Tasks.Installers (14)
src\CpioWriter.cs (13)
25writer.Write(entry.Inode.ToString("x8")); 26writer.Write(entry.Mode.ToString("x8")); 27writer.Write(entry.OwnerID.ToString("x8")); 28writer.Write(entry.GroupID.ToString("x8")); 29writer.Write(entry.NumberOfLinks.ToString("x8")); 30writer.Write(entry.Timestamp.ToString("x8")); 31writer.Write(entry.DataStream.Length.ToString("x8")); 32writer.Write(entry.DevMajor.ToString("x8")); 33writer.Write(entry.DevMinor.ToString("x8")); 34writer.Write(entry.RDevMajor.ToString("x8")); 35writer.Write(entry.RDevMinor.ToString("x8")); 36writer.Write((entry.Name.Length + 1).ToString("x8")); // This field should include the null terminator. 39writer.Write(entry.Name);
src\CreateMD5SumsFile.cs (1)
43writer.Write($"{Convert.ToHexStringLower(hash)} {relativePath}\n");
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\FinalizeInsertionVsixFile.cs (1)
130writer.Write(json.ToString(Formatting.None, Array.Empty<JsonConverter>()));
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (1)
OptProf\GenerateTrainingInputFilesTests.cs (1)
127writer.Write(manifestContent);
Microsoft.DotNet.SignCheckLibrary (1)
Verification\Jar\JarUtils.cs (1)
79sw.Write(value);
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
TestAssembly.cs (1)
21writer.Write(manifest);
Microsoft.Extensions.Logging.AzureAppServices (1)
BlobLoggerProvider.cs (1)
76writer.Write(logEvent.Message);
Microsoft.Extensions.Telemetry.Tests (1)
Logging\TestConfiguration.cs (1)
32writer.Write(_json());
Microsoft.ML.Data (1)
Model\Pfa\SavePfaCommand.cs (1)
209writer.Write(pfaDoc.ToString(_formatting));
Microsoft.ML.OnnxConverter (1)
SaveOnnxCommand.cs (1)
411writer.Write(JsonConvert.SerializeObject(parsedJson, Formatting.Indented));
Microsoft.ML.Sweeper (1)
SynthConfigRunner.cs (1)
69sw.Write(content);
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
2284writer.Write(JsonConvert.SerializeObject(parsedJson, Formatting.Indented));
Microsoft.ML.Tokenizers.Tests (1)
BpeTests.cs (1)
600writer.Write("{ \"Ukn\": 0 }");
Microsoft.VisualBasic.Core (8)
Microsoft\VisualBasic\CompilerServices\VB6File.vb (6)
1061m_sw.Write(s) 1079m_sw.Write(s) 1097m_sw.Write(s) 1117m_sw.Write(s) 1890m_sw.Write(sTemp) 1900m_sw.Write(sTemp)
Microsoft\VisualBasic\CompilerServices\VB6OutputFile.vb (1)
107m_sw.Write(s)
Microsoft\VisualBasic\FileIO\FileSystem.vb (1)
813StreamWriter.Write(text)
MSBuild (1)
PerformanceLogEventListener.cs (1)
155_writer.Write(s_builder.ToString());
PresentationBuildTasks (5)
Microsoft\Build\Tasks\Windows\UidManager.cs (5)
1114_targetWriter.Write(clause); 1126_targetWriter.Write(clause); 1131_targetWriter.Write( 1143_targetWriter.Write(" "); 1149_targetWriter.Write(_sourceReader.ReadToEnd());
PresentationFramework (7)
MS\Internal\LayoutDump.cs (1)
91streamWriter.Write(str);
System\Windows\Controls\WebBrowser.cs (1)
175sw.Write(text);
System\windows\Documents\TextEditorCopyPaste.cs (1)
453streamWriter.Write(xamlContent);
System\Windows\Documents\TextRangeBase.cs (2)
1505textStreamWriter.Write(text); 1532rtfStreamWriter.Write(rtfText);
System\Windows\Documents\WpfPayload.cs (2)
221xamlPartWriter.Write(xamlText); 263xamlPartWriter.Write(xamlText);
ResultsOfTGenerator (29)
Program.cs (29)
96writer.Write($"public sealed class Results<"); 101writer.Write($"[DynamicallyAccessedMembers(ResultsOfTHelper.RequireMethods)] TResult{j}"); 104writer.Write(", "); 107writer.Write(">"); 340writer.Write($"TResult{j}"); 350writer.Write($"ChecksumResult{j}"); 353writer.Write(", "); 431writer.Write($"TResult{j}"); 441writer.Write($"ChecksumResult{j}"); 444writer.Write(", "); 510writer.Write($"TResult{j}"); 567writer.Write($"TResult{j}"); 644writer.Write($"TResult{j}"); 656writer.Write("IResult"); 660writer.Write($"ChecksumResult{j}"); 665writer.Write(", "); 774writer.Write($"TResult{j}"); 836writer.Write($"TResult{j}"); 846writer.Write($"ProvidesMetadataResult{j}"); 850writer.Write(", "); 862writer.Write($"ProvidesMetadataResult{j}"); 866writer.Write(", "); 901writer.Write($"TResult{j}"); 911writer.Write($"ProvidesMetadataResult{j}"); 915writer.Write(", "); 923writer.Write($"ProvidesMetadataResult{j}"); 927writer.Write(", "); 1004writer.Write(" "); 1009writer.Write(value);
Security.TransportSecurity.IntegrationTests (1)
Tcp\StreamingTests.4.1.0.cs (1)
419sw.Write(str);
System.CodeDom (5)
Microsoft\CSharp\CSharpCodeGenerator.cs (1)
3059sw.Write(sources[i]);
System\CodeDom\Compiler\CodeCompiler.cs (2)
191sw.Write(cmdArgs); 211sw.Write(sources[i]);
System\CodeDom\Compiler\Executor.cs (2)
54outputWriter.Write(currentDir); 55outputWriter.Write("> ");
System.Data.Common (1)
System\Data\SQLTypes\SqlXml.cs (1)
225sw.Write(r.ReadInnerXml());
System.Net.HttpListener (2)
System\Net\Managed\HttpListenerResponse.Managed.cs (2)
275writer.Write("\r\n"); 277writer.Write(FormatHeaders(_webHeaders));
System.Net.Security (2)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (2)
210Write(SSL_TXT_Separator); 213Write(cipherSuite);
System.Text.RegularExpressions (6)
System\Text\RegularExpressions\Symbolic\UnicodeCategoryRangesGenerator.cs (6)
62sw.Write($" public static ReadOnlySpan<byte> SerializedWhitespaceBDD => "); 89sw.Write($" private static ReadOnlySpan<byte> SerializedCategory{i}_{(UnicodeCategory)i} => "); 99sw.Write("["); 100sw.Write($"0x{values[0]:X}"); 104sw.Write($", 0x{values[i]:X}"); 107sw.Write("]");
System.Windows.Forms (1)
System\Windows\Forms\Controls\WebBrowser\WebBrowser.cs (1)
326sw.Write(value);