MelGrubb / BuilderGenerator

A source-generator-based implementation of the Builder pattern
https://melgrubb.github.io/BuilderGenerator/
MIT License
36 stars 8 forks source link

Add "With" methods that take other builders. #44

Open MelGrubb opened 7 months ago

MelGrubb commented 7 months ago

This is a convenience shortcut to turn

WithFoo(() => fooBuilder.Build())

into

WithFoo(fooBuilder)

The builder would have to do some reflection to see whether there even IS a builder for Foo first, though.