Skip to content

Deal with partial classes #17

@tomrijnbeek

Description

@tomrijnbeek

🆙 Improvement proposal

Make it possible to specify classes as partial.

Context

It is very common for source generators to expand on existing classes. In this case, the class definition must be marked as partial, but it would be cool if there was an easy pattern so an author could do something akin to:

ClassBuilder.ExtendPartialClass<MyPartialClass>()
  .AddMethod(/* ... */)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions