Skip to content

Add JsonIncludeAttribute/JsonConstructorAttribute support for private/inaccessible members in the source generator #88519

Description

@eiriktsarpalis

The change in #88452 added internal/private member support for JsonIncludeAttribute/JsonConstructorAttribute in the reflection-based serializer. We should consider extending this to the source generator via the recent feature introduced in #81741. Note that this would only work for the latest TFMs (with some reflection-based fallback being necessary in older targets).

cc @jkotas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Text.JsonenhancementProduct code improvement that does NOT require public API changes/additionssource-generatorIndicates an issue with a source generator feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions