ImmutableObjectGraph
ImmutableObjectGraph copied to clipboard
Code generation for immutable types
When a file wants helper methods: ```cs [GenerateImmutable(DefineWithMethodsPerProperty = true)] public partial class X { private readonly ImmutableList values; } ``` And that file does **not** have this line: ```cs...
Define (or find and depend on) an analyzer to call out when `[Pure]` methods are called without doing anything with their result.
It would be nice if a deconstruct method is auto generated. Example: public class Person { public string FirstName { get; } public string LastName { get; } public string...
It would be nice if the interfaces generated when the DefineInterface option is enabled were partials so that user defined members could also be added to the interface.
There are case where you may want to do some additional initialization on a class after the initialization otherwise done in the constructor. It would be helpful to add something...
When used inside WPF projects the MSBuild task `GenerateCodeFromAttributes` might fail: ``` The "GenerateCodeFromAttributes" task failed unexpectedly. [C:\Users\egger\Workspace\MSBuildTest\WpfApp\2wvt5w2v.tmp_proj] System.IO.FileNotFoundException: Could not find file 'C:\Users\egger\Workspace\MSBuildTest\LibA\bin\Debug\LibA.dll'. [C:\Users\egger\Workspace\MSBuildTest\WpfApp\2wvt5w2v.tmp_proj] File name: 'C:\Users\egger\Workspace\MSBuildTest\LibA\bin\Debug\LibA.dll' [C:\Users\egger\Workspace\MSBuildTest\WpfApp\2wvt5w2v.tmp_proj] at...
Example I hope explains all. It could be done with reflection on the currently generated immutable update methods. ``` Company company = ... var managerFirstNameUpdater = Company.Focus(p=>p.Manager.Name.FirstName); Company c1 =...
Having type hierarchies across multiple files and projects will allow for extensible designs when the base class is in a consumed library. This would allow for something such as the...
This work in progress under the `ProjectTreeWork` branch. CC: @jviau
Bugs to verify when this feature is implemented: #60