Table of Contents

Class JsonSerializer.StreamingEnumerationOptions<TRoot, TElement>

Namespace
Nerdbank.Json
Assembly
Nerdbank.Json.dll

Options for streaming a selected JSON array.

public record JsonSerializer.StreamingEnumerationOptions<TRoot, TElement> : IEquatable<JsonSerializer.StreamingEnumerationOptions<TRoot, TElement>>

Type Parameters

TRoot

The envelope type.

TElement

The array element type.

Inheritance
JsonSerializer.StreamingEnumerationOptions<TRoot, TElement>
Implements
Inherited Members

Constructors

StreamingEnumerationOptions(Expression<Func<TRoot, IEnumerable<TElement>>>)

Options for streaming a selected JSON array.

public StreamingEnumerationOptions(Expression<Func<TRoot, IEnumerable<TElement>>> Path)

Parameters

Path Expression<Func<TRoot, IEnumerable<TElement>>>

The expression selecting the array.

Properties

EmptySequenceForUndiscoverablePath

Gets a value indicating whether a missing or null array produces an empty sequence.

public bool EmptySequenceForUndiscoverablePath { get; init; }

Property Value

bool

LeaveOpen

Gets a value indicating whether the caller's pipe remains open after completion or early disposal.

public bool LeaveOpen { get; init; }

Property Value

bool

Path

The expression selecting the array.

public Expression<Func<TRoot, IEnumerable<TElement>>> Path { get; init; }

Property Value

Expression<Func<TRoot, IEnumerable<TElement>>>