Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2389

Serializers for plain old C# objects (POCOs)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.2
    • 1.10.0
    • csharp
    • None
    • Added reflection-based serializers/deserializers to the C# bindings

    Description

      Hi All,

      I have written code that implements Avro serialization for POCO classes - i.e. classes that are not generated by Avro codegen and do not implement ISpecificRecord. The idea was to make it work as much like JSON.net as possible.

      The serializer inherits from SpecificDefaultWriter and the deserializer from SpecificDefaultReader.

      Avro fields are mapped to C# properties either by matching the field name and property name or by using an attribute to specify the field sequence number.

      Is this something that would be of interest to the Avro project? My company has approved committing the code and I'd be available and happy to maintain this code and work on other parts of the C# implementation.

      Regards.

      Attachments

        Activity

          People

            paddypawprints Patrick Farry
            paddypawprints Patrick Farry
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: