CrystalJsonStreamWriter.ArrayStream
Namespace: SnowBank.Data.Json · class
Implements: IDisposable
Properties
Cancellation
CancellationToken Cancellation { get; }
Writer
CrystalJsonWriter Writer { get; }
Methods
Dispose
void Dispose()
WriteBatch
void WriteBatch(IEnumerable<JsonValue> items)
Adds a list of JsonValue to an open array
void WriteBatch<T>(IEnumerable<T> items)
Adds several elements to an open array
void WriteBatch<TInput, TOutput>(IEnumerable<TInput> items, Func<TInput, TOutput> selector)
Adds several elements to an open array, applying a transformation to each element
items— Sequence of the elements making up the batchselector— Transformation applied to each element ofitems
WriteBatchAsync
Task WriteBatchAsync(IEnumerable<JsonValue> items)
Adds a list of JsonValue to an open array
Task WriteBatchAsync<T>(IEnumerable<T> items)
Adds several elements to an open array
Task WriteBatchAsync<TInput, TOutput>(IEnumerable<TInput> items, Func<TInput, TOutput> selector)
Adds several elements to an open array, applying a transformation to each element
items— Sequence of the elements making up the batchselector— Transformation applied to each element ofitems
WriteItem
void WriteItem(JsonValue item)
Adds a JsonValue to an open array
void WriteItem<T>(T item)
Adds an element to an open array
item— Element added
WriteItemAsync
Task WriteItemAsync(JsonValue item)
Adds a JsonValue to an open array
Task WriteItemAsync<T>(T item)
Adds an element to an open array
item— Element added