dahomey-technologies/Dahomey.Cbor

Reflection

Closed this issue · 1 comments

I'm compiling the library as part of an IL2CPP build.

Is it possible to avoid the use of Reflection? I'm getting this error:

System.MissingMethodException: No suitable constructor found for converter type: 'Dahomey.Cbor.Serialization.Converters.ObjectConverter` ...

Maybe there is a way to force the compiler to generate the proper constructors?
Thanks.

It looks like defining (and registering) custom converters prevents the library from using Reflection to figure out how to convert generic collections into custom classes.