Skip to content

Suggestion: Use a partial class vs exposing public class members to generated code #8

Description

@DrEsteban

The current source generating infra requires you to have some public class members exposed that the generated code can set. Instead of this, you can make the Extensions class partial and just generate another "part" of the very same class. That way you have access to internal/private members instead and can leave your public API surface much cleaner!

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

    help wantedExtra attention is needed

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions