Avro C#
Loading...
Searching...
No Matches
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.
 
object FromAvroType (object o, Schema s)
 Convert from the avro type to the C# type.
 
Type GetAvroType ()
 Avro type.
 
Type GetPropertyType ()
 Property type.
 

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.DateTimeOffsetToLongConverter, and Avro.Reflect.TypedFieldConverter< TAvro, TProperty >.

◆ 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.DateTimeOffsetToLongConverter, and Avro.Reflect.TypedFieldConverter< TAvro, TProperty >.


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