Avro C#
 All Classes Namespaces Functions Variables Enumerations Properties
Public Member Functions | Properties
Avro.Generic.GenericWriter< T > Class Template Reference

A typesafe wrapper around DefaultWriter. While a specific object of DefaultWriter allows the client to serialize a generic type, an object of this class allows only a single type of object to be serialized through it. More...

Inheritance diagram for Avro.Generic.GenericWriter< T >:
Avro.Generic.DatumWriter< T > Avro.Specific.SpecificWriter< T >

List of all members.

Public Member Functions

 GenericWriter (Schema schema)
 GenericWriter (DefaultWriter writer)
void Write (T value, Encoder encoder)
 Serializes the given object using this writer's schema.

Properties

Schema Schema [get]

Detailed Description

template<T>
class Avro::Generic::GenericWriter< T >

A typesafe wrapper around DefaultWriter. While a specific object of DefaultWriter allows the client to serialize a generic type, an object of this class allows only a single type of object to be serialized through it.

Template Parameters:
TThe type of object to be serialized.

Member Function Documentation

template<T >
void Avro.Generic.GenericWriter< T >.Write ( value,
Encoder  encoder 
) [inline]

Serializes the given object using this writer's schema.

Parameters:
valueThe value to be serialized
encoderThe encoder to use for serializing

Implements Avro.Generic.DatumWriter< T >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties