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