Skip to content

Consider using partial properties #121

@giard-alexandre

Description

@giard-alexandre

Is your feature request related to a problem? Please describe.

With the release of dotnet 9 and C# 13 right around the corner, I was wondering if anyone had considered adding support for the new partial properties syntax.
I have VERY limited (read: almost none) experience with Source Generators, so I'll apologize right away if this is a dumb idea!

Describe the solution you'd like

Using partial properties, it SHOULD be possible to allow us to define [Reactive] properties using the property itself instead of a field. Ex:

public partial class C
{
    [Reactive]
    public partial string Name { get; set; }
}

Describe alternatives you've considered

The current way of doing things works (of course), it's just less explicit since you just need to expect the Property to be generated properly.

Describe suggestions on how to achieve the feature

Additional context

Some (hopefully) useful links:

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