Method CreateGeneric
CreateGeneric(Stream, AvroSchema, AvroStreamOptions?, GenericDatumWriterOptions?)
Creates a writer of generic values (AvroValue, GenericRecord).
public static AvroStreamWriter<AvroValue> CreateGeneric(Stream stream, AvroSchema schema, AvroStreamOptions? options = null, GenericDatumWriterOptions? writerOptions = null)
Parameters
streamStreamThe destination.
schemaAvroSchemaThe schema of every object.
optionsAvroStreamOptionsThe stream options, or null for the defaults.
writerOptionsGenericDatumWriterOptionsThe generic writer's options, or null for the defaults.