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
Currently an exception is thrown if attempting to create a serialiser for a type that has a field of IReadOnlyList<T>.
IList<T> is supported. Is there any reason a read only list couldn't be supported too?
The text was updated successfully, but these errors were encountered:
drewnoakes
changed the title
Support serialisation of IReadOnlyList and IReadOnlyCollection
Support serialisation of IReadOnlyList<T> and IReadOnlyCollection<T>
Jul 3, 2015
Because it was not required. And historically, I has not supported ".NET 4.5" only features so aggresively. I will add them to default collection of SerializationContext by default.
drewnoakes
added a commit
to drewnoakes/msgpack-cli
that referenced
this issue
Jul 7, 2015
PR #93 was perfect in terms of abstract type support itself.
But there are more considerations about custom types which only implements read only collection interfaces. It requires additional collection serializer hierarchy and additional kinds.
Currently an exception is thrown if attempting to create a serialiser for a type that has a field of
IReadOnlyList<T>
.IList<T>
is supported. Is there any reason a read only list couldn't be supported too?The text was updated successfully, but these errors were encountered: