Table of Contents

Method OpenGeneric

Namespace
AvroSharp.Containers
Assembly
AvroSharp.dll

OpenGeneric(Stream, AvroSchema?, AvroFileReaderOptions?, GenericDatumReaderOptions?)

Reads a file's header and returns a reader of its objects as generic values.

public static AvroFileReader<AvroValue> OpenGeneric(Stream stream, AvroSchema? readerSchema = null, AvroFileReaderOptions? options = null, GenericDatumReaderOptions? readerOptions = null)

Parameters

stream Stream

The source, positioned at the start of the file.

readerSchema AvroSchema

The schema to read the objects as, resolved against the file's schema; null reads them as written.

options AvroFileReaderOptions

The file options, or null for the defaults.

readerOptions GenericDatumReaderOptions

The generic reader's options, or null for the defaults.

Returns

AvroFileReader<AvroValue>