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
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.