Läs på engelska Redigera

Dela via


StringWriter.WriteLine Method

Definition

Overloads

WriteLine(ReadOnlySpan<Char>)

Writes the text representation a span of characters to the string, followed by a line terminator.

WriteLine(StringBuilder)

Writes the text representation of a string builder to the string, followed by a line terminator.

WriteLine(ReadOnlySpan<Char>)

Source:
StringWriter.cs
Source:
StringWriter.cs
Source:
StringWriter.cs

Writes the text representation a span of characters to the string, followed by a line terminator.

C#
public override void WriteLine(ReadOnlySpan<char> buffer);

Parameters

buffer
ReadOnlySpan<Char>

The span of characters to write to the string.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.1

WriteLine(StringBuilder)

Source:
StringWriter.cs
Source:
StringWriter.cs
Source:
StringWriter.cs

Writes the text representation of a string builder to the string, followed by a line terminator.

C#
public override void WriteLine(System.Text.StringBuilder? value);

Parameters

value
StringBuilder

The string, as a string builder, to write to the string.

Applies to

.NET 10 och andra versioner
Produkt Versioner
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10