Messagepack-csharp: v1.7.3.4, System.ArgumentException: An item with the same key has already been added

Created on 27 Jan 2019  路  3Comments  路  Source: neuecc/MessagePack-CSharp

public class A:B<int>{
    protected override int Id => 10;
}

public abstract class B<TId>{
    protected virtual TId Id => default;
}

Serialize object of A with ContractlessStandardResolverAllowPrivate

bug

All 3 comments

I've experienced the same issue in my codebase.
Start to study the source code to find out possibles solutions.

Looks like #582 might fix this or a related issue.

Confirmed fixed in master.

Was this page helpful?
0 / 5 - 0 ratings