Table of Contents

Interface IOutputFormatter

Namespace
Conjecture.Core
Assembly
Conjecture.Core.dll

Serializes a sequence of generated values to a Stream.

public interface IOutputFormatter

Properties

Name

Short identifier for this format (e.g. "json", "jsonl").

string Name { get; }

Property Value

string

Methods

WriteAsync<T>(IEnumerable<T>, Stream, CancellationToken)

Writes all data to output in this formatter's encoding.

Task WriteAsync<T>(IEnumerable<T> data, Stream output, CancellationToken ct = default)

Parameters

data IEnumerable<T>
output Stream
ct CancellationToken

Returns

Task

Type Parameters

T