You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to serialize instances of this type T(10), T("abc") and would create a serializer type as follows:
let TSerializer<'a>() =
interface ISerializer<'a> with
member x.TypeId = "T"
member x.Serialize _ t -> ...
member x.Deserializer _ is -> ...
Now only non-generic serializers can be registered in a serializer library. But still it seems possible to do the following, if a serializer type has same order and number of type parameters as its target type:
I need serialization of generic types.
Let I have a generic type:
I want to serialize instances of this type
T(10),T("abc")and would create a serializer type as follows:Now only non-generic serializers can be registered in a serializer library. But still it seems possible to do the following, if a serializer type has same order and number of type parameters as its target type: