Default resolver deserializes ICollection<T> as T[] · Issue #253 · MessagePack-CSharp/MessagePack-CSharp · GitHub
Skip to content

Default resolver deserializes ICollection<T> as T[] #253

Description

@martavoi

Having the contract:

[MessagePackObject]
public class Foo
{
    [Key(0)]
    public ICollection<Bar> Bars {get; set;} 
}

we unable to deserialize it properly and make use obj.Bars.Add(item). Seems like there should be List instead, isn't it ?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions