Runtime: System.Text.Json: Custom Constructor Support

Created on 18 Aug 2019  路  7Comments  路  Source: dotnet/runtime

Please provide support for custom constructors and allow to specify the constructor with an attribute.

area-System.Text.Json enhancement

Most helpful comment

@layomia you created a endless-loop :wink:
(the link points to the current issue itself)
Did you mean dotnet/runtime#29895?

All 7 comments

cc @steveharter

https://github.com/dotnet/corefx/issues/38569#issuecomment-503566048

For the 3.0 release, there is no planned additional support for calling a non-default constructor during deserialization. That would have to be done by a custom converter.

~Sufficiently similar to https://github.com/dotnet/corefx/issues/40399~ - closing as duplicate.

Edit: similar to dotnet/runtime#29895.

@layomia you created a endless-loop :wink:
(the link points to the current issue itself)
Did you mean dotnet/runtime#29895?

@gfoidl yes, thank you!

Is there any temporary solution for this ?!

@etghanibahman I have implemented a functionality supporting "custom" constructors. For details read https://github.com/dotnet/corefx/issues/38569#issuecomment-574886051

Was this page helpful?
0 / 5 - 0 ratings

Related issues

v0l picture v0l  路  3Comments

sahithreddyk picture sahithreddyk  路  3Comments

aggieben picture aggieben  路  3Comments

nalywa picture nalywa  路  3Comments

bencz picture bencz  路  3Comments