This project is read-only.
1
Vote

IEnumerable is not supported as array

description

If you create a class containing DataMember type of IEnumerable the create serializer with reflection fails with following exception where as it works with array or List type. Which is not case for java implementation. Java implementation supports List interface.
[DataMember]
public IEnumerable<string> ArrayProperty { get; set; }
sample serializer usage var

serializer = AvroSerializer.Create<TestClass>();
Exception:
Could not find any matching known type for 'System.Collections.Generic.IEnumerable`1[System.String]'.

comments