Table of Contents

Method Generate

Namespace
AvroSharp.Generic
Assembly
AvroSharp.dll

Generate(AvroSchema, int, AvroRandomDataOptions?)

Generates values of a schema, without end; take as many as needed.

public static IEnumerable<AvroValue> Generate(AvroSchema schema, int seed, AvroRandomDataOptions? options = null)

Parameters

schema AvroSchema

The schema.

seed int

The seed: the same seed gives the same values.

options AvroRandomDataOptions

The shape of the values, or null for Default.

Returns

IEnumerable<AvroValue>

Exceptions

AvroException

The schema has no finite value.