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
TRootThe envelope type.
TElementThe 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
PathExpression<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
LeaveOpen
Gets a value indicating whether the caller's pipe remains open after completion or early disposal.
public bool LeaveOpen { get; init; }
Property Value
Path
The expression selecting the array.
public Expression<Func<TRoot, IEnumerable<TElement>>> Path { get; init; }
Property Value
- Expression<Func<TRoot, IEnumerable<TElement>>>