SharpYaml icon indicating copy to clipboard operation
SharpYaml copied to clipboard

Custom converter for generic types

Open slimshader opened this issue 5 years ago • 0 comments

Hi, in our project we use Option<T> type. Is there a way to register single custom SerializerFactory that would handle all of the concrete instantiations of the generic type? Ideally a null case could be handled too (which would be deserialized as None) and custom de/serializer implementation would forward conversion of internal T type back to default implementation.

slimshader avatar Jul 06 '20 10:07 slimshader