You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/08/02 00:16:00 UTC

[jira] [Commented] (AVRO-2389) Serializers for plain old C# objects (POCOs)

    [ https://issues.apache.org/jira/browse/AVRO-2389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16898449#comment-16898449 ] 

ASF subversion and git services commented on AVRO-2389:
-------------------------------------------------------

Commit 7293dd0be192d8e5230f5a1c597c2c7577f91efd in avro's branch refs/heads/master from pa009fa
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=7293dd0 ]

AVRO-2389: Add C# reflection-based serializer/deserializer (#587)

* AVRO-2389: C# reflection based serializer/deserializer

* AvroFieldAttribute - bug renaming field, added C# XML comments

* Update lang/csharp/src/apache/main/Reflect/ArrayHelper.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ArraySchemaExtensions.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/AvroFieldAttribute.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ClassCache.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/DateTimeOffsetToLongConverter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestFixed.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestFromAvroProject.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestLogMessage.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestReflect.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestArray.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/DotnetClass.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/DotnetProperty.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/EnumCache.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/FuncFieldConverter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/IAvroFieldConverter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ReflectDefaultReader.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ReflectDefaultWriter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ReflectReader.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/ReflectWriter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/main/Reflect/TypedFieldConverter.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/CompareUtils.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update lang/csharp/src/apache/test/Reflect/TestArray.cs

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Fixed copyright

* Readme

* Update lang/csharp/src/apache/main/Reflect/Readme.md

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* Update NOTICE.txt

Co-Authored-By: Brian Lachniet <bl...@gmail.com>

* renamed Readme.md

* Renamed Readme.md


> Serializers for plain old C# objects (POCOs)
> --------------------------------------------
>
>                 Key: AVRO-2389
>                 URL: https://issues.apache.org/jira/browse/AVRO-2389
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: csharp
>    Affects Versions: 1.8.2
>            Reporter: Patrick Farry
>            Priority: Major
>
> 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|http://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.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)