xoofx / SharpYaml

SharpYaml is a .NET library for YAML compatible with CoreCLR
Other
336 stars 61 forks source link

Custom converter for generic types #80

Open slimshader opened 4 years ago

slimshader commented 4 years ago

Hi, in our project we use Option 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.