Avro C#
Public Member Functions | List of all members
Avro.Reflect.IAvroFieldConverter Interface Reference

Converters can be added to properties with an AvroField attribute. Converters convert between the property type and the avro type. More...

Inheritance diagram for Avro.Reflect.IAvroFieldConverter:
Avro.Reflect.DateTimeOffsetToLongConverter Avro.Reflect.TypedFieldConverter< TAvro, TProperty > Avro.Reflect.FuncFieldConverter< TAvro, TProperty >

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...
 

Detailed Description

Converters can be added to properties with an AvroField attribute. Converters convert between the property type and the avro type.

Member Function Documentation

◆ FromAvroType()

object Avro.Reflect.IAvroFieldConverter.FromAvroType ( object  o,
Schema  s 
)

Convert from the avro type to the C# type

Parameters
oValue to convert
sSchema
Returns
Converted value

Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.

◆ GetAvroType()

Type Avro.Reflect.IAvroFieldConverter.GetAvroType ( )

◆ GetPropertyType()

Type Avro.Reflect.IAvroFieldConverter.GetPropertyType ( )

◆ ToAvroType()

object Avro.Reflect.IAvroFieldConverter.ToAvroType ( object  o,
Schema  s 
)

Convert from the C# type to the avro type

Parameters
oValue to convert
sSchema
Returns
Converted value

Implemented in Avro.Reflect.TypedFieldConverter< TAvro, TProperty >, and Avro.Reflect.DateTimeOffsetToLongConverter.


The documentation for this interface was generated from the following file: