Closed ThatRendle closed 4 months ago
@markrendle please see our Source Generators, if you need anything further please raise your request in the source generators repository. https://www.nuget.org/packages/ReactiveUI.SourceGenerators
A MVVM framework that integrates with the Reactive Extensions for .NET to create elegant, testable User Interfaces that run on any mobile or desktop platform. This is the Source Generators package for ReactiveUI
You can find out how to use the Source Generators here: https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code.html
Closing this as the requested feature already exists
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Is your feature request related to a problem? Please describe.
PropertyChanged
andCommand
s required a lot of verbose, repetitive boilerplate code.Describe the solution you'd like
Source generators could generate properties and commands from fields and methods, applying best practices along the way.
Describe suggestions on how to achieve the feature
I'm using some very basic source generators in an Avalonia UI project at the moment, for example the Command generator can only handle parameterless methods right now, but it's a start.
I copied the implementations to a gist: https://gist.github.com/markrendle/93ccfb62f2e2f87137148b9aaa57f02f
Additional context
Obviously this is inspired by https://github.com/CommunityToolkit/dotnet/tree/main/src/CommunityToolkit.Mvvm.SourceGenerators