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...
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] |
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.
| T | The type of object to be serialized. |
| void Avro.Generic.GenericWriter< T >.Write | ( | T | value, |
| Encoder | encoder | ||
| ) | [inline] |
Serializes the given object using this writer's schema.
| value | The value to be serialized |
| encoder | The encoder to use for serializing |
Implements Avro.Generic.DatumWriter< T >.
1.7.6.1