Method Create
Create(AvroSchema, GenericDatumWriterOptions?)
Gets the writer for schema, compiling it on first use. Writers with the default options are
cached per schema; writers with custom options are created each time, so keep and reuse them.
public static GenericDatumWriter Create(AvroSchema schema, GenericDatumWriterOptions? options = null)
Parameters
schemaAvroSchemaThe schema to write with.
optionsGenericDatumWriterOptions