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
abstract class A
{
[JsonPropertyName("id")]
public abstract string Id { get; }
}
class B : A
{
public override string Id => "Value";
}
When serializing an instance of type B:
Expected: JsonPropertyName to affect inheriting class
{"id":"Value"}
Actual: JsonPropertyName has no effect
{"Id":"Value"}
Note: This behavior differs from the one in Newtonsoft.Json and in my opinion is more error prone.
Original Comments
Feedback Bot on 7/20/2020, 03:33 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered:
This issue has been moved from a ticket on Developer Community.
Consider the following code:
When serializing an instance of type B:
Expected: JsonPropertyName to affect inheriting class
{"id":"Value"}
Actual: JsonPropertyName has no effect
{"Id":"Value"}
Note: This behavior differs from the one in Newtonsoft.Json and in my opinion is more error prone.
Original Comments
Feedback Bot on 7/20/2020, 03:33 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)
The text was updated successfully, but these errors were encountered: