✅ why I can't access JsonPropertyInfo.AssociatedParameter?
The property does exist both in the MS docs: https://learn.microsoft.com/pt-br/dotnet/api/system.text.json.serialization.metadata.jsonpropertyinfo.associatedparameter?view=net-8.0
and source code: https://source.dot.net/#System.Text.Json/System/Text/Json/Serialization/Metadata/JsonPropertyInfo.cs,252b641dc1889f6b
JsonPropertyInfo.AssociatedParameter Propriedade (System.Text.Json....
Obtém o parâmetro de construtor associado à propriedade atual.

3 Replies
nvm .net8 doens't has it

it only says "8 (package-provided)" means you have to install System.Text.Json 9.0.0 package to use it on.NET 8