Skip to content

JsonWriterOptions.NewLine Property

Definition

Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonWriterOptions.cs

NewLine()

Gets or sets the new line string to use when Indented is true. The default is the value of NewLine.

public string NewLine { get; set; }

Returns

string

Exceptions

Exception Description
ArgumentNullException Thrown when the new line string is null.
ArgumentOutOfRangeException Thrown when the new line string is not \n or \r\n.

Applies To

Product Versions
.NET 9, 10
.NET Standard 2.0, 2.1

Collaborate with us on GitHub

The source for this content can be found on GitHub, where you can also create and review issues and pull requests.

Open an issue