|
Avro C#
|
Converters can be added to properties with an AvroField attribute. Converters convert between the property type and the avro type. More...
Public Member Functions | |
| object | ToAvroType (object o, Schema s) |
| Convert from the C# type to the avro type More... | |
| object | FromAvroType (object o, Schema s) |
| Convert from the avro type to the C# type More... | |
| Type | GetAvroType () |
| Avro type More... | |
| Type | GetPropertyType () |
| Property type More... | |
Converters can be added to properties with an AvroField attribute. Converters convert between the property type and the avro type.
| object Avro.Reflect.IAvroFieldConverter.FromAvroType | ( | object | o, |
| Schema | s | ||
| ) |
Convert from the avro type to the C# type
| o | Value to convert |
| s | Schema |
Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.
| Type Avro.Reflect.IAvroFieldConverter.GetAvroType | ( | ) |
Avro type
Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.
| Type Avro.Reflect.IAvroFieldConverter.GetPropertyType | ( | ) |
Property type
Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.
| object Avro.Reflect.IAvroFieldConverter.ToAvroType | ( | object | o, |
| Schema | s | ||
| ) |
Convert from the C# type to the avro type
| o | Value to convert |
| s | Schema |
Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.
1.8.17